Module energy_cell

Module energy_cell 

Source
Expand description

EnergyCell module

This module defines the EnergyCell type, a simple component that can store energy after being exposed to a Sunray. It supports charging, discharging, and checking whether the cell currently holds energy.

Structsยง

EnergyCell
Represents an energy storage cell that can be charged by receiving a Sunray.