Backing data for State.

This type exists so State can stay an abstract wrapper with convenient conversions and operators while the real storage lives in a small concrete object.

Constructor

new(?transitions:Map<StateData, () ‑> Void>)

Creates state backing data.

Parameters:

transitions

Optional transition map.

Variables

transitions:Map<StateData, () ‑> Void>

Transition callbacks keyed by target state.

The map is mutated by the public State API and is not usually accessed directly from gameplay code.