aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/mod.rs
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-12-16 04:45:47 +0100
committernokoe <nokoe@mailbox.org>2025-12-16 04:45:47 +0100
commit3d49838e934848bd66411ca55f5b58eae99cb728 (patch)
tree80b95f93341ea8a97c23d95b07bec822aea767a5 /server/src/entity/mod.rs
parente99a71f4f5918e9e43c5f8ff01ce348021f925ea (diff)
downloadhurrycurry-3d49838e934848bd66411ca55f5b58eae99cb728.tar
hurrycurry-3d49838e934848bd66411ca55f5b58eae99cb728.tar.bz2
hurrycurry-3d49838e934848bd66411ca55f5b58eae99cb728.tar.zst
capture the curry
Diffstat (limited to 'server/src/entity/mod.rs')
-rw-r--r--server/src/entity/mod.rs10
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,