Crate bevy_gearbox

Crate bevy_gearbox 

Source

Re-exports§

pub use transitions::TransitionEvent;
pub use transitions::NoEvent;

Modules§

active
bevy_state
guards
history
parameter
prelude
state_component
transitions

Structs§

EnterState
An event that is triggered on a state entity when it is being entered.
ExitState
An event that is triggered on a state entity when it is being exited.
GearboxPlugin
The main plugin for bevy_gearbox. Registers events and adds the core systems.
InitialState
A component that specifies the initial substate for a state. When a state is entered, the machine will recursively drill down through InitialState components to find the leaf state(s) to activate.
Parallel
A marker component for a state that has parallel (orthogonal) regions. When a state with this component is entered, the machine will simultaneously enter the initial state of each of its direct children.
ResetRegion
Event to reset a state machine: clear Active flags under the root and reinitialize
StateChildOf
StateChildren
StateMachine
A component on the state machine’s root entity that tracks the current active states.
Transition
An event that triggers a state transition in a machine. Prefer using edge to reference a transition entity. The legacy connection field is retained for initialization and backward compatibility.
TransitionActions

Functions§

get_all_leaf_states

Derive Macros§

SimpleTransition
Derive macro for simple events that don’t need phase-specific payloads.