Struct yy_typings::sprite_yy::SpriteMoments [−][src]
pub struct SpriteMoments { pub keyframes: Vec<()>, pub resource_version: ResourceVersion, pub resource_type: ConstGmSpriteMoment, }
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
impl Clone for SpriteMoments
[src]
fn clone(&self) -> SpriteMoments
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SpriteMoments
[src]
impl Default for SpriteMoments
[src]
fn default() -> SpriteMoments
[src]
impl<'de> Deserialize<'de> for SpriteMoments
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for SpriteMoments
[src]
impl PartialEq<SpriteMoments> for SpriteMoments
[src]
fn eq(&self, other: &SpriteMoments) -> bool
[src]
fn ne(&self, other: &SpriteMoments) -> bool
[src]
impl Serialize for SpriteMoments
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for SpriteMoments
[src]
impl StructuralPartialEq for SpriteMoments
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,