variables

This commit is contained in:
Max Bradbury 2020-04-06 14:22:35 +01:00
parent 19f01e05d8
commit ac692d05a3
1 changed files with 8 additions and 1 deletions

View File

@ -94,12 +94,19 @@ struct Room {
endings: HashMap<Position, Ending>, endings: HashMap<Position, Ending>,
} }
#[derive(PartialEq)] #[derive(Debug, Eq, PartialEq)]
struct Variable {
id: String,
initial_value: i64,
}
#[derive(Debug, PartialEq)]
struct Game { struct Game {
name: String, name: String,
version: f64, version: f64,
room_format: u8, room_format: u8,
palettes: Vec<Palette>, palettes: Vec<Palette>,
variables: Vec<Variable>,
} }
fn test_image_chequers_1() -> Image { fn test_image_chequers_1() -> Image {