This commit is contained in:
aozhiwei 2019-09-09 11:34:38 +08:00
parent c36f0fc36c
commit bd46740c94
2 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,8 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
{ {
cs::SMMapInfo notifymsg; cs::SMMapInfo notifymsg;
notifymsg.set_map_id(room->map_meta->i->map_id()); notifymsg.set_map_id(room->map_meta->i->map_id());
notifymsg.set_map_width(room->map_meta->i->map_width());
notifymsg.set_map_height(room->map_meta->i->map_height());
GGListener::Instance()->SendToClient(hdr.socket_handle, hdr.seqid, notifymsg); GGListener::Instance()->SendToClient(hdr.socket_handle, hdr.seqid, notifymsg);
} }
} }

View File

@ -750,6 +750,8 @@ message SMJoinedNotify
message SMMapInfo message SMMapInfo
{ {
optional int32 map_id = 1; //id optional int32 map_id = 1; //id
optional float map_width = 2; //
optional float map_height = 3; //
repeated MFMapObject objects = 6; // repeated MFMapObject objects = 6; //
} }