[][src]Struct sulis_state::animation::AnimState

pub struct AnimState { /* fields omitted */ }

Implementations

impl AnimState[src]

pub fn new() -> AnimState[src]

pub fn clear(&mut self)[src]

#[must_use]pub fn update(
    &mut self,
    to_add: Vec<Anim>,
    elapsed: u32
) -> (Vec<Box<dyn ScriptCallback>>, Vec<Box<dyn ScriptCallback>>)
[src]

Updates all animations based on the elapsed time. Adds the specified animations. Returns two vecs, the first is the list of animations that should be on_anim_update, the second is the list that should be on_anim_complete

pub fn save_anims(&self) -> Vec<AnimSaveState>[src]

pub fn draw_below_entities(
    &self,
    renderer: &mut dyn GraphicsRenderer,
    offset: Offset,
    scale: Scale,
    millis: u32
)
[src]

pub fn draw_above_entities(
    &self,
    renderer: &mut dyn GraphicsRenderer,
    offset: Offset,
    scale: Scale,
    millis: u32
)
[src]

pub fn has_any_blocking_anims(&self) -> bool[src]

pub fn has_blocking_anims(&self, entity: &Rc<RefCell<EntityState>>) -> bool[src]

pub fn clear_blocking_anims(&mut self, entity: &Rc<RefCell<EntityState>>)[src]

pub fn clear_all_blocking_anims(&mut self)[src]

Trait Implementations

impl Default for AnimState[src]

Auto Trait Implementations

impl !RefUnwindSafe for AnimState

impl !Send for AnimState

impl !Sync for AnimState

impl Unpin for AnimState

impl !UnwindSafe for AnimState

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]