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