Class ContainmentFieldGeneratorComponent
Inheritance
Namespace: Content.Shared.Singularity.Components
Assembly: Content.Shared.dll
Syntax
public sealed class ContainmentFieldGeneratorComponent : Component
Fields
| Improve this Doc View SourceAccumulator
Used to check if it's received power recently.
Declaration
public float Accumulator
Field Value
Type | Description |
---|---|
System.Single |
CollisionMask
The masks the raycast should not go through
Declaration
public int CollisionMask
Field Value
Type | Description |
---|---|
System.Int32 |
Connections
A collection of connections that the generator has based on direction. Stores a list of fields connected between generators in this direction.
Declaration
public Dictionary<Direction, (ContainmentFieldGeneratorComponent, List<EntityUid>)> Connections
Field Value
Type | Description |
---|---|
Dictionary<Direction, System.ValueTuple<ContainmentFieldGeneratorComponent, List<EntityUid>>> |
CreatedField
What fields should this spawn?
Declaration
public string CreatedField
Field Value
Type | Description |
---|---|
System.String |
Enabled
Is the generator toggled on?
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
System.Boolean |
IDTag
What collision should power this generator? It really shouldn't be anything but an emitter bolt but it's here for fun.
Declaration
public string IDTag
Field Value
Type | Description |
---|---|
System.String |
IsConnected
Is this generator connected to fields?
Declaration
public bool IsConnected
Field Value
Type | Description |
---|---|
System.Boolean |
MaxLength
How many tiles should this field check before giving up?
Declaration
public float MaxLength
Field Value
Type | Description |
---|---|
System.Single |
PowerLoss
How much power should this field generator lose if not powered?
Declaration
public int PowerLoss
Field Value
Type | Description |
---|---|
System.Int32 |
PowerMinimum
The minimum the field generator needs to start generating a connection
Declaration
public int PowerMinimum
Field Value
Type | Description |
---|---|
System.Int32 |
PowerReceived
How much power should this field generator receive from a collision
Declaration
public int PowerReceived
Field Value
Type | Description |
---|---|
System.Int32 |
Threshold
How many seconds should the generators wait before losing power?
Declaration
public float Threshold
Field Value
Type | Description |
---|---|
System.Single |
Properties
| Improve this Doc View SourcePowerBuffer
Store power with a cap. Decrease over time if not being powered from source.
Declaration
public int PowerBuffer { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |