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/src/data/mod.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'server/src') diff --git a/server/src/data/mod.rs b/server/src/data/mod.rs index 6555fbc4..f7f184d2 100644 --- a/server/src/data/mod.rs +++ b/server/src/data/mod.rs @@ -92,18 +92,9 @@ pub struct DemandDecl { points: i64, } -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct Demand { - pub from: ItemIndex, - pub to: Option, - pub duration: f32, - pub points: i64, -} - #[derive(Debug,Clone, Default)] #[rustfmt::skip] pub struct Serverdata { - pub demands: Vec, pub spec: String, pub initial_map: HashMap)>, pub chef_spawn: Vec2, @@ -301,11 +292,11 @@ pub fn build_data( tile_interact, recipes, item_names, + demands, tile_names, }, Serverdata { spec, - demands, initial_map, chef_spawn, customer_spawn, -- cgit v1.2.3-70-g09d2