1
This commit is contained in:
parent
1986eda46a
commit
b49c99f768
@ -18,6 +18,7 @@
|
|||||||
#include "httpproxy.h"
|
#include "httpproxy.h"
|
||||||
#include "mapmgr.h"
|
#include "mapmgr.h"
|
||||||
#include "debugcmd.h"
|
#include "debugcmd.h"
|
||||||
|
#include "custom_battle.h"
|
||||||
|
|
||||||
#include "mt/Param.h"
|
#include "mt/Param.h"
|
||||||
#include "mt/Text.h"
|
#include "mt/Text.h"
|
||||||
@ -920,8 +921,9 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
|||||||
{
|
{
|
||||||
rsp_obj->ToJsonStr()
|
rsp_obj->ToJsonStr()
|
||||||
});
|
});
|
||||||
#if 0
|
auto custom_battle = std::make_shared<CustomBattle>();
|
||||||
if (rsp_obj->GetType() == a8::XOT_OBJECT) {
|
if (rsp_obj->GetType() == a8::XOT_OBJECT) {
|
||||||
|
#if 0
|
||||||
int match_mode = rsp_obj->Get("match_mode");
|
int match_mode = rsp_obj->Get("match_mode");
|
||||||
RoomMgr::Instance()->SetMatchMode(match_mode ? 1 : 0);
|
RoomMgr::Instance()->SetMatchMode(match_mode ? 1 : 0);
|
||||||
if (rsp_obj->HasKey("members")) {
|
if (rsp_obj->HasKey("members")) {
|
||||||
@ -936,9 +938,9 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
cb(*result);
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
cb(0, "", custom_battle);
|
||||||
} else {
|
} else {
|
||||||
f8::UdpLog::Instance()->Warning
|
f8::UdpLog::Instance()->Warning
|
||||||
("GetCustomBattleData error %s",
|
("GetCustomBattleData error %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user