Struct oxygengine_ha_renderer::components::sprite_animation_instance::HaSpriteAnimationInstance
source · pub struct HaSpriteAnimationInstance {
pub playing: bool,
pub speed: Scalar,
pub values: HashMap<String, SpriteAnimationValue>,
pub filtering: ImageFiltering,
/* private fields */
}Fields§
§playing: bool§speed: Scalar§values: HashMap<String, SpriteAnimationValue>§filtering: ImageFilteringImplementations§
source§impl HaSpriteAnimationInstance
impl HaSpriteAnimationInstance
pub fn active_state(&self) -> Option<&str>
pub fn active_frame_time(&self) -> Option<Scalar>
pub fn active_frame_name(&self) -> Option<&str>
pub fn frame_lately_changed(&self) -> bool
pub fn received_signals(&self) -> &[SpriteAnimationSignal]
pub fn play(&mut self, state: impl ToString)
pub fn stop(&mut self)
pub fn animation(&self) -> &str
pub fn set_animation(&mut self, animation: impl ToString)
pub fn set_value(&mut self, name: impl ToString, value: SpriteAnimationValue)
pub fn unset_value(&mut self, name: &str) -> Option<SpriteAnimationValue>
Trait Implementations§
source§impl Clone for HaSpriteAnimationInstance
impl Clone for HaSpriteAnimationInstance
source§fn clone(&self) -> HaSpriteAnimationInstance
fn clone(&self) -> HaSpriteAnimationInstance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HaSpriteAnimationInstance
impl Debug for HaSpriteAnimationInstance
source§impl Default for HaSpriteAnimationInstance
impl Default for HaSpriteAnimationInstance
source§impl<'de> Deserialize<'de> for HaSpriteAnimationInstance
impl<'de> Deserialize<'de> for HaSpriteAnimationInstance
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Prefab for HaSpriteAnimationInstance
impl Prefab for HaSpriteAnimationInstance
fn from_prefab(data: &Value) -> Result<Self, PrefabError>
fn from_prefab_with_extras( data: &Value, _named_entities: &HashMap<String, Entity, RandomState>, _state_token: ID<PhantomData<dyn State + Send + Sync>> ) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
fn to_prefab_string(&self) -> Result<String, PrefabError>
fn post_from_prefab(&mut self)
impl PrefabComponent for HaSpriteAnimationInstance
Auto Trait Implementations§
impl RefUnwindSafe for HaSpriteAnimationInstance
impl Send for HaSpriteAnimationInstance
impl Sync for HaSpriteAnimationInstance
impl Unpin for HaSpriteAnimationInstance
impl UnwindSafe for HaSpriteAnimationInstance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more