Function de_energy::battery::discharge_battery

source ·
pub(crate) fn discharge_battery(
    time: Res<'_, Time>,
    battery: Query<'_, '_, &mut Battery>
)
Expand description

Discharges the batteries of all units.

§Arguments

  • time - The time since the last update.

  • battery - The battery.