示例#1
0
 public static void WriteRoom(NetOutgoingMessage outmsg, GameRoom room)
 {
     outmsg.Write(room.Name);
     WriteMap(outmsg, room.Map);
     WritePlayerList(outmsg, room.Players);
 }
示例#2
0
 public static void ReadRoom(NetIncomingMessage inc, GameRoom room)
 {
     room.Name = inc.ReadString();
     room.Map  = ReadMap(inc);
     ReadPlayerList(inc, room.Players);
 }