Struct yy_typings::sounds::Sound[][src]

pub struct Sound {
    pub compression: Compression,
    pub volume: f64,
    pub preload: bool,
    pub bitrate: BitRate,
    pub sample_rate: u64,
    pub sound_type: usize,
    pub bit_depth: usize,
    pub audio_group_id: AudioGroup,
    pub sound_file: String,
    pub parent: ViewPath,
    pub resource_version: ResourceVersion,
    pub name: String,
    pub tags: Tags,
    pub resource_type: ConstGmSound,
    // some fields omitted
}

Fields

compression: Compression

The type of compression for the file.

volume: f64

The volume of the file.

preload: bool

Whether the sound is “preloaded” or not. I don’t know what this actually does.

bitrate: BitRatesample_rate: u64sound_type: usizebit_depth: usizeaudio_group_id: AudioGroup

This is the Path to the Audio Group Id.

sound_file: Stringparent: ViewPath

The parent in the Gms2 virtual file system, ie. the parent which a user would see in the Navigation Pane in Gms2. This has no relationship to the actual operating system’s filesystem.

resource_version: ResourceVersion

The resource version of this yy file. At default 1.0.

name: String

The name of the object. This is the human readable name used in the IDE.

tags: Tags

The tags given to the object.

resource_type: ConstGmSound

The resource type, always the same for sounds.

Trait Implementations

impl Clone for Sound[src]

impl Debug for Sound[src]

impl Default for Sound[src]

impl<'de> Deserialize<'de> for Sound[src]

impl PartialEq<Sound> for Sound[src]

impl Serialize for Sound[src]

impl StructuralPartialEq for Sound[src]

Auto Trait Implementations

impl RefUnwindSafe for Sound

impl Send for Sound

impl Sync for Sound

impl Unpin for Sound

impl UnwindSafe for Sound

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.