TnuaActionState

Trait TnuaActionState 

Source
pub trait TnuaActionState:
    'static
    + Send
    + Sync {
    type Basis: TnuaBasis;
    type Discriminant: TnuaActionDiscriminant;

    // Required method
    fn discriminant(&self) -> Self::Discriminant;
}
Expand description

An enum mirroring the control scheme, except instead of just having the input of each action each variant has a TnuaActionState which contains the action’s input, configuration and memoery. If the variant in the control scheme has payload, they are copied to the variant in action state as is.

Required Associated Types§

Source

type Basis: TnuaBasis

The basis of the control scheme this action state enum represents.

Source

type Discriminant: TnuaActionDiscriminant

An enum with a unit variant for each variant of the control scheme.

Required Methods§

Source

fn discriminant(&self) -> Self::Discriminant

The action without the input and payloads.

Implementors§