11 RegisterNetSyncVariableInt(
"m_Efficiency0To10");
29 super.OnEnergyConsumed();
33 float energyCoef = GetCompEM().GetEnergy0To1();
35 if (energyCoef < m_EfficiencyDecayStart && m_EfficiencyDecayStart > 0)
46 super.OnEnergyAdded();
50 float energyCoef = GetCompEM().GetEnergy0To1();
51 if (energyCoef < m_EfficiencyDecayStart && m_EfficiencyDecayStart > 0)
void AddAction(typename actionName)
override void OnEnergyConsumed()
override void OnEnergyAdded()
override void SetActions()
float m_EfficiencyDecayStart
float GetEfficiency0To1()
Returns efficiency of this battery. The value is synchronized from server to all clients and is accur...
float GetEfficiencyDecayStart()
Returns efficiency of this battery. The value is synchronized from server to all clients and is accur...
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
static proto float Round(float f)
Returns mathematical round of value.