public void Deserialize(IDataReader reader) { infos = ProtocolTypeManager.GetInstance <Types.AllianceFactSheetInformations>(reader.ReadShort()); infos.Deserialize(reader); var limit = reader.ReadUShort(); guilds = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds[i] = new Types.GuildInAllianceInformations(); guilds[i].Deserialize(reader); } limit = reader.ReadUShort(); controlledSubareaIds = new uint[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds[i] = reader.ReadVarUhShort(); } leaderCharacterId = reader.ReadVarUhLong(); if (leaderCharacterId < 0 || leaderCharacterId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on leaderCharacterId = " + leaderCharacterId + ", it doesn't respect the following condition : leaderCharacterId < 0 || leaderCharacterId > 9.007199254740992E15"); } leaderCharacterName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { infos = Types.ProtocolTypeManager.GetInstance <Types.AllianceFactSheetInformations>(reader.ReadShort()); infos.Deserialize(reader); var limit = reader.ReadUShort(); guilds = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds[i] = new Types.GuildInAllianceInformations(); guilds[i].Deserialize(reader); } limit = reader.ReadUShort(); controlledSubareaIds = new short[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds[i] = reader.ReadVarShort(); } leaderCharacterId = reader.ReadVarInt(); if (leaderCharacterId < 0) { throw new Exception("Forbidden value on leaderCharacterId = " + leaderCharacterId + ", it doesn't respect the following condition : leaderCharacterId < 0"); } leaderCharacterName = reader.ReadUTF(); }
public override void Deserialize(IDataReader reader) { infos = Types.ProtocolTypeManager.GetInstance <AllianceFactSheetInformations>(reader.ReadShort()); infos.Deserialize(reader); var limit = reader.ReadShort(); var guilds_ = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds_[i] = new Types.GuildInAllianceInformations(); guilds_[i].Deserialize(reader); } guilds = guilds_; limit = reader.ReadShort(); var controlledSubareaIds_ = new short[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds_[i] = reader.ReadVarShort(); if (controlledSubareaIds_[i] < 0) { throw new Exception("Forbidden value on controlledSubareaIds_[i] = " + controlledSubareaIds_[i] + ", it doesn't respect the following condition : controlledSubareaIds_[i] < 0"); } } controlledSubareaIds = controlledSubareaIds_; leaderCharacterId = reader.ReadVarLong(); if (leaderCharacterId < 0 || leaderCharacterId > 9007199254740990) { throw new Exception("Forbidden value on leaderCharacterId = " + leaderCharacterId + ", it doesn't respect the following condition : leaderCharacterId < 0 || leaderCharacterId > 9007199254740990"); } leaderCharacterName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { infos = Types.ProtocolTypeManager.GetInstance <Types.AllianceFactSheetInformations>(reader.ReadShort()); infos.Deserialize(reader); var limit = reader.ReadUShort(); guilds = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds[i] = new Types.GuildInAllianceInformations(); guilds[i].Deserialize(reader); } limit = reader.ReadUShort(); controlledSubareaIds = new short[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds[i] = reader.ReadShort(); } }
public override void Deserialize(IDataReader reader) { infos = ProtocolTypeManager.GetInstance <Types.AllianceFactSheetInformations>(reader.ReadUShort()); infos.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); guilds = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds[i] = new Types.GuildInAllianceInformations(); guilds[i].Deserialize(reader); } limit = (ushort)reader.ReadUShort(); controlledSubareaIds = new uint[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds[i] = reader.ReadVarUhShort(); } leaderCharacterId = reader.ReadVarUhLong(); leaderCharacterName = reader.ReadUTF(); }
public override void Deserialize(BigEndianReader reader) { infos = Types.ProtocolTypeManager.GetInstance<Types.AllianceFactSheetInformations>(reader.ReadShort()); infos.Deserialize(reader); var limit = reader.ReadUShort(); guilds = new Types.GuildInAllianceInformations[limit]; for (int i = 0; i < limit; i++) { guilds[i] = new Types.GuildInAllianceInformations(); guilds[i].Deserialize(reader); } limit = reader.ReadUShort(); controlledSubareaIds = new short[limit]; for (int i = 0; i < limit; i++) { controlledSubareaIds[i] = reader.ReadVarShort(); } leaderCharacterId = reader.ReadVarInt(); if (leaderCharacterId < 0) throw new Exception("Forbidden value on leaderCharacterId = " + leaderCharacterId + ", it doesn't respect the following condition : leaderCharacterId < 0"); leaderCharacterName = reader.ReadUTF(); }