diff options
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 }), |