[−][src]Struct genie_dat::SoundItem
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
impl SoundItem
[src]
pub fn read_from<R: Read>(input: &mut R, _version: FileVersion) -> Result<Self>
[src]
Read this sound item from an input stream.
pub fn write_to<W: Write>(
&self,
output: &mut W,
_version: FileVersion
) -> Result<()>
[src]
&self,
output: &mut W,
_version: FileVersion
) -> Result<()>
Write this sound item to an input stream.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SoundItem
impl Send for SoundItem
impl Sync for SoundItem
impl Unpin for SoundItem
impl UnwindSafe for SoundItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,