[][src]Struct ai_behavior::ActionArgs

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

event: &'a E

The event.

dt: f64

The remaining delta time.

action: &'a A

The action running.

state: &'a mut Option<S>

The state of the running action, if any.

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]