This commit is contained in:
aozhiwei 2024-04-19 21:12:38 +08:00
parent 8609d72de5
commit fc3f07e872
2 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ void CustomBattle::ParseResult(a8::XObject& obj)
node_id_ = obj.Get("node_id");
map_mode_ = obj.Get("mode_id");
map_id_ = obj.Get("map_id");
match_mode_ = obj.Get("match_mode");
start_time_ = obj.Get("start_time");
sign_ = obj.Get("sign").GetString();
const mt::Map* map_meta = mt::Map::GetById(map_id_);

View File

@ -25,6 +25,7 @@ class CustomBattle : public std::enable_shared_from_this<CustomBattle>
const std::shared_ptr<a8::XObject>& GetRawData() { return raw_data_; }
int GetZoneId() { return zone_id_; }
int GetNodeId() { return zone_id_; }
int GetMatchMode() { return match_mode_; }
int GetMapMode() { return map_mode_; }
int GetMapId() { return map_id_; }
RoomType_e GetRoomType();
@ -70,6 +71,7 @@ private:
int zone_id_ = 0;
int node_id_ = 0;
int map_mode_ = 0;
int match_mode_ = 0;
int map_id_ = 0;
int start_time_ = 0;
int team1_average_hero_lv_ = 0;