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
sourcefn default() -> SpriteMoments
fn default() -> SpriteMoments
Returns the “default value” for a type. Read more
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
sourcefn ne(&self, other: &SpriteMoments) -> bool
fn ne(&self, other: &SpriteMoments) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more