Struct yy_typings::sprite_yy::SpriteMoments
source · [−]pub struct SpriteMoments {
pub keyframes: Vec<()>,
pub resource_version: ResourceVersion,
pub resource_type: ConstGmSpriteMoment,
}
Expand description
These are the “moments” which a Sprite is subscribed to. It will always be its default value. This is due to sharing resources with Sequences.
Fields
keyframes: Vec<()>
The keyframes which a SpriteEvent is assigned to. Because Sprites do not have access to all the resources of a sequence, they are always subscribed to 0 keyframes.
resource_version: ResourceVersion
The resource version of the SpriteMoment. Currently, it is always “1.0”.
resource_type: ConstGmSpriteMoment
The name of the Resource Type. This is a C# generic, so this Serde typing may not be sufficent. Testing will have to be done.
Trait Implementations
sourceimpl Clone for SpriteMoments
impl Clone for SpriteMoments
sourcefn clone(&self) -> SpriteMoments
fn clone(&self) -> SpriteMoments
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SpriteMoments
impl Debug for SpriteMoments
sourceimpl Default for SpriteMoments
impl Default for SpriteMoments
sourceimpl<'de> Deserialize<'de> for SpriteMoments
impl<'de> Deserialize<'de> for SpriteMoments
sourcefn 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
sourceimpl PartialEq<SpriteMoments> for SpriteMoments
impl PartialEq<SpriteMoments> for SpriteMoments
sourcefn eq(&self, other: &SpriteMoments) -> bool
fn eq(&self, other: &SpriteMoments) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for SpriteMoments
impl Serialize for SpriteMoments
impl Eq for SpriteMoments
impl StructuralEq for SpriteMoments
impl StructuralPartialEq for SpriteMoments
Auto Trait Implementations
impl RefUnwindSafe for SpriteMoments
impl Send for SpriteMoments
impl Sync for SpriteMoments
impl Unpin for SpriteMoments
impl UnwindSafe for SpriteMoments
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more