This commit is contained in:
aozhiwei 2024-03-18 20:09:02 +08:00
parent 22e8a2e551
commit e057e00e8d

View File

@ -37,6 +37,9 @@ void CustomBattle::ParseResult(a8::XObject& obj)
parse_ok_ = false;
return;
}
{
is_moba_ = map_meta->is_moba() ? true : false;
}
{
auto team_list = obj.At("team_list");
if (!team_list || !team_list->IsArray()) {
@ -218,5 +221,9 @@ void CustomBattle::TraverseObList(std::function<bool (std::shared_ptr<CustomMemb
RoomMode_e CustomBattle::GetRoomMode()
{
return kPvpMode;
if (IsMoba()) {
return kMobaMode;
} else {
return kPvpMode;
}
}