[−][src]Struct yy_typings::sprite_yy::SpriteSequence
Fields
sprite_id: FilesystemPath
The path to the parent sprite.
time_units: usize
The Units of time of the Sequence. It will always be 1 in a Sprite.
playback: usize
Will always be One.
playback_speed: f64
The playback speed of the Sequence in terms of the PlaybackSpeed type.
playback_speed_type: PlaybackSpeed
The type of the playback speed.
auto_record: bool
Whether to autorecord the sequence. This will always be true for sprites.
volume: f64
The volume of the sequence. Always 1.
length: f64
The number of frames of the Sprite. GMS2 records this as an f64 due to its shared
status between sequences -- this can be converted to a usize
without issue.
events: SpriteEvents
The sprite events, which are always the Default value of SpriteEvents, for the Sprite.
moments: SpriteMoments
The sprite moments, which are always the Default value of SpriteMoments, for the Sprite.
tracks: Vec<Track>
The "tracks" which the Sprite has. There is only every One track for a Sprite.
visible_range: Option<VisibleRange>
This denotes which range is visible. I am not clear what it means.
lock_origin: bool
Whether the origin of the sprite is locked in the GMS2 Editor. It has no effect otherwise.
show_backdrop: bool
show_backdrop_image: bool
backdrop_image_path: String
backdrop_image_opacity: f64
backdrop_width: u64
backdrop_height: u64
backdrop_x_offset: f64
backdrop_y_offset: f64
xorigin: isize
yorigin: isize
event_to_function: Value
This can be a {}
, which basically is
impossible for us to parse. So that's a mess.
event_stub_script: Option<()>
parent: FilesystemPath
This is a duplicate of sprite_id
, and should always
be the same value. It is unknown why there is duplicate data.
resource_version: ResourceVersion
The resource version. Currently 1.3
.
name: String
The name of the SpriteSequence, which is always an empty string.
The tags given to this resource. Empty.
resource_type: ConstGmSequence
This is the resource type. Always GMSequence.
Trait Implementations
impl Clone for SpriteSequence
[src]
fn clone(&self) -> SpriteSequence
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SpriteSequence
[src]
impl Default for SpriteSequence
[src]
fn default() -> Self
[src]
Return SpriteSequence { sprite_id: Default::default(), time_units: 1, playback: 1, playback_speed: Default::default(), playback_speed_type: Default::default(), auto_record: true, volume: 1.0, length: Default::default(), events: Default::default(), moments: Default::default(), tracks: Default::default(), visible_range: Default::default(), lock_origin: Default::default(), show_backdrop: true, show_backdrop_image: false, backdrop_image_path: String :: new(), backdrop_image_opacity: 0.5, backdrop_width: Default::default(), backdrop_height: Default::default(), backdrop_x_offset: Default::default(), backdrop_y_offset: Default::default(), xorigin: Default::default(), yorigin: Default::default(), event_to_function: serde_json :: Value :: Object(serde_json :: Map :: new()), event_stub_script: None, parent: Default::default(), resource_version: "1.3" . parse :: < ResourceVersion > () . unwrap(), name: String :: new(), tags: vec ! [], resource_type: Default::default() }
impl<'de> Deserialize<'de> for SpriteSequence
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<SpriteSequence> for SpriteSequence
[src]
fn eq(&self, other: &SpriteSequence) -> bool
[src]
fn ne(&self, other: &SpriteSequence) -> bool
[src]
impl Serialize for SpriteSequence
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for SpriteSequence
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpriteSequence
impl Send for SpriteSequence
impl Sync for SpriteSequence
impl Unpin for SpriteSequence
impl UnwindSafe for SpriteSequence
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,