diff options
Diffstat (limited to 'server/src/data.rs')
-rw-r--r-- | server/src/data.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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, }) } |