This commit is contained in:
aozhiwei 2021-09-28 05:13:27 +00:00
parent 93e32a6aef
commit 3c182c791d
2 changed files with 14 additions and 4 deletions

View File

@ -1191,6 +1191,12 @@ void Player::PushJoinRoomMsg()
notifymsg.set_map_id(room->GetMapMeta()->i->map_id());
notifymsg.set_map_width(room->GetMapMeta()->i->map_width());
notifymsg.set_map_height(room->GetMapMeta()->i->map_height());
//notifymsg.set_room_mode((int)room->GetRoomMode());
notifymsg.set_server_info(JsonDataMgr::Instance()->server_info);
//notifymsg.set_team_mode(team_mode());
notifymsg.set_player_id(GetUniId());
notifymsg.set_started(false);
notifymsg.set_room_uuid(a8::XValue(room->GetRoomUuid()).GetString());
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
}
}

View File

@ -1128,9 +1128,9 @@ message SMWatchWar
message SMJoinedNotify
{
optional int32 team_mode = 1; // 0: 1:
optional int32 player_id = 2; //id()
optional bool started = 3; //
optional string room_uuid = 4; //id
optional int32 player_id = 2; //id() SMMapInfo
optional bool started = 3; // SMMapInfo
optional string room_uuid = 4; //id SMMapInfo
optional int32 map_type = 5; //
optional bool elo_start = 6; //
@ -1138,7 +1138,7 @@ message SMJoinedNotify
optional int32 error_code = 7; // 1: 2
optional int32 room_mode = 8; //0: 1:
optional string server_info = 9; //使
optional string server_info = 9; //使 SMMapInfo
}
//
@ -1148,6 +1148,10 @@ message SMMapInfo
optional float map_width = 2; //
optional float map_height = 3; //
repeated MFMapObject objects = 6; //
optional int32 player_id = 7; //id()
optional bool started = 8; //
optional string room_uuid = 9; //id
optional string server_info = 10; //使
}
//