diff options
Diffstat (limited to 'server/src/entity/mod.rs')
| -rw-r--r-- | server/src/entity/mod.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs index c10e1dbd..d10bee0c 100644 --- a/server/src/entity/mod.rs +++ b/server/src/entity/mod.rs @@ -19,6 +19,7 @@ mod book; pub mod bot; mod campaign; mod conveyor; +mod ctf_minigame; mod customers; mod demand_sink; mod environment_effect; @@ -32,8 +33,8 @@ pub mod tutorial; use crate::{ entity::{ - demand_sink::DemandSink, pedestrians::Pedestrians, player_portal_pair::PlayerPortalPair, - tag_minigame::TagMinigame, + ctf_minigame::CtfMinigame, demand_sink::DemandSink, pedestrians::Pedestrians, + player_portal_pair::PlayerPortalPair, tag_minigame::TagMinigame, }, scoreboard::ScoreboardStore, }; @@ -174,6 +175,11 @@ pub fn construct_entity(decl: &EntityDecl) -> DynEntity { speed: speed.unwrap_or(0.6), }), EntityDecl::DemandSink { pos } => Box::new(DemandSink { pos }), + EntityDecl::CtfMinigame { + spawnpoints, + item_indices, + .. + } => Box::new(CtfMinigame::new(&spawnpoints, &item_indices)), EntityDecl::PlayerPortalPair { a, b, |