Class ParticleAcceleratorControlBoxComponent
Is the computer thing people interact with to control the PA. Also contains primary logic for actual PA behavior, part scanning, etc...
Inheritance
Namespace: Content.Server.ParticleAccelerator.Components
Assembly: Content.Server.dll
Syntax
public sealed class ParticleAcceleratorControlBoxComponent : Component
Fields
| Improve this Doc View SourceAssembled
Whether the PA parts have been correctly arranged to make a functional device.
Declaration
public bool Assembled
Field Value
Type | Description |
---|---|
System.Boolean |
BasePowerDraw
The amount of power (in watts) the PA draws just by existing as a functional machine.
Declaration
public int BasePowerDraw
Field Value
Type | Description |
---|---|
System.Int32 |
CanBeEnabled
Whether the PA can be turned on. Modified by ParticleAcceleratorPowerWireAction.
Declaration
public bool CanBeEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
ChargeTime
Delay between consecutive PA shots.
Declaration
public TimeSpan ChargeTime
Field Value
Type | Description |
---|---|
TimeSpan |
CurrentlyRescanning
Block re-entrant rescanning.
Declaration
public bool CurrentlyRescanning
Field Value
Type | Description |
---|---|
System.Boolean |
Enabled
Whether the PA is currently set to fire at the console. Requires Assembled to be true.
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
System.Boolean |
EndCap
Whether the PA is currently firing or charging to fire. Implies the existance of a ParticleAcceleratorEndCapComponent attached to this entity.
Declaration
public EntityUid? EndCap
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
Firing
Whether the PA is currently firing or charging to fire. Requires Powered to be true.
Declaration
public bool Firing
Field Value
Type | Description |
---|---|
System.Boolean |
ForeEmitter
Whether the PA is currently firing or charging to fire. Implies the existance of a ParticleAcceleratorEmitterComponent attached to this entity.
Declaration
public EntityUid? ForeEmitter
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
FuelChamber
Whether the PA is currently firing or charging to fire. Implies the existance of a ParticleAcceleratorFuelChamberComponent attached to this entity.
Declaration
public EntityUid? FuelChamber
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
InterfaceDisabled
Whether the interface has been disabled via a cut wire or not. Modified by ParticleAcceleratorKeyboardWireAction.
Declaration
public bool InterfaceDisabled
Field Value
Type | Description |
---|---|
System.Boolean |
LastFire
The time at which the PA last fired a wave of particles.
Declaration
public TimeSpan LastFire
Field Value
Type | Description |
---|---|
TimeSpan |
LevelPowerDraw
The amount of power (in watts) the PA draws per level when turned on.
Declaration
public int LevelPowerDraw
Field Value
Type | Description |
---|---|
System.Int32 |
MaxStrength
The maximum strength level this particle accelerator can be set to operate at. Modified by ParticleAcceleratorLimiterWireAction.
Declaration
public ParticleAcceleratorPowerState MaxStrength
Field Value
Type | Description |
---|---|
ParticleAcceleratorPowerState |
NextFire
The time at which the PA will next fire a wave of particles.
Declaration
public TimeSpan NextFire
Field Value
Type | Description |
---|---|
TimeSpan |
PortEmitter
Whether the PA is currently firing or charging to fire. Implies the existance of a ParticleAcceleratorEmitterComponent attached to this entity.
Declaration
public EntityUid? PortEmitter
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
PowerBox
The power supply unit of the assembled particle accelerator. Implies the existance of a ParticleAcceleratorPowerBoxComponent attached to this entity.
Declaration
public EntityUid? PowerBox
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
Powered
Whether the PA actually has the power necessary to fire. Requires Enabled to be true.
Declaration
public bool Powered
Field Value
Type | Description |
---|---|
System.Boolean |
RequiredPowerRatio
The amount of power the particle accelerator must be provided with relative to the expected power draw to function.
Declaration
public const float RequiredPowerRatio = null
Field Value
Type | Description |
---|---|
System.Single |
SelectedStrength
Whether the PA is currently firing or charging to fire. Bounded by Standby and MaxStrength. Modified by ParticleAcceleratorStrengthWireAction.
Declaration
public ParticleAcceleratorPowerState SelectedStrength
Field Value
Type | Description |
---|---|
ParticleAcceleratorPowerState |
StarboardEmitter
Whether the PA is currently firing or charging to fire. Implies the existance of a ParticleAcceleratorEmitterComponent attached to this entity.
Declaration
public EntityUid? StarboardEmitter
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
StrengthLocked
Whether the ability to change the strength of the PA has been disabled via a cut wire or not. Modified by ParticleAcceleratorStrengthWireAction.
Declaration
public bool StrengthLocked
Field Value
Type | Description |
---|---|
System.Boolean |