1
This commit is contained in:
parent
79e79634e0
commit
d860732a73
@ -10,6 +10,7 @@ class CustomMember
|
|||||||
bool IsJoined() { return joined_; }
|
bool IsJoined() { return joined_; }
|
||||||
int GetJoinTime() { return join_time_; }
|
int GetJoinTime() { return join_time_; }
|
||||||
const std::string& GetAccountId() { return account_id_; }
|
const std::string& GetAccountId() { return account_id_; }
|
||||||
|
const std::string& GetSessionId() { return session_id_; }
|
||||||
std::shared_ptr<BattleDataContext>& GetNetData() { return battle_context_; };
|
std::shared_ptr<BattleDataContext>& GetNetData() { return battle_context_; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -808,6 +808,11 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
|
|||||||
{
|
{
|
||||||
msg->set_force_enter_newbie_room(false);
|
msg->set_force_enter_newbie_room(false);
|
||||||
msg->set_pve_instance_id(0);
|
msg->set_pve_instance_id(0);
|
||||||
|
#ifdef DEBUG
|
||||||
|
{
|
||||||
|
std::string custom_data = "";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#else
|
#else
|
||||||
if (msg->proto_version() < cs::ProtoVersion) {
|
if (msg->proto_version() < cs::ProtoVersion) {
|
||||||
@ -905,6 +910,8 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
hum->battle_uuid = member->GetNetData()->battle_uuid;
|
hum->battle_uuid = member->GetNetData()->battle_uuid;
|
||||||
hum->is_valid_battle = member->GetNetData()->is_valid_battle;
|
hum->is_valid_battle = member->GetNetData()->is_valid_battle;
|
||||||
hum->payload = member->GetNetData()->payload;
|
hum->payload = member->GetNetData()->payload;
|
||||||
|
msg.set_session_id(member->GetSessionId());
|
||||||
|
msg.set_team_uuid(team->GetTeamUuid());
|
||||||
PlayerMgr::Instance()->
|
PlayerMgr::Instance()->
|
||||||
CreatePlayerByCMJoin(hum,
|
CreatePlayerByCMJoin(hum,
|
||||||
ip_saddr,
|
ip_saddr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user