[−][src]Struct genie_dat::Sound
A "conceptual" sound, consisting of one or a group of sound files.
Items can be picked depending on the player's civilization, and depending on the probabilities for each file.
Fields
id: SoundID
Unique ID for this sound.
play_delay: i16
TODO document.
cache_time: i32
TODO document.
items: Vec<SoundItem>
List of sound files in this sound.
Implementations
impl Sound
[src]
pub fn read_from<R: Read>(input: &mut R, version: FileVersion) -> Result<Self>
[src]
Read this sound 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 to an input stream.
pub fn len(&self) -> usize
[src]
Get the number of sound files that are part of this "conceptual" sound.
pub fn is_empty(&self) -> bool
[src]
Returns true if there are no sound files.
Trait Implementations
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]
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>,