diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-25 15:36:23 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-25 17:48:54 +0100 |
commit | 92a13bac9289fd00a6fa2c70129490fa22ef0661 (patch) | |
tree | ceba13a471891b03be10fe20b768db37f4cb3c71 /planetwars-rules/src | |
parent | d0a0fcfdeda2c315a13ddd96b4fca958da0d9858 (diff) | |
download | planetwars.dev-92a13bac9289fd00a6fa2c70129490fa22ef0661.tar.xz planetwars.dev-92a13bac9289fd00a6fa2c70129490fa22ef0661.zip |
add init-project command
Diffstat (limited to 'planetwars-rules/src')
-rw-r--r-- | planetwars-rules/src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/planetwars-rules/src/config.rs b/planetwars-rules/src/config.rs index 32c23f5..57c77eb 100644 --- a/planetwars-rules/src/config.rs +++ b/planetwars-rules/src/config.rs @@ -1,6 +1,7 @@ use std::fs::File; use std::io; use std::io::Read; +use std::path::PathBuf; use serde_json; @@ -9,7 +10,7 @@ use super::rules::*; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Config { - pub map_file: String, + pub map_file: PathBuf, pub max_turns: u64, } |