Struct amethyst_animation::RestState [−][src]
pub struct RestState<T> { /* fields omitted */ }
Define the rest state for a component on an entity
Methods
impl<T> RestState<T>
[src]
impl<T> RestState<T>
pub fn new(t: T) -> Self
[src]
pub fn new(t: T) -> Self
Create new rest state
ⓘImportant traits for &'a mut Rpub fn state(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
pub fn state(&self) -> &T
Get the rest state
Trait Implementations
impl<'a, T> PrefabData<'a> for RestState<T> where
T: AnimationSampling + Clone,
[src]
impl<'a, T> PrefabData<'a> for RestState<T> where
T: AnimationSampling + Clone,
type SystemData = WriteStorage<'a, RestState<T>>
SystemData
needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
[src]
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
Load the data for this prefab onto the given Entity
Read more
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>
[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>
Trigger asset loading for any sub assets. Read more
impl<T: Debug> Debug for RestState<T>
[src]
impl<T: Debug> Debug for RestState<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for RestState<T>
[src]
impl<T: Clone> Clone for RestState<T>
fn clone(&self) -> RestState<T>
[src]
fn clone(&self) -> RestState<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Component for RestState<T> where
T: AnimationSampling,
[src]
impl<T> Component for RestState<T> where
T: AnimationSampling,
type Storage = DenseVecStorage<Self>
Associated storage type for this component.