Module bevy_state::state

source ·
Expand description

Provides definitions for the basic traits required by the state system

Structs§

Enums§

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.
  • A States type or tuple of types which implement States.
  • 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§

Derive Macros§