diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-15 16:30:20 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-15 16:30:20 +0200 |
| commit | a47a61ec1ffb0d597783870a053cbe0760544301 (patch) | |
| tree | d2516f94445eb1f27614bf5618cbc5e4298eee7b /server/src/entity/mod.rs | |
| parent | f9be1a87bbdfdfbeb316cc335b7a2dbbf42b06f2 (diff) | |
| download | hurrycurry-a47a61ec1ffb0d597783870a053cbe0760544301.tar hurrycurry-a47a61ec1ffb0d597783870a053cbe0760544301.tar.bz2 hurrycurry-a47a61ec1ffb0d597783870a053cbe0760544301.tar.zst | |
Add tag minigame (hidden map + entity)
Diffstat (limited to 'server/src/entity/mod.rs')
| -rw-r--r-- | server/src/entity/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs index 6418d0c7..01cb9462 100644 --- a/server/src/entity/mod.rs +++ b/server/src/entity/mod.rs @@ -24,10 +24,14 @@ pub mod environment_effect; pub mod item_portal; pub mod pedestrians; pub mod player_portal; +pub mod tag_minigame; pub mod tram; pub mod tutorial; -use crate::{entity::pedestrians::Pedestrians, scoreboard::ScoreboardStore}; +use crate::{ + entity::{pedestrians::Pedestrians, tag_minigame::TagMinigame}, + scoreboard::ScoreboardStore, +}; use anyhow::Result; use book::Book; use campaign::{Gate, Map}; @@ -82,6 +86,7 @@ pub trait Entity: Any { pub fn construct_entity(decl: &EntityDecl) -> DynEntity { match decl.to_owned() { + EntityDecl::TagMinigame { tag_item } => Box::new(TagMinigame::new(tag_item)), EntityDecl::Book { pos } => Box::new(Book(pos)), EntityDecl::ItemPortal { from, to } => Box::new(ItemPortal { from, to }), EntityDecl::PlayerPortal { from, to } => Box::new(PlayerPortal { from, to }), |