Class BatteryDrainerComponent
Component for draining power from APCs/substations/SMESes, when ProviderUid is set to a battery cell. Does not rely on relay, simply being on the user and having BatteryUid set is enough.
Inheritance
System.Object
BatteryDrainerComponent
Namespace: Content.Shared.Ninja.Components
Assembly: Content.Shared.dll
Syntax
public sealed class BatteryDrainerComponent : Component
Fields
| Improve this Doc View SourceBatteryUid
The powercell entity to drain power into. Determines whether draining is possible.
Declaration
public EntityUid? BatteryUid
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
DrainEfficiency
Conversion rate between joules in a device and joules added to battery. Should be very low since powercells store nothing compared to even an APC.
Declaration
public float DrainEfficiency
Field Value
Type | Description |
---|---|
System.Single |
DrainTime
Time that the do after takes to drain charge from a battery, in seconds
Declaration
public float DrainTime
Field Value
Type | Description |
---|---|
System.Single |
SparkSound
Sound played after the doafter ends.
Declaration
public SoundSpecifier SparkSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |