pub struct MusicCue {
pub file: String,
pub volume: u8,
pub looped: bool,
pub length_ms: u32,
pub credit: CreditRef,
}Expand description
A music track.
Fields§
§file: StringThe track, relative to the music/ folder.
volume: u8Volume in percent (0–100).
looped: boolWhether it loops (the default) or plays once.
length_ms: u32How long the track plays, in milliseconds (never 0): where the music clock wraps a looped track (game ADR-0037). The game can’t measure it (the player library gives no length), so it is data, checked against the file by a test.
credit: CreditRefWho made it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MusicCue
impl<'de> Deserialize<'de> for MusicCue
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MusicCue
impl StructuralPartialEq for MusicCue
Auto Trait Implementations§
impl Freeze for MusicCue
impl RefUnwindSafe for MusicCue
impl Send for MusicCue
impl Sync for MusicCue
impl Unpin for MusicCue
impl UnsafeUnpin for MusicCue
impl UnwindSafe for MusicCue
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