From 935dc832d02ba49ad50cbbaee333ab2dacd3226d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 20 Jun 2024 01:53:29 +0200 Subject: eating actually takes some time --- server/src/data.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/data.rs') diff --git a/server/src/data.rs b/server/src/data.rs index 51347c7c..e59b8b35 100644 --- a/server/src/data.rs +++ b/server/src/data.rs @@ -38,12 +38,14 @@ pub struct InitialMap { pub struct DemandDecl { from: String, to: String, + duration: f32, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Demand { pub from: ItemIndex, pub to: ItemIndex, + pub duration: f32, } #[derive(Debug, Clone, Serialize, Deserialize, Default)] @@ -109,6 +111,7 @@ pub fn build_gamedata( demands.push(Demand { from: ItemIndex(register(&item_names, d.from)), to: ItemIndex(register(&item_names, d.to)), + duration: d.duration, }) } -- cgit v1.2.3-70-g09d2