Module charge

Source
Expand description

Hold/release actions with minimum commitment, capped power and recovery time.

ChargeAction::step retains the original held-only behavior. ChargeAction::step_edges also preserves aggregate press/release flags, including release/repress with a final held level. These flags contain no sub-tick timestamps; the helper uses a documented duration attribution, not reconstructed physical timing. Call once per actually executed simulation tick, sharing one consumed input snapshot across systems. Charge releases are requests: the game must accept costs/actions before emitting feedback.

Structs§

ChargeAction
A fixed-size charge state machine; stepping does not allocate or queue input.
ChargeStep
A release resolution and the charge state after the same snapshot.

Enums§

ChargeRelease
The single release resolution from an edge-aware step.