combat log to config
This commit is contained in:
parent
038e616500
commit
72ec24c6b6
2 changed files with 14 additions and 12 deletions
|
|
@ -12,6 +12,14 @@ pub struct Config {
|
|||
pub visuals: VisualConfig,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct LogConfig {
|
||||
pub show_mapgen: bool,
|
||||
pub log_combat: bool,
|
||||
pub log_spawning: bool,
|
||||
pub log_ticks: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct VisualConfig {
|
||||
pub with_scanlines: bool,
|
||||
|
|
@ -19,18 +27,12 @@ pub struct VisualConfig {
|
|||
pub with_darken_by_distance: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct LogConfig {
|
||||
pub show_mapgen: bool,
|
||||
pub log_spawning: bool,
|
||||
pub log_ticks: bool,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Config {
|
||||
logging: LogConfig {
|
||||
show_mapgen: false,
|
||||
log_combat: false,
|
||||
log_spawning: false,
|
||||
log_ticks: false,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue