pub struct SavedSound {Show 26 fields
pub tag: String,
pub object_id: ObjectId,
pub commandable: bool,
pub active: bool,
pub looping: bool,
pub continuous: bool,
pub random: bool,
pub random_position: bool,
pub positional: bool,
pub sounds: Vec<UtsSound>,
pub times: u8,
pub hours: u32,
pub interval: u32,
pub interval_variation: u32,
pub generated_type: u32,
pub volume: u8,
pub volume_variation: u8,
pub pitch_variation: f32,
pub fixed_variance: f32,
pub min_distance: f32,
pub max_distance: f32,
pub random_range_x: f32,
pub random_range_y: f32,
pub x_position: f32,
pub y_position: f32,
pub z_position: f32,
}Expand description
A sound emitter as stored inside a save game’s module GIT.
Fields§
§tag: StringObject tag (Tag).
object_id: ObjectIdRuntime object id (ObjectId).
commandable: boolAccepts scripted commands (Commandable).
active: boolCurrently emitting (Active).
looping: boolRestarts the playlist when it ends (Looping).
continuous: boolPlays without gaps between entries (Continuous).
random: boolShuffles the playlist (Random).
random_position: boolMoves the emitter between plays (RandomPosition).
positional: boolAttenuates with distance (Positional).
sounds: Vec<UtsSound>Playlist entries (Sounds). The element shape matches a .uts
entry, so this reuses UtsSound.
times: u8Repeat count (Times).
hours: u32Hour mask the emitter is awake for (Hours).
interval: u32Gap between plays, in milliseconds (Interval).
interval_variation: u32Random variance added to the gap (IntervalVrtn).
generated_type: u32Playback source kind (GeneratedType).
volume: u8Volume (Volume).
volume_variation: u8Random volume variance (VolumeVrtn).
pitch_variation: f32Random pitch variance (PitchVariation).
fixed_variance: f32Fixed pitch variance (FixedVariance).
min_distance: f32Distance at which attenuation starts (MinDistance).
max_distance: f32Distance at which the sound is inaudible (MaxDistance).
random_range_x: f32Random reposition range along X (RandomRangeX).
random_range_y: f32Random reposition range along Y (RandomRangeY).
x_position: f32World X position (XPosition).
y_position: f32World Y position (YPosition).
z_position: f32World Z position (ZPosition).
Implementations§
Source§impl SavedSound
impl SavedSound
Trait Implementations§
Source§impl Clone for SavedSound
impl Clone for SavedSound
Source§fn clone(&self) -> SavedSound
fn clone(&self) -> SavedSound
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SavedSound
impl Debug for SavedSound
Source§impl Default for SavedSound
impl Default for SavedSound
Source§fn default() -> SavedSound
fn default() -> SavedSound
Source§impl PartialEq for SavedSound
impl PartialEq for SavedSound
Source§fn eq(&self, other: &SavedSound) -> bool
fn eq(&self, other: &SavedSound) -> bool
self and other values to be equal, and is used by ==.