combat log to config

This commit is contained in:
Llywelwyn 2023-08-27 23:53:54 +01:00
parent 038e616500
commit 72ec24c6b6
2 changed files with 14 additions and 12 deletions

View file

@ -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,
},