Show / Hide Table of Contents

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 Source

BatteryUid

The powercell entity to drain power into. Determines whether draining is possible.

Declaration
public EntityUid? BatteryUid
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

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

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

SparkSound

Sound played after the doafter ends.

Declaration
public SoundSpecifier SparkSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾