Skip to main content

Namespace mobisim.Battery

Namespaces​

Classes​

Base custom editor for battery system components which provides a shared inspector layout.

A component that enables time-based battery consumption for a BatterySystem. When enabled, it linearly drains the battery over time based on the configured battery life.

Custom editor for the BatteryDrainSystem component.

Represents a message containing the battery level. This message is used to notify other systems or components, such as a the battery bar UI, about the battery system's current battery level.

Listens for BatteryMessage events via the IEventAggregator and relays the data through UnityEvent. This allows connecting to UI components or other systems in the Inspector.

Tracks an actor's remaining power, broadcasts level updates to UI and analysis consumers each frame, and fires a one-time depletion event when the battery reaches its minimum value.

A component that manages a shareable portion of the main battery system's energy level.

Custom editor for the ShareableBatterySystem component.