1
This commit is contained in:
parent
22e8a2e551
commit
e057e00e8d
@ -37,6 +37,9 @@ void CustomBattle::ParseResult(a8::XObject& obj)
|
|||||||
parse_ok_ = false;
|
parse_ok_ = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
is_moba_ = map_meta->is_moba() ? true : false;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
auto team_list = obj.At("team_list");
|
auto team_list = obj.At("team_list");
|
||||||
if (!team_list || !team_list->IsArray()) {
|
if (!team_list || !team_list->IsArray()) {
|
||||||
@ -218,5 +221,9 @@ void CustomBattle::TraverseObList(std::function<bool (std::shared_ptr<CustomMemb
|
|||||||
|
|
||||||
RoomMode_e CustomBattle::GetRoomMode()
|
RoomMode_e CustomBattle::GetRoomMode()
|
||||||
{
|
{
|
||||||
return kPvpMode;
|
if (IsMoba()) {
|
||||||
|
return kMobaMode;
|
||||||
|
} else {
|
||||||
|
return kPvpMode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user