1
This commit is contained in:
parent
c36f0fc36c
commit
bd46740c94
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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; //地图对象
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user