Struct yy_typings::sprite_yy::SpriteSequence
source · [−]pub struct SpriteSequence {Show 25 fields
pub common_data: CommonData<ConstGmSequence, String, 1, 4>,
pub time_units: usize,
pub playback: usize,
pub playback_speed: f32,
pub playback_speed_type: PlaybackSpeed,
pub auto_record: bool,
pub volume: f32,
pub length: f32,
pub events: SpriteEvents,
pub moments: SpriteMoments,
pub tracks: Vec<Track>,
pub visible_range: Option<VisibleRange>,
pub lock_origin: bool,
pub show_backdrop: bool,
pub show_backdrop_image: bool,
pub backdrop_image_path: String,
pub backdrop_image_opacity: f32,
pub backdrop_width: u64,
pub backdrop_height: u64,
pub backdrop_x_offset: f32,
pub backdrop_y_offset: f32,
pub xorigin: i32,
pub yorigin: i32,
pub event_to_function: Value,
pub event_stub_script: Option<()>,
}
Fields
common_data: CommonData<ConstGmSequence, String, 1, 4>
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: f32
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: f32
The volume of the sequence. Always 1.
length: f32
The number of frames of the Sprite. GMS2 records this as an f32 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: f32
backdrop_width: u64
backdrop_height: u64
backdrop_x_offset: f32
backdrop_y_offset: f32
xorigin: i32
yorigin: i32
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<()>
Trait Implementations
sourceimpl Clone for SpriteSequence
impl Clone for SpriteSequence
sourcefn clone(&self) -> SpriteSequence
fn clone(&self) -> SpriteSequence
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 SpriteSequence
impl Debug for SpriteSequence
sourceimpl Default for SpriteSequence
impl Default for SpriteSequence
sourcefn default() -> Self
fn default() -> Self
Return SpriteSequence { common_data: 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 }
sourceimpl<'de> Deserialize<'de> for SpriteSequence
impl<'de> Deserialize<'de> for SpriteSequence
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<SpriteSequence> for SpriteSequence
impl PartialEq<SpriteSequence> for SpriteSequence
sourcefn eq(&self, other: &SpriteSequence) -> bool
fn eq(&self, other: &SpriteSequence) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for SpriteSequence
impl Serialize for SpriteSequence
impl StructuralPartialEq for SpriteSequence
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
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