pub struct SoundItem {
pub filename: ArrayString<[u8; 13]>,
pub resource_id: i32,
pub probability: i16,
pub civilization: Option<i16>,
pub icon_set: Option<i16>,
}
Expand description
A single sound file.
Fields§
§filename: ArrayString<[u8; 13]>
Internal file name for this sound file.
resource_id: i32
DRS file ID for this sound file.
probability: i16
The probability out of 100% that this file will be used for any given playback.
civilization: Option<i16>
Use this file for this civilization ID only.
icon_set: Option<i16>
File icon set (TODO what does this do?)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoundItem
impl RefUnwindSafe for SoundItem
impl Send for SoundItem
impl Sync for SoundItem
impl Unpin for SoundItem
impl UnwindSafe for SoundItem
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
Mutably borrows from an owned value. Read more