Struct oxygengine_composite_renderer::component::CompositeTilemapAnimation [−][src]
pub struct CompositeTilemapAnimation {
pub animations: HashMap<Cow<'static, str>, TilemapAnimation>,
// some fields omitted
}Fields
animations: HashMap<Cow<'static, str>, TilemapAnimation>Implementations
impl CompositeTilemapAnimation[src]
impl CompositeTilemapAnimation[src]pub fn new(animations: HashMap<Cow<'static, str>, TilemapAnimation>) -> Self[src]
pub fn from_iter<I>(animations: I) -> Self where
I: IntoIterator<Item = (Cow<'static, str>, TilemapAnimation)>, [src]
I: IntoIterator<Item = (Cow<'static, str>, TilemapAnimation)>,
pub fn play(&mut self, name: &str, speed: Scalar, looped: bool) -> bool[src]
pub fn stop(&mut self)[src]
pub fn is_playing(&self) -> bool[src]
pub fn current(&self) -> Option<&str>[src]
pub fn phase(&self) -> Option<Scalar>[src]
pub fn set_phase(&mut self, value: Scalar) -> bool[src]
pub fn speed(&self) -> Option<Scalar>[src]
pub fn set_speed(&mut self, value: Scalar) -> bool[src]
pub fn looped(&self) -> Option<bool>[src]
pub fn set_looped(&mut self, value: bool) -> bool[src]
pub fn apply(&mut self)[src]
Trait Implementations
impl Clone for CompositeTilemapAnimation[src]
impl Clone for CompositeTilemapAnimation[src]fn clone(&self) -> CompositeTilemapAnimation[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Component for CompositeTilemapAnimation[src]
impl Component for CompositeTilemapAnimation[src]type Storage = VecStorage<Self>
Associated storage type for this component.
impl Default for CompositeTilemapAnimation[src]
impl Default for CompositeTilemapAnimation[src]impl<'de> Deserialize<'de> for CompositeTilemapAnimation[src]
impl<'de> Deserialize<'de> for CompositeTilemapAnimation[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Prefab for CompositeTilemapAnimation[src]
impl Prefab for CompositeTilemapAnimation[src]fn post_from_prefab(&mut self)[src]
pub fn from_prefab(data: Value) -> Result<Self, PrefabError>[src]
pub fn from_prefab_with_extras(
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>[src]
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>
pub fn to_prefab(&self) -> Result<Value, PrefabError>[src]
pub fn from_prefab_str(data: &str) -> Result<Self, PrefabError>[src]
pub fn to_prefab_string(&self) -> Result<String, PrefabError>[src]
impl Serialize for CompositeTilemapAnimation[src]
impl Serialize for CompositeTilemapAnimation[src]Auto Trait Implementations
impl RefUnwindSafe for CompositeTilemapAnimation
impl RefUnwindSafe for CompositeTilemapAnimationimpl Send for CompositeTilemapAnimation
impl Send for CompositeTilemapAnimationimpl Sync for CompositeTilemapAnimation
impl Sync for CompositeTilemapAnimationimpl Unpin for CompositeTilemapAnimation
impl Unpin for CompositeTilemapAnimationimpl UnwindSafe for CompositeTilemapAnimation
impl UnwindSafe for CompositeTilemapAnimationBlanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any, pub fn get_type_id(&self) -> TypeId
impl<'a, C> ComponentContainerModify<'a, ComponentContainer<'a, C>> for C where
C: Component, [src]
impl<'a, C> ComponentContainerModify<'a, ComponentContainer<'a, C>> for C where
C: Component, [src]pub fn fetch(world: &'a World, entity: Entity) -> ComponentContainer<'a, C>[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,