pub struct AudioConfig {
pub move_cue: &'static str,
pub select_cue: &'static str,
pub cancel_cue: &'static str,
pub denied_cue: &'static str,
pub cursor_cue: &'static str,
}Expand description
Which of the game’s sound cues the engine’s widgets and screens play
(MenuSound, and the cursor’s tick): the game’s
(GameData::audio_config). The default names them after what they
are (ui_move, ui_select, ui_cancel, ui_cursor), with Denied
playing ui_cancel.
Fields§
§move_cue: &'static strMenuSound::Move’s cue.
select_cue: &'static strMenuSound::Select’s cue.
cancel_cue: &'static strMenuSound::Cancel’s cue.
denied_cue: &'static strMenuSound::Denied’s cue.
cursor_cue: &'static strThe cue a cursor plays once per step it moves.
Implementations§
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§fn clone(&self) -> AudioConfig
fn clone(&self) -> AudioConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioConfig
Source§impl Debug for AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
impl Eq for AudioConfig
Source§impl PartialEq for AudioConfig
impl PartialEq for AudioConfig
impl StructuralPartialEq for AudioConfig
Auto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
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