diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-14 21:01:36 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-14 21:01:36 +0100 |
| commit | 7351f210dbe87805f0db6a5466640f1115da275f (patch) | |
| tree | 74904b506bf0f2f2ebc727d9acddac3ad0edff2e /server/data | |
| parent | 72fb49bd96cf5a4c878a5b8a53dcad7500d3b54e (diff) | |
| download | hurrycurry-7351f210dbe87805f0db6a5466640f1115da275f.tar hurrycurry-7351f210dbe87805f0db6a5466640f1115da275f.tar.bz2 hurrycurry-7351f210dbe87805f0db6a5466640f1115da275f.tar.zst | |
demand sink as tile flag
Diffstat (limited to 'server/data')
| -rw-r--r-- | server/data/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/data/src/lib.rs b/server/data/src/lib.rs index 09a1bd43..a677bffd 100644 --- a/server/data/src/lib.rs +++ b/server/data/src/lib.rs @@ -100,6 +100,8 @@ struct TileArgs { item: Option<String>, #[clap(long)] conveyor: Option<String>, + #[clap(long)] + demand_sink: bool, } #[derive(Debug, Clone, Serialize, Deserialize)] @@ -184,6 +186,9 @@ fn build_data( entities.push(EntityDecl::Book { pos }); tile_interactable_empty.insert(tile); // if it doesnt have a dedicated tile all of its kind will be interactable } + if tile_spec.demand_sink { + entities.push(EntityDecl::DemandSink { pos }); + } if let Some(off) = &tile_spec.conveyor { let (x, y) = off .split_once(",") |