public override void Deserialize(IDataReader reader) { this.dungeonId = (uint)reader.ReadVarUhShort(); if (this.dungeonId < 0U) { throw new Exception("Forbidden value (" + (object)this.dungeonId + ") on element of DungeonPartyFinderRoomContentUpdateMessage.dungeonId."); } uint num1 = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num1; ++index) { DungeonPartyFinderPlayer partyFinderPlayer = new DungeonPartyFinderPlayer(); partyFinderPlayer.Deserialize(reader); this.addedPlayers.Add(partyFinderPlayer); } uint num2 = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num2; ++index) { double num3 = (double)reader.ReadVarUhLong(); if (num3 < 0.0 || num3 > 9.00719925474099E+15) { throw new Exception("Forbidden value (" + (object)num3 + ") on elements of removedPlayersIds."); } this.removedPlayersIds.Add(num3); } }
public override void Deserialize(IDataReader reader) { DungeonId = reader.ReadVarUhShort(); var playersCount = reader.ReadUShort(); Players = new List <DungeonPartyFinderPlayer>(); for (var playersIndex = 0; playersIndex < playersCount; playersIndex++) { var objectToAdd = new DungeonPartyFinderPlayer(); objectToAdd.Deserialize(reader); Players.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { DungeonId = reader.ReadVarShort(); var countPlayers = reader.ReadShort(); Players = new List <DungeonPartyFinderPlayer>(); for (short i = 0; i < countPlayers; i++) { DungeonPartyFinderPlayer type = new DungeonPartyFinderPlayer(); type.Deserialize(reader); Players.Add(type); } }
public override void Deserialize(IDataReader reader) { int playersCount = reader.ReadUShort(); int playersIndex; m_players = new System.Collections.Generic.List <DungeonPartyFinderPlayer>(); for (playersIndex = 0; (playersIndex < playersCount); playersIndex = (playersIndex + 1)) { DungeonPartyFinderPlayer objectToAdd = new DungeonPartyFinderPlayer(); objectToAdd.Deserialize(reader); m_players.Add(objectToAdd); } m_dungeonId = reader.ReadVarUhShort(); }
public override void Deserialize(IDataReader reader) { this.dungeonId = (uint)reader.ReadVarUhShort(); if (this.dungeonId < 0U) { throw new Exception("Forbidden value (" + (object)this.dungeonId + ") on element of DungeonPartyFinderRoomContentMessage.dungeonId."); } uint num = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num; ++index) { DungeonPartyFinderPlayer partyFinderPlayer = new DungeonPartyFinderPlayer(); partyFinderPlayer.Deserialize(reader); this.players.Add(partyFinderPlayer); } }
public override void Deserialize(IDataReader reader) { DungeonId = reader.ReadVarUhShort(); var addedPlayersCount = reader.ReadUShort(); AddedPlayers = new List <DungeonPartyFinderPlayer>(); for (var addedPlayersIndex = 0; addedPlayersIndex < addedPlayersCount; addedPlayersIndex++) { var objectToAdd = new DungeonPartyFinderPlayer(); objectToAdd.Deserialize(reader); AddedPlayers.Add(objectToAdd); } var removedPlayersIdsCount = reader.ReadUShort(); RemovedPlayersIds = new List <ulong>(); for (var removedPlayersIdsIndex = 0; removedPlayersIdsIndex < removedPlayersIdsCount; removedPlayersIdsIndex++) { RemovedPlayersIds.Add(reader.ReadVarUhLong()); } }
public override void Deserialize(ICustomDataInput reader) { DungeonId = reader.ReadVarShort(); var countAddedPlayers = reader.ReadShort(); AddedPlayers = new List <DungeonPartyFinderPlayer>(); for (short i = 0; i < countAddedPlayers; i++) { DungeonPartyFinderPlayer type = new DungeonPartyFinderPlayer(); type.Deserialize(reader); AddedPlayers.Add(type); } var countRemovedPlayersIds = reader.ReadShort(); RemovedPlayersIds = new List <long>(); for (short i = 0; i < countRemovedPlayersIds; i++) { RemovedPlayersIds.Add(reader.ReadVarLong()); } }
public override void Deserialize(IDataReader reader) { DungeonId = reader.ReadVarUhShort(); var AddedPlayersCount = reader.ReadShort(); AddedPlayers = new List <DungeonPartyFinderPlayer>(); for (var i = 0; i < AddedPlayersCount; i++) { var objectToAdd = new DungeonPartyFinderPlayer(); objectToAdd.Deserialize(reader); AddedPlayers.Add(objectToAdd); } var RemovedPlayersIdsCount = reader.ReadShort(); RemovedPlayersIds = new List <long>(); for (var i = 0; i < RemovedPlayersIdsCount; i++) { RemovedPlayersIds.Add(reader.ReadVarLong()); } }
public override void Deserialize(IDataReader reader) { int addedPlayersCount = reader.ReadUShort(); int addedPlayersIndex; m_addedPlayers = new System.Collections.Generic.List <DungeonPartyFinderPlayer>(); for (addedPlayersIndex = 0; (addedPlayersIndex < addedPlayersCount); addedPlayersIndex = (addedPlayersIndex + 1)) { DungeonPartyFinderPlayer objectToAdd = new DungeonPartyFinderPlayer(); objectToAdd.Deserialize(reader); m_addedPlayers.Add(objectToAdd); } int removedPlayersIdsCount = reader.ReadUShort(); int removedPlayersIdsIndex; m_removedPlayersIds = new System.Collections.Generic.List <ulong>(); for (removedPlayersIdsIndex = 0; (removedPlayersIdsIndex < removedPlayersIdsCount); removedPlayersIdsIndex = (removedPlayersIdsIndex + 1)) { m_removedPlayersIds.Add(reader.ReadVarUhLong()); } m_dungeonId = reader.ReadVarUhShort(); }