DIFF

class BatteryCharger

BatteryCharger › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed

Constructors 1

Constants 17

protected static const string SEL_CLIPS_CAR = "clips_car_battery"
Referenced by OnOwnSocketTaken()
protected static const string SEL_CLIPS_TRUCK = "clips_truck_battery"
Referenced by OnOwnSocketTaken()
protected static const string SEL_CLIPS_DETACHED = "clips_detached"
protected static const string SEL_CLIPS_FOLDED = "clips_folded"
protected static const string SEL_SWITCH_ON = "switch_on"
protected static const string SEL_SWITCH_OFF = "switch_off"
protected static const string SEL_CORD_PLUGGED = "cord_plugged"
Referenced by OnPlacementStarted()
protected static const string SEL_CORD_FOLDED = "cord_folded"
Referenced by OnPlacementStarted()
protected static const string SEL_LIGHT_STATE_1 = "light_stand_by"
Referenced by OnPlacementStarted()
protected static const string SEL_LIGHT_STATE_2 = "light_charging"
Referenced by OnPlacementStarted()
protected static const string SEL_LIGHT_STATE_3 = "light_charged"
Referenced by OnPlacementStarted()
protected static const string SEL_STANDBY_LIGHT = "light_stand_by_on"
Referenced by RedLightOff(), and RedLightOn()
protected static const string SEL_SWITCH_LIGHT_ON = "light_switch_on"
protected static const string SEL_LIGHT_CHARGED_ON = "light_charged_on"
Referenced by GreenLightOff(), and GreenLightOn()
protected static const string SEL_LIGHT_CHARGING_ON = "light_charging_on"
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 void EEInit()
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 EEInit(), and UpdateStatusLights()
void GreenLightOff()
Referenced by EEInit(), and UpdateStatusLights()
void YellowLightOff()
Referenced by EEInit(), and UpdateStatusLights()
void SwitchLightOff()
Referenced by EEInit(), and UpdateStatusLights()
override void OnSwitchOn()
override void OnSwitchOff()
override void RefreshPhysics()
override bool IsDeployable()
override void SetActions()