DIFF

class BatteryChargerSource

BatteryCharger ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

Constants 18

static protected const string SEL_CLIPS_CAR = "clips_car_battery"
Referenced by OnOwnSocketTaken()
static protected const string SEL_CLIPS_TRUCK = "clips_truck_battery"
Referenced by OnOwnSocketTaken()
static protected const string SEL_CLIPS_DETACHED = "clips_detached"
static protected const string SEL_CLIPS_FOLDED = "clips_folded"
static protected const string SEL_SWITCH_ON = "switch_on"
static protected const string SEL_SWITCH_OFF = "switch_off"
static protected const string SEL_CORD_PLUGGED = "cord_plugged"
Referenced by OnPlacementStarted()
static protected const string SEL_CORD_FOLDED = "cord_folded"
Referenced by OnPlacementStarted()
static protected const string SEL_LIGHT_STATE_1 = "light_stand_by"
Referenced by OnPlacementStarted()
static protected const string SEL_LIGHT_STATE_2 = "light_charging"
Referenced by OnPlacementStarted()
static protected const string SEL_LIGHT_STATE_3 = "light_charged"
Referenced by OnPlacementStarted()
static protected const string RED_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_r.rvmat"
Referenced by RedLightOn()
static protected const string GREEN_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_g.rvmat"
Referenced by GreenLightOn()
static protected const string YELLOW_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_y.rvmat"
Referenced by YellowLightOn()
static protected const string SWITCH_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_switch_on.rvmat"
Referenced by SwitchLightOn()
static protected const string DEFAULT_MATERIAL = "dz\\gear\\camping\\data\\battery_charger.rvmat"
Referenced by GreenLightOff(), RedLightOff(), SwitchLightOff()
Show 1 more, YellowLightOff()
protected const string ATTACHED_CLIPS_STATES[] = {SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}

TO DO: If it's required by design, add helicopter battery here and register its selection names.

protected const int ATTACHED_CLIPS_STATES_COUNT = 2

Reffers to this ^ array

Members 5

int m_BatteryEnergy0To100
Referenced by OnWork(), and UpdateStatusLights()
protected float m_ChargeEnergyPerSecond
Referenced by BatteryCharger(), and OnWork()
static protected float m_BlinkingStatusLightInterval = 0.4

How often the lights blink

Referenced by OnWorkStart()
ref Timer m_UpdateStatusLightsTimer
protected bool m_BlinkingStatusLightIsOn = false

Status of one blinking light

Referenced by UpdateStatusLights()

Methods 29

override bool IsElectricAppliance()
override void OnWorkStop()
override void OnOwnSocketReleased(EntityAI device)
void RedLightOn()
Referenced by UpdateStatusLights()
void GreenLightOn()
Referenced by UpdateStatusLights()
void YellowLightOn()
Referenced by UpdateStatusLights()
void SwitchLightOn()
Referenced by UpdateStatusLights()
void RedLightOff()
Referenced by UpdateStatusLights()
void GreenLightOff()
Referenced by UpdateStatusLights()
void YellowLightOff()
Referenced by UpdateStatusLights()
void SwitchLightOff()
override void OnSwitchOn()
override void OnSwitchOff()
override void RefreshPhysics()
override bool IsDeployable()
override string GetDeploySoundset()
override void SetActions()