fix game runner and start migrating to actual game data; fix game data loading errors

This commit is contained in:
2021-05-19 20:09:12 +01:00
parent d93f777b66
commit 98288a4426
3 changed files with 75 additions and 69 deletions

View File

@@ -3,15 +3,15 @@ use serde_derive::{Serialize, Deserialize};
#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct Config {
/// used in the window title bar
name: Option<String>,
width: u8,
height: u8,
pub name: Option<String>,
pub width: u8,
pub height: u8,
/// animation rate in milliseconds
tick: u64,
pub tick: u64,
/// if this is not specified, the game will pick the first room it finds
starting_room: Option<String>,
pub starting_room: Option<String>,
/// major / minor
version: (u8, u8),
pub version: (u8, u8),
}
#[cfg(test)]