Class PowerCellDrawComponent
Indicates that the entity's ActivatableUI requires power or else it closes.
Inheritance
System.Object
PowerCellDrawComponent
Namespace: Content.Shared.PowerCell
Assembly: Content.Shared.dll
Syntax
public sealed class PowerCellDrawComponent : Component
Fields
| Improve this Doc View SourceCanDraw
Whether there is any charge available to draw.
Declaration
public bool CanDraw
Field Value
Type | Description |
---|---|
System.Boolean |
CanUse
Whether there is sufficient charge to use.
Declaration
public bool CanUse
Field Value
Type | Description |
---|---|
System.Boolean |
Drawing
Is this power cell currently drawing power every tick.
Declaration
public bool Drawing
Field Value
Type | Description |
---|---|
System.Boolean |
DrawRate
How much the entity draws while the UI is open. Set to 0 if you just wish to check for power upon opening the UI.
Declaration
public float DrawRate
Field Value
Type | Description |
---|---|
System.Single |
NextUpdateTime
When the next automatic power draw will occur
Declaration
public TimeSpan NextUpdateTime
Field Value
Type | Description |
---|---|
TimeSpan |
UseRate
How much power is used whenever the entity is "used". This is used to ensure the UI won't open again without a minimum use power.
Declaration
public float UseRate
Field Value
Type | Description |
---|---|
System.Single |