[−][src]Struct sulis_state::animation::Anim
Implementations
impl Anim
[src]
pub fn new_non_blocking_wait(
owner: &Rc<RefCell<EntityState>>,
duration_millis: u32
) -> Anim
[src]
owner: &Rc<RefCell<EntityState>>,
duration_millis: u32
) -> Anim
pub fn new_wait(owner: &Rc<RefCell<EntityState>>, duration_millis: u32) -> Anim
[src]
pub fn new_entity_image_layer(
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
images: HashMap<ImageLayer, Rc<dyn Image>>
) -> Anim
[src]
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
images: HashMap<ImageLayer, Rc<dyn Image>>
) -> Anim
pub fn new_entity_color(
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
color: [Param; 4],
color_sec: [Param; 4]
) -> Anim
[src]
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
color: [Param; 4],
color_sec: [Param; 4]
) -> Anim
pub fn new_entity_scale(
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
scale: Param
) -> Anim
[src]
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
scale: Param
) -> Anim
pub fn new_entity_subpos(
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
x: Param,
y: Param
) -> Anim
[src]
owner: &Rc<RefCell<EntityState>>,
duration_millis: ExtInt,
x: Param,
y: Param
) -> Anim
pub fn new_entity_recover(owner: &Rc<RefCell<EntityState>>) -> Anim
[src]
pub fn new_entity_death(owner: &Rc<RefCell<EntityState>>) -> Anim
[src]
pub fn set_removal_effect(&mut self, index: usize)
[src]
pub fn update(&mut self, millis: u32) -> bool
[src]
pub fn draw(
&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 add_completion_callback(&mut self, callback: Box<dyn ScriptCallback>)
[src]
pub fn add_update_callback(
&mut self,
callback: Box<dyn ScriptCallback>,
time_millis: u32
)
[src]
&mut self,
callback: Box<dyn ScriptCallback>,
time_millis: u32
)
pub fn add_removal_listener(&self, effect: &mut Effect)
[src]
pub fn get_marked_for_removal(&self) -> Rc<Cell<bool>>
[src]
pub fn mark_for_removal(&mut self)
[src]
pub fn owner(&self) -> &Rc<RefCell<EntityState>>
[src]
pub fn is_blocking(&self) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Anim
impl !Send for Anim
impl !Sync for Anim
impl Unpin for Anim
impl !UnwindSafe for Anim
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>,