Show / Hide Table of Contents

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 Source

CanDraw

Whether there is any charge available to draw.

Declaration
public bool CanDraw
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

CanUse

Whether there is sufficient charge to use.

Declaration
public bool CanUse
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Drawing

Is this power cell currently drawing power every tick.

Declaration
public bool Drawing
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

NextUpdateTime

When the next automatic power draw will occur

Declaration
public TimeSpan NextUpdateTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾