Struct ai_behavior::ActionArgs [] [src]

pub struct ActionArgs<'a, E: 'a, A: 'a, S: 'a> {
    pub event: &'a E,
    pub dt: f64,
    pub action: &'a A,
    pub state: &'a mut Option<S>,
}

The arguments in the action callback.

Fields

The event.

The remaining delta time.

The action running.

The state of the running action, if any.

Trait Implementations

Auto Trait Implementations

impl<'a, E, A, S> Send for ActionArgs<'a, E, A, S> where
    A: Sync,
    E: Sync,
    S: Send

impl<'a, E, A, S> Sync for ActionArgs<'a, E, A, S> where
    A: Sync,
    E: Sync,
    S: Sync