Struct baal::Setting
[−]
[src]
pub struct Setting { pub effect_dir: PathBuf, pub music_dir: PathBuf, pub global_volume: f32, pub music_volume: f32, pub effect_volume: f32, pub distance_model: DistanceModel, pub music_transition: MusicTransition, pub short_effects: Vec<PathBuf>, pub persistent_effects: Vec<PathBuf>, pub musics: Vec<PathBuf>, }
set musics, effects, volumes and audio player.
impl rustc_decodable and rustc_encodable
Fields
effect_dir: PathBuf
the base directory of effects
music_dir: PathBuf
the base directory of musics
global_volume: f32
global volume in [0,1]
music_volume: f32
music volume in [0,1]
effect_volume: f32
effect volume in [0,1]
distance_model: DistanceModel
distance model for effect volume computation
music_transition: MusicTransition
the kind of transition between musics
short_effects: Vec<PathBuf>
the list of short effects
each effect is identified by its position in the vector
persistent_effects: Vec<PathBuf>
the list of persistent effects
each effect is identified by its position in the vector
musics: Vec<PathBuf>
the list of music
each music is identified by its position in the vector
Trait Implementations
impl Clone for Setting
[src]
fn clone(&self) -> Setting
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more