This commit is contained in:
aozhiwei 2024-01-02 17:47:34 +08:00
parent 7906d5853c
commit 68732083e0
2 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,7 @@ void MobaBattle::ParseResult(a8::XObject& obj)
member->team_ = team.get();
member->account_id_ = member_obj->Get("account_id").GetString();
member->session_id_ = member_obj->Get("session_id").GetString();
member->name_ = member_obj->Get("name").GetString();
member->battle_context_ = std::make_shared<BattleDataContext>();
member->battle_context_->ParseResult(*member_obj);
if (!member->battle_context_->parse_ok) {

View File

@ -2411,6 +2411,7 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptr<c
Player* hum = p->GetRoom()->NewPlayer();
//hum->ip_saddr = ip_saddr;
//hum->socket_handle = socket_handle;
hum->name = m->GetName();
hum->room = p->GetRoom();
hum->proto_version = join_msg.proto_version();
#if 0