summaryrefslogtreecommitdiff
path: root/server/protocol/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/protocol/src')
-rw-r--r--server/protocol/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
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<ItemIndex>,
+ 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<bool>,
pub maps: HashMap<String, MapMetadata>,
pub recipes: Vec<Recipe>,
+ pub demands: Vec<Demand>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)]