Module bevy_state::state
source · Expand description
Provides definitions for the basic traits required by the state system
Structs§
- System set that runs enter schedule(s) for state
S
. - System set that runs exit schedule(s) for state
S
. - A finite-state machine whose transitions have associated schedules (
OnEnter(state)
andOnExit(state)
). - Runs state transitions.
- Event sent when any state transition of
S
happens. This includes identity transitions, whereexited
andentered
have the same value. - System set that runs transition schedule(s) for state
S
.
Enums§
- The next state of
State<S>
.
Traits§
- A state whose value is automatically computed based on the values of other
States
. - This trait allows a state to be mutated directly using the
NextState<S>
resource. - Types that can define world-wide states in a finite-state machine.
- A sub-state is a state that exists only when the source state meet certain conditions, but unlike
ComputedStates
- while they exist they can be manually modified.
Functions§
- Returns the latest state transition event of type
S
, if any are available. - Sets up the schedules and systems for handling state transitions within a
World
.