[−][src]Struct sulis_state::animation::AnimState
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]
&mut self,
to_add: Vec<Anim>,
elapsed: u32
) -> (Vec<Box<dyn ScriptCallback>>, Vec<Box<dyn ScriptCallback>>)
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]
&self,
renderer: &mut dyn GraphicsRenderer,
offset: Offset,
scale: Scale,
millis: u32
)
pub fn draw_above_entities(
&self,
renderer: &mut dyn GraphicsRenderer,
offset: Offset,
scale: Scale,
millis: u32
)
[src]
&self,
renderer: &mut dyn GraphicsRenderer,
offset: Offset,
scale: Scale,
millis: u32
)
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,