From 60aa08a375a4249e541fb474ac6ca452a3612915 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 30 Jul 2024 09:10:33 +0800 Subject: [PATCH] 1 --- server/gameserver/boxdrop.cc | 7 +++++++ server/gameserver/boxdrop.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/server/gameserver/boxdrop.cc b/server/gameserver/boxdrop.cc index 13625f5d..ce02dbe5 100644 --- a/server/gameserver/boxdrop.cc +++ b/server/gameserver/boxdrop.cc @@ -2,6 +2,8 @@ #include "boxdrop.h" +const int BOX_ID = 150001; + BoxDrop::BoxDrop(Room* room):room_(room) { @@ -26,3 +28,8 @@ void BoxDrop::OnObstacleDeadDrop(Obstacle* ob) { } + +void BoxDrop::Drop(int num, const glm::vec3& center) +{ + +} diff --git a/server/gameserver/boxdrop.h b/server/gameserver/boxdrop.h index 79af6dec..b0d4b105 100644 --- a/server/gameserver/boxdrop.h +++ b/server/gameserver/boxdrop.h @@ -14,6 +14,10 @@ class BoxDrop : public std::enable_shared_from_this void OnHeroDeadDrop(Hero* hero); void OnObstacleDeadDrop(Obstacle* ob); + private: + + void Drop(int num, const glm::vec3& center); + private: Room* room_ = nullptr; };