DIFF

class Battery9V

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

Constructors 1

Members 3

static int SLOT_ID = InventorySlots.GetSlotIdFromString("BatteryD")
private int m_Efficiency0To10

Synchronized variable

Referenced by Battery9V(), GetEfficiency0To1(), OnEnergyAdded()
Show 1 more, OnEnergyConsumed()
static private float m_EfficiencyDecayStart = 0.1

At this % of maximum energy the output of the battery starts to weaken.

Methods 5

float GetEfficiency0To1()

Returns efficiency of this battery. The value is synchronized from server to all clients and is accurate down to 0.1 units.

float GetEfficiencyDecayStart()

Returns efficiency of this battery. The value is synchronized from server to all clients and is accurate down to 0.1 unit.

override void SetActions()