This commit is contained in:
aozhiwei 2023-09-19 16:18:16 +08:00
parent 9dcf5dc24e
commit ad4edd80b1
3 changed files with 4 additions and 4 deletions

View File

@ -12,6 +12,7 @@ class CustomBattle
Room* GetRoom() { return room_; } Room* GetRoom() { return room_; }
const std::string& GetRoomId() { return room_id_; } const std::string& GetRoomId() { return room_id_; }
const std::string& GetRoomUuid() { return room_uuid_; } const std::string& GetRoomUuid() { return room_uuid_; }
const std::string& GetRawData() { return raw_data_; }
int GetZoneId() { return zone_id_; } int GetZoneId() { return zone_id_; }
int GetNodeId() { return zone_id_; } int GetNodeId() { return zone_id_; }
int GetStartTime() { return start_time_; } int GetStartTime() { return start_time_; }
@ -23,5 +24,6 @@ class CustomBattle
int zone_id_ = 0; int zone_id_ = 0;
int node_id_ = 0; int node_id_ = 0;
int start_time_ = 0; int start_time_ = 0;
std::string raw_data_;
std::map<std::string, std::shared_ptr<CustomTeam>> team_hash_; std::map<std::string, std::shared_ptr<CustomTeam>> team_hash_;
}; };

View File

@ -842,8 +842,7 @@ std::shared_ptr<CustomBattle> RoomMgr::GetHisCustomRoom(const std::string& room_
} }
void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg, void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function< std::function<void(std::shared_ptr<CustomBattle>)> cb)
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb)
{ {
} }

View File

@ -119,8 +119,7 @@ class RoomMgr : public a8::Singleton<RoomMgr>
std::shared_ptr<CustomBattle> GetCustomRoom(const std::string& room_uuid); std::shared_ptr<CustomBattle> GetCustomRoom(const std::string& room_uuid);
std::shared_ptr<CustomBattle> GetHisCustomRoom(const std::string& room_uuid); std::shared_ptr<CustomBattle> GetHisCustomRoom(const std::string& room_uuid);
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg, void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
std::function< std::function<void(std::shared_ptr<CustomBattle>)> cb);
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb);
private: private:
int current_room_idx_ = 0; int current_room_idx_ = 0;