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

the base directory of effects

the base directory of musics

global volume in [0,1]

music volume in [0,1]

effect volume in [0,1]

distance model for effect volume computation

the kind of transition between musics

the list of short effects

each effect is identified by its position in the vector

the list of persistent effects

each effect is identified by its position in the vector

the list of music

each music is identified by its position in the vector

Trait Implementations

impl Clone for Setting
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Setting
[src]

Formats the value using the given formatter.

impl PartialEq for Setting
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.