From e842a5b7cefba242d7704181e31e85cc9322ea53 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 30 Jul 2024 19:56:38 +0800 Subject: [PATCH] 1 --- server/gameserver/boxdrop.cc | 5 +++++ server/gameserver/boxdrop.h | 1 + 2 files changed, 6 insertions(+) diff --git a/server/gameserver/boxdrop.cc b/server/gameserver/boxdrop.cc index 930063fb..90463584 100644 --- a/server/gameserver/boxdrop.cc +++ b/server/gameserver/boxdrop.cc @@ -158,3 +158,8 @@ int BoxDrop::GetRemainNum() { return std::max(0, alloc_box_num_ - used_num_); } + +bool BoxDrop::FillAccountIdSessionId(std::string account_id, std::string session_id) +{ + return true; +} diff --git a/server/gameserver/boxdrop.h b/server/gameserver/boxdrop.h index 9dee3435..93bfc305 100644 --- a/server/gameserver/boxdrop.h +++ b/server/gameserver/boxdrop.h @@ -21,6 +21,7 @@ class BoxDrop : public std::enable_shared_from_this void Drop(int num, const glm::vec3& center); void RequestAllocBoxNum(); int GetRemainNum(); + bool FillAccountIdSessionId(std::string account_id, std::string session_id); private: Room* room_ = nullptr;