public virtual void Deserialize(IDataReader reader) { bindingPointCategory = reader.ReadSbyte(); bindingPointIndex = reader.ReadSbyte(); subEntityLook = new Types.EntityLook(); subEntityLook.Deserialize(reader); }
public virtual void Deserialize(ICustomDataInput reader) { spouseAccountId = reader.ReadInt(); if (spouseAccountId < 0) { throw new Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0"); } spouseId = reader.ReadVarUhInt(); if (spouseId < 0) { throw new Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0"); } spouseName = reader.ReadUTF(); spouseLevel = reader.ReadByte(); if ((spouseLevel < 1) || (spouseLevel > 200)) { throw new Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : (spouseLevel < 1) || (spouseLevel > 200)"); } breed = reader.ReadSByte(); sex = reader.ReadSByte(); spouseEntityLook = new Types.EntityLook(); spouseEntityLook.Deserialize(reader); guildInfo = new Types.BasicGuildInformations(); guildInfo.Deserialize(reader); alignmentSide = reader.ReadSByte(); }
public virtual void Deserialize(IReader reader) { indexId = reader.ReadSByte(); companionGenericId = reader.ReadSByte(); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { spouseAccountId = reader.ReadInt(); if (spouseAccountId < 0) { throw new System.Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0"); } spouseId = reader.ReadVarUhLong(); if (spouseId < 0 || spouseId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0 || spouseId > 9.007199254740992E15"); } spouseName = reader.ReadUTF(); spouseLevel = reader.ReadByte(); if (spouseLevel < 1 || spouseLevel > 200) { throw new System.Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : spouseLevel < 1 || spouseLevel > 200"); } breed = reader.ReadSByte(); sex = reader.ReadSByte(); spouseEntityLook = new Types.EntityLook(); spouseEntityLook.Deserialize(reader); guildInfo = new Types.BasicGuildInformations(); guildInfo.Deserialize(reader); alignmentSide = reader.ReadSByte(); }
public virtual void Deserialize(IDataReader reader) { guestId = reader.ReadVarLong(); if (guestId < 0 || guestId > 9007199254740990) { throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0 || guestId > 9007199254740990"); } hostId = reader.ReadVarLong(); if (hostId < 0 || hostId > 9007199254740990) { throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0 || hostId > 9007199254740990"); } name = reader.ReadUTF(); guestLook = new Types.EntityLook(); guestLook.Deserialize(reader); breed = reader.ReadSByte(); sex = reader.ReadBoolean(); status = Types.ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadShort()); status.Deserialize(reader); var limit = reader.ReadUShort(); var companions_ = new Types.PartyCompanionBaseInformations[limit]; for (int i = 0; i < limit; i++) { companions_[i] = new Types.PartyCompanionBaseInformations(); companions_[i].Deserialize(reader); } companions = companions_; }
public virtual void Deserialize(ICustomDataInput reader) { guestId = reader.ReadInt(); if (guestId < 0) { throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0"); } hostId = reader.ReadInt(); if (hostId < 0) { throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0"); } name = reader.ReadUTF(); guestLook = new Types.EntityLook(); guestLook.Deserialize(reader); breed = reader.ReadSByte(); sex = reader.ReadBoolean(); status = Types.ProtocolTypeManager.GetInstance <Types.PlayerStatus>(reader.ReadShort()); status.Deserialize(reader); var limit = reader.ReadShort(); companions = new Types.PartyCompanionBaseInformations[limit]; for (int i = 0; i < limit; i++) { (companions as Types.PartyCompanionBaseInformations[])[i] = new Types.PartyCompanionBaseInformations(); (companions as Types.PartyCompanionBaseInformations[])[i].Deserialize(reader); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); breed = reader.ReadSbyte(); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); targetId = reader.ReadInt(); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { indexId = reader.ReadSbyte(); entityModelId = reader.ReadSbyte(); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); targetId = reader.ReadInt(); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { contextualId = reader.ReadInt(); look = new Types.EntityLook(); look.Deserialize(reader); disposition = Types.ProtocolTypeManager.GetInstance <Types.EntityDispositionInformations>(reader.ReadShort()); disposition.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { requestId = reader.ReadVarUhInt(); playerName = reader.ReadUTF(); playerId = reader.ReadVarUhLong(); look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(BigEndianReader reader) { contextualId = reader.ReadInt(); look = new Types.EntityLook(); look.Deserialize(reader); disposition = Types.ProtocolTypeManager.GetInstance<Types.EntityDispositionInformations>(reader.ReadShort()); disposition.Deserialize(reader); }
public virtual void Deserialize(ICustomDataInput reader) { look = new Types.EntityLook(); look.Deserialize(reader); index = reader.ReadSByte(); if (index < 0) throw new Exception("Forbidden value on index = " + index + ", it doesn't respect the following condition : index < 0"); }
public void Deserialize(IDataReader reader) { id = reader.ReadDouble(); if (id < -9.007199254740992E15 || id > 9.007199254740992E15) { throw new System.Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < -9.007199254740992E15 || id > 9.007199254740992E15"); } look = new Types.EntityLook(); look.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { id = reader.ReadDouble(); if (id < -9007199254740990 || id > 9007199254740990) { throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < -9007199254740990 || id > 9007199254740990"); } look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(ICustomDataInput reader) { look = new Types.EntityLook(); look.Deserialize(reader); index = reader.ReadSByte(); if (index < 0) { throw new Exception("Forbidden value on index = " + index + ", it doesn't respect the following condition : index < 0"); } }
public virtual void Deserialize(IDataReader reader) { uniqueId = reader.ReadInt(); firtNameId = reader.ReadShort(); if (firtNameId < 0) { throw new Exception("Forbidden value on firtNameId = " + firtNameId + ", it doesn't respect the following condition : firtNameId < 0"); } lastNameId = reader.ReadShort(); if (lastNameId < 0) { throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); } additonalInformation = new Types.AdditionalTaxCollectorInformations(); additonalInformation.Deserialize(reader); worldX = reader.ReadShort(); if (worldX < -255 || worldX > 255) { throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255"); } worldY = reader.ReadShort(); if (worldY < -255 || worldY > 255) { throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255"); } subAreaId = reader.ReadShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } state = reader.ReadSByte(); look = new Types.EntityLook(); look.Deserialize(reader); kamas = reader.ReadInt(); if (kamas < 0) { throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0"); } experience = reader.ReadDouble(); if (experience < 0) { throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0"); } pods = reader.ReadInt(); if (pods < 0) { throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0"); } itemsValue = reader.ReadInt(); if (itemsValue < 0) { throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0"); } }
public virtual void Deserialize(IDataReader reader) { bindingPointCategory = reader.ReadSByte(); if (bindingPointCategory < 0) throw new Exception("Forbidden value on bindingPointCategory = " + bindingPointCategory + ", it doesn't respect the following condition : bindingPointCategory < 0"); bindingPointIndex = reader.ReadSByte(); if (bindingPointIndex < 0) throw new Exception("Forbidden value on bindingPointIndex = " + bindingPointIndex + ", it doesn't respect the following condition : bindingPointIndex < 0"); subEntityLook = new Types.EntityLook(); subEntityLook.Deserialize(reader); }
public virtual void Deserialize(BigEndianReader reader) { indexId = reader.ReadSByte(); if (indexId < 0) throw new Exception("Forbidden value on indexId = " + indexId + ", it doesn't respect the following condition : indexId < 0"); companionGenericId = reader.ReadSByte(); if (companionGenericId < 0) throw new Exception("Forbidden value on companionGenericId = " + companionGenericId + ", it doesn't respect the following condition : companionGenericId < 0"); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { creatureGenericId = reader.ReadInt(); grade = reader.ReadSByte(); if (grade < 0) { throw new Exception("Forbidden value on grade = " + grade + ", it doesn't respect the following condition : grade < 0"); } look = new Types.EntityLook(); look.Deserialize(reader); }
public void Deserialize(IDataReader reader) { base.Deserialize(reader); targetId = reader.ReadDouble(); if (targetId < -9.007199254740992E15 || targetId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < -9.007199254740992E15 || targetId > 9.007199254740992E15"); } entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { bindingPointCategory = reader.ReadSByte(); bindingPointIndex = reader.ReadSByte(); if (bindingPointIndex < 0) { throw new Exception("Forbidden value on bindingPointIndex = " + bindingPointIndex + ", it doesn't respect the following condition : bindingPointIndex < 0"); } subEntityLook = new Types.EntityLook(); subEntityLook.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); targetId = reader.ReadDouble(); if (targetId < -9007199254740990 || targetId > 9007199254740990) { throw new Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < -9007199254740990 || targetId > 9007199254740990"); } entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public override void Deserialize(BigEndianReader reader) { requestId = reader.ReadVarInt(); if (requestId < 0) throw new Exception("Forbidden value on requestId = " + requestId + ", it doesn't respect the following condition : requestId < 0"); playerName = reader.ReadUTF(); playerId = reader.ReadVarInt(); if (playerId < 0) throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { contextualId = reader.ReadDouble(); if (contextualId < -9.007199254740992E15 || contextualId > 9.007199254740992E15) { throw new System.Exception("Forbidden value on contextualId = " + contextualId + ", it doesn't respect the following condition : contextualId < -9.007199254740992E15 || contextualId > 9.007199254740992E15"); } look = new Types.EntityLook(); look.Deserialize(reader); disposition = ProtocolTypeManager.GetInstance <Types.EntityDispositionInformations>(reader.ReadShort()); disposition.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { guestId = reader.ReadInt(); if (guestId < 0) throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0"); hostId = reader.ReadInt(); if (hostId < 0) throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0"); name = reader.ReadUTF(); guestLook = new Types.EntityLook(); guestLook.Deserialize(reader); breed = reader.ReadSByte(); sex = reader.ReadBoolean(); }
public virtual void Deserialize(IDataReader reader) { spouseAccountId = reader.ReadInt(); spouseId = reader.ReadVarUhLong(); spouseName = reader.ReadUTF(); spouseLevel = reader.ReadVarUhShort(); breed = reader.ReadSbyte(); sex = reader.ReadSbyte(); spouseEntityLook = new Types.EntityLook(); spouseEntityLook.Deserialize(reader); guildInfo = new Types.GuildInformations(); guildInfo.Deserialize(reader); alignmentSide = reader.ReadSbyte(); }
public override void Deserialize(BigEndianReader reader) { playerInfo = new Types.JobCrafterDirectoryEntryPlayerInfo(); playerInfo.Deserialize(reader); var limit = reader.ReadUShort(); jobInfoList = new Types.JobCrafterDirectoryEntryJobInfo[limit]; for (int i = 0; i < limit; i++) { jobInfoList[i] = new Types.JobCrafterDirectoryEntryJobInfo(); jobInfoList[i].Deserialize(reader); } playerLook = new Types.EntityLook(); playerLook.Deserialize(reader); }
public void Deserialize(IDataReader reader) { playerInfo = new Types.JobCrafterDirectoryEntryPlayerInfo(); playerInfo.Deserialize(reader); var limit = reader.ReadUShort(); jobInfoList = new Types.JobCrafterDirectoryEntryJobInfo[limit]; for (int i = 0; i < limit; i++) { jobInfoList[i] = new Types.JobCrafterDirectoryEntryJobInfo(); jobInfoList[i].Deserialize(reader); } playerLook = new Types.EntityLook(); playerLook.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { playerInfo = new Types.JobCrafterDirectoryEntryPlayerInfo(); playerInfo.Deserialize(reader); var limit = reader.ReadShort(); jobInfoList = new Types.JobCrafterDirectoryEntryJobInfo[limit]; for (int i = 0; i < limit; i++) { (jobInfoList as Types.JobCrafterDirectoryEntryJobInfo[])[i] = new Types.JobCrafterDirectoryEntryJobInfo(); (jobInfoList as Types.JobCrafterDirectoryEntryJobInfo[])[i].Deserialize(reader); } playerLook = new Types.EntityLook(); playerLook.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); items = new Types.ItemForPreset[limit]; for (int i = 0; i < limit; i++) { items[i] = new Types.ItemForPreset(); items[i].Deserialize(reader); } mountEquipped = reader.ReadBoolean(); look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(BigEndianReader reader) { indexId = reader.ReadSByte(); if (indexId < 0) { throw new Exception("Forbidden value on indexId = " + indexId + ", it doesn't respect the following condition : indexId < 0"); } companionGenericId = reader.ReadSByte(); if (companionGenericId < 0) { throw new Exception("Forbidden value on companionGenericId = " + companionGenericId + ", it doesn't respect the following condition : companionGenericId < 0"); } entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { requestId = reader.ReadVarInt(); if (requestId < 0) { throw new Exception("Forbidden value on requestId = " + requestId + ", it doesn't respect the following condition : requestId < 0"); } playerName = reader.ReadUTF(); playerId = reader.ReadVarLong(); if (playerId < 0 || playerId > 9007199254740990) { throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990"); } look = new Types.EntityLook(); look.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { requestId = reader.ReadVarUhInt(); if (requestId < 0) { throw new Exception("Forbidden value on requestId = " + requestId + ", it doesn't respect the following condition : requestId < 0"); } playerName = reader.ReadUTF(); playerId = reader.ReadVarUhInt(); if (playerId < 0) { throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); } look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { guestId = reader.ReadInt(); if (guestId < 0) { throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0"); } hostId = reader.ReadInt(); if (hostId < 0) { throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0"); } name = reader.ReadUTF(); guestLook = new Types.EntityLook(); guestLook.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { uniqueId = reader.ReadInt(); firtNameId = reader.ReadVarShort(); if (firtNameId < 0) { throw new Exception("Forbidden value on firtNameId = " + firtNameId + ", it doesn't respect the following condition : firtNameId < 0"); } lastNameId = reader.ReadVarShort(); if (lastNameId < 0) { throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); } additionalInfos = new Types.AdditionalTaxCollectorInformations(); additionalInfos.Deserialize(reader); worldX = reader.ReadShort(); if (worldX < -255 || worldX > 255) { throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255"); } worldY = reader.ReadShort(); if (worldY < -255 || worldY > 255) { throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255"); } subAreaId = reader.ReadVarShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } state = reader.ReadSByte(); if (state < 0) { throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0"); } look = new Types.EntityLook(); look.Deserialize(reader); var limit = reader.ReadUShort(); var complements_ = new Types.TaxCollectorComplementaryInformations[limit]; for (int i = 0; i < limit; i++) { complements_[i] = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorComplementaryInformations>(reader.ReadShort()); complements_[i].Deserialize(reader); } complements = complements_; }
public virtual void Deserialize(IDataReader reader) { spawnInformation = ProtocolTypeManager.GetInstance <Types.SpawnInformation>(reader.ReadUShort()); spawnInformation.Deserialize(reader); wave = reader.ReadSbyte(); look = new Types.EntityLook(); look.Deserialize(reader); stats = ProtocolTypeManager.GetInstance <Types.GameFightMinimalStats>(reader.ReadUShort()); stats.Deserialize(reader); var limit = (ushort)reader.ReadUShort(); summons = new Types.GameContextBasicSpawnInformation[limit]; for (int i = 0; i < limit; i++) { summons[i] = ProtocolTypeManager.GetInstance <Types.GameContextBasicSpawnInformation>(reader.ReadUShort()); summons[i].Deserialize(reader); } }
public virtual void Deserialize(BigEndianReader reader) { spouseAccountId = reader.ReadInt(); if (spouseAccountId < 0) throw new Exception("Forbidden value on spouseAccountId = " + spouseAccountId + ", it doesn't respect the following condition : spouseAccountId < 0"); spouseId = reader.ReadVarInt(); if (spouseId < 0) throw new Exception("Forbidden value on spouseId = " + spouseId + ", it doesn't respect the following condition : spouseId < 0"); spouseName = reader.ReadUTF(); spouseLevel = reader.ReadByte(); if (spouseLevel < 1 || spouseLevel > 200) throw new Exception("Forbidden value on spouseLevel = " + spouseLevel + ", it doesn't respect the following condition : spouseLevel < 1 || spouseLevel > 200"); breed = reader.ReadSByte(); sex = reader.ReadSByte(); spouseEntityLook = new Types.EntityLook(); spouseEntityLook.Deserialize(reader); guildInfo = new Types.BasicGuildInformations(); guildInfo.Deserialize(reader); alignmentSide = reader.ReadSByte(); }
public virtual void Deserialize(ICustomDataInput reader) { guestId = reader.ReadInt(); if (guestId < 0) throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0"); hostId = reader.ReadInt(); if (hostId < 0) throw new Exception("Forbidden value on hostId = " + hostId + ", it doesn't respect the following condition : hostId < 0"); name = reader.ReadUTF(); guestLook = new Types.EntityLook(); guestLook.Deserialize(reader); breed = reader.ReadSByte(); sex = reader.ReadBoolean(); status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort()); status.Deserialize(reader); var limit = reader.ReadUShort(); companions = new Types.PartyCompanionBaseInformations[limit]; for (int i = 0; i < limit; i++) { (companions as Types.PartyCompanionBaseInformations[])[i] = new Types.PartyCompanionBaseInformations(); (companions as Types.PartyCompanionBaseInformations[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { look = new Types.EntityLook(); look.Deserialize(reader); }
public override void Deserialize(BigEndianReader reader) { id = reader.ReadInt(); look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(BigEndianReader reader) { uniqueId = reader.ReadInt(); firtNameId = reader.ReadVarShort(); if (firtNameId < 0) throw new Exception("Forbidden value on firtNameId = " + firtNameId + ", it doesn't respect the following condition : firtNameId < 0"); lastNameId = reader.ReadVarShort(); if (lastNameId < 0) throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); additionalInfos = new Types.AdditionalTaxCollectorInformations(); additionalInfos.Deserialize(reader); worldX = reader.ReadShort(); if (worldX < -255 || worldX > 255) throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255"); worldY = reader.ReadShort(); if (worldY < -255 || worldY > 255) throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255"); subAreaId = reader.ReadVarShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); state = reader.ReadSByte(); if (state < 0) throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0"); look = new Types.EntityLook(); look.Deserialize(reader); var limit = reader.ReadUShort(); complements = new Types.TaxCollectorComplementaryInformations[limit]; for (int i = 0; i < limit; i++) { complements[i] = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorComplementaryInformations>(reader.ReadShort()); complements[i].Deserialize(reader); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); look = new Types.EntityLook(); look.Deserialize(reader); }
public virtual void Deserialize(IDataReader reader) { uniqueId = reader.ReadInt(); firtNameId = reader.ReadShort(); if ( firtNameId < 0 ) { throw new Exception("Forbidden value on firtNameId = " + firtNameId + ", it doesn't respect the following condition : firtNameId < 0"); } lastNameId = reader.ReadShort(); if ( lastNameId < 0 ) { throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); } additionalInfos = new Types.AdditionalTaxCollectorInformations(); additionalInfos.Deserialize(reader); worldX = reader.ReadShort(); if ( worldX < -255 || worldX > 255 ) { throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255"); } worldY = reader.ReadShort(); if ( worldY < -255 || worldY > 255 ) { throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255"); } subAreaId = reader.ReadShort(); if ( subAreaId < 0 ) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } state = reader.ReadSByte(); look = new Types.EntityLook(); look.Deserialize(reader); kamas = reader.ReadInt(); if ( kamas < 0 ) { throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0"); } experience = reader.ReadDouble(); if ( experience < 0 ) { throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0"); } pods = reader.ReadInt(); if ( pods < 0 ) { throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0"); } itemsValue = reader.ReadInt(); if ( itemsValue < 0 ) { throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0"); } }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }