From 8d83fcef94ce1558a2c0e29e8be6c966c7e10a5b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 13 Aug 2024 16:03:19 +0200 Subject: trying to reimplement customers --- server/protocol/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server/protocol/src/lib.rs') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index 695d45cf..80d94192 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -69,6 +69,14 @@ pub struct MapMetadata { difficulty: i32, } +#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +pub struct Demand { + pub input: ItemIndex, + pub output: Option, + pub duration: f32, + pub points: i64, +} + #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Default)] #[rustfmt::skip] pub struct Gamedata { @@ -79,6 +87,7 @@ pub struct Gamedata { pub tile_interact: Vec, pub maps: HashMap, pub recipes: Vec, + pub demands: Vec, } #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] -- cgit v1.2.3-70-g09d2