1
This commit is contained in:
parent
9dcf5dc24e
commit
ad4edd80b1
@ -12,6 +12,7 @@ class CustomBattle
|
||||
Room* GetRoom() { return room_; }
|
||||
const std::string& GetRoomId() { return room_id_; }
|
||||
const std::string& GetRoomUuid() { return room_uuid_; }
|
||||
const std::string& GetRawData() { return raw_data_; }
|
||||
int GetZoneId() { return zone_id_; }
|
||||
int GetNodeId() { return zone_id_; }
|
||||
int GetStartTime() { return start_time_; }
|
||||
@ -23,5 +24,6 @@ class CustomBattle
|
||||
int zone_id_ = 0;
|
||||
int node_id_ = 0;
|
||||
int start_time_ = 0;
|
||||
std::string raw_data_;
|
||||
std::map<std::string, std::shared_ptr<CustomTeam>> team_hash_;
|
||||
};
|
||||
|
@ -842,8 +842,7 @@ std::shared_ptr<CustomBattle> RoomMgr::GetHisCustomRoom(const std::string& room_
|
||||
}
|
||||
|
||||
void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||
std::function<
|
||||
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb)
|
||||
std::function<void(std::shared_ptr<CustomBattle>)> cb)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -119,8 +119,7 @@ class RoomMgr : public a8::Singleton<RoomMgr>
|
||||
std::shared_ptr<CustomBattle> GetCustomRoom(const std::string& room_uuid);
|
||||
std::shared_ptr<CustomBattle> GetHisCustomRoom(const std::string& room_uuid);
|
||||
void SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||
std::function<
|
||||
void(std::vector<std::shared_ptr<BattleDataContext>>&)> cb);
|
||||
std::function<void(std::shared_ptr<CustomBattle>)> cb);
|
||||
|
||||
private:
|
||||
int current_room_idx_ = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user