From ac692d05a32c77de4520a760e45f6ed61202cb67 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 6 Apr 2020 14:22:35 +0100 Subject: [PATCH] variables --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ee6aeec..e455798 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,12 +94,19 @@ struct Room { endings: HashMap, } -#[derive(PartialEq)] +#[derive(Debug, Eq, PartialEq)] +struct Variable { + id: String, + initial_value: i64, +} + +#[derive(Debug, PartialEq)] struct Game { name: String, version: f64, room_format: u8, palettes: Vec, + variables: Vec, } fn test_image_chequers_1() -> Image {