pub struct SoundEvents { /* private fields */ }Expand description
Sound events configuration for a game.
Contains the complete audio event system configuration including categories, event definitions, ambience mappings, and movie audio settings.
Note: Many fields in this format are not fully understood and are marked as uk_*.
Implementations§
Source§impl SoundEvents
impl SoundEvents
Sourcepub fn master_volume(&self) -> &f32
pub fn master_volume(&self) -> &f32
Master volume level for all sounds.
Sourcepub fn categories(&self) -> &Vec<Category>
pub fn categories(&self) -> &Vec<Category>
Sound categories (e.g., music, SFX, voice).
Sourcepub fn event_data(&self) -> &Vec<EventData>
pub fn event_data(&self) -> &Vec<EventData>
Event data parameters referenced by event records.
Sourcepub fn event_records(&self) -> &Vec<EventRecord>
pub fn event_records(&self) -> &Vec<EventRecord>
Sound event definitions.
Sourcepub fn ambience_map(&self) -> &Vec<AmbienceMap>
pub fn ambience_map(&self) -> &Vec<AmbienceMap>
Ambience sound mappings.
Source§impl SoundEvents
impl SoundEvents
Sourcepub fn master_volume_mut(&mut self) -> &mut f32
pub fn master_volume_mut(&mut self) -> &mut f32
Master volume level for all sounds.
Sourcepub fn categories_mut(&mut self) -> &mut Vec<Category>
pub fn categories_mut(&mut self) -> &mut Vec<Category>
Sound categories (e.g., music, SFX, voice).
Sourcepub fn event_data_mut(&mut self) -> &mut Vec<EventData>
pub fn event_data_mut(&mut self) -> &mut Vec<EventData>
Event data parameters referenced by event records.
Sourcepub fn event_records_mut(&mut self) -> &mut Vec<EventRecord>
pub fn event_records_mut(&mut self) -> &mut Vec<EventRecord>
Sound event definitions.
Sourcepub fn ambience_map_mut(&mut self) -> &mut Vec<AmbienceMap>
pub fn ambience_map_mut(&mut self) -> &mut Vec<AmbienceMap>
Ambience sound mappings.
Sourcepub fn movies_mut(&mut self) -> &mut Vec<Movie>
pub fn movies_mut(&mut self) -> &mut Vec<Movie>
Movie audio configurations.
Source§impl SoundEvents
impl SoundEvents
Sourcepub fn set_master_volume(&mut self, val: f32) -> &mut Self
pub fn set_master_volume(&mut self, val: f32) -> &mut Self
Master volume level for all sounds.
Sourcepub fn set_categories(&mut self, val: Vec<Category>) -> &mut Self
pub fn set_categories(&mut self, val: Vec<Category>) -> &mut Self
Sound categories (e.g., music, SFX, voice).
Sourcepub fn set_event_data(&mut self, val: Vec<EventData>) -> &mut Self
pub fn set_event_data(&mut self, val: Vec<EventData>) -> &mut Self
Event data parameters referenced by event records.
Sourcepub fn set_event_records(&mut self, val: Vec<EventRecord>) -> &mut Self
pub fn set_event_records(&mut self, val: Vec<EventRecord>) -> &mut Self
Sound event definitions.
Sourcepub fn set_ambience_map(&mut self, val: Vec<AmbienceMap>) -> &mut Self
pub fn set_ambience_map(&mut self, val: Vec<AmbienceMap>) -> &mut Self
Ambience sound mappings.
Sourcepub fn set_movies(&mut self, val: Vec<Movie>) -> &mut Self
pub fn set_movies(&mut self, val: Vec<Movie>) -> &mut Self
Movie audio configurations.
Trait Implementations§
Source§impl Clone for SoundEvents
impl Clone for SoundEvents
Source§fn clone(&self) -> SoundEvents
fn clone(&self) -> SoundEvents
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SoundEvents
impl Debug for SoundEvents
Source§impl Decodeable for SoundEvents
impl Decodeable for SoundEvents
Source§impl Default for SoundEvents
impl Default for SoundEvents
Source§fn default() -> SoundEvents
fn default() -> SoundEvents
Source§impl<'de> Deserialize<'de> for SoundEvents
impl<'de> Deserialize<'de> for SoundEvents
Source§fn 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>,
Source§impl Encodeable for SoundEvents
impl Encodeable for SoundEvents
Source§fn encode<W: WriteBytes>(
&mut self,
buffer: &mut W,
extra_data: &Option<EncodeableExtraData<'_>>,
) -> Result<()>
fn encode<W: WriteBytes>( &mut self, buffer: &mut W, extra_data: &Option<EncodeableExtraData<'_>>, ) -> Result<()>
Source§impl PartialEq for SoundEvents
impl PartialEq for SoundEvents
Source§impl Serialize for SoundEvents
impl Serialize for SoundEvents
impl StructuralPartialEq for SoundEvents
Auto Trait Implementations§
impl Freeze for SoundEvents
impl RefUnwindSafe for SoundEvents
impl Send for SoundEvents
impl Sync for SoundEvents
impl Unpin for SoundEvents
impl UnsafeUnpin for SoundEvents
impl UnwindSafe for SoundEvents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.