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