override public void FromBytes(BinaryReader br) { base.FromBytes(br); int count = DecodeInteger(br); for (int i = 0; i < count; i++) { GameInfo gameInfo = new GameInfo(); DecodeInteger(br); gameInfo.FromBytes(br); _Games.Add(gameInfo); } }
override public void FromBytes(BinaryReader br) { base.FromBytes(br); int userCount = DecodeInteger(br); int gameCount = DecodeInteger(br); int boardCount = DecodeInteger(br); int noticeCount = DecodeInteger(br); for (int i = 0; i < userCount; i++) { UserInfo userInfo = new UserInfo(); DecodeInteger(br); userInfo.FromBytes(br); Users.Add(userInfo); } for (int i = 0; i < gameCount; i++) { GameInfo gameInfo = new GameInfo(); DecodeInteger(br); gameInfo.FromBytes(br); Games.Add(gameInfo); } for (int i = 0; i < boardCount; i++) { BoardInfo boardInfo = new BoardInfo(); DecodeInteger(br); boardInfo.FromBytes(br); Letters.Add(boardInfo); } for (int i = 0; i < noticeCount; i++) { BoardInfo noticeInfo = new BoardInfo(); DecodeInteger(br); noticeInfo.FromBytes(br); Notices.Add(noticeInfo); } }