Module battery
de_energy
0.1.0-dev
Module battery
Structs
Constants
Functions
In crate de_energy
Modules
battery
Structs
Battery
EnergyPluginGroup
?
Settings
Module
de_energy
::
battery
Copy item path
source
·
[
−
]
Structs
§
Battery
The battery component is used to store the energy level of an entity.
BatteryPlugin
🔒
Constants
§
DEFAULT_CAPACITY
🔒
The default capacity of the battery in Joules.
DISCHARGE_RATE
🔒
The rate at which the battery discharges in Joules per second.
Functions
§
discharge_battery
🔒
Discharges the batteries of all units.