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"); } time = reader.ReadDouble(); if (time < -9007199254740990 || time > 9007199254740990) { throw new Exception("Forbidden value on time = " + time + ", it doesn't respect the following condition : time < -9007199254740990 || time > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { fightId = reader.ReadInt(); sourceId = reader.ReadDouble(); if (sourceId < -9007199254740990 || sourceId > 9007199254740990) { throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < -9007199254740990 || sourceId > 9007199254740990"); } 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"); } }
public override void Deserialize(ICustomDataInput reader) { var flag = reader.ReadByte(); HasRights = BooleanByteWrapper.GetFlag(flag, 0); WasAlreadyConnected = BooleanByteWrapper.GetFlag(flag, 1); Login = reader.ReadUTF(); Nickname = reader.ReadUTF(); AccountId = reader.ReadInt(); CommunityId = reader.ReadByte(); SecretQuestion = reader.ReadUTF(); AccountCreation = reader.ReadDouble(); SubscriptionElapsedDuration = reader.ReadDouble(); SubscriptionEndDate = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); this.hasRights = BooleanByteWrapper.GetFlag(flag1, 0); this.wasAlreadyConnected = BooleanByteWrapper.GetFlag(flag1, 1); this.login = reader.ReadUTF(); this.nickname = reader.ReadUTF(); this.accountId = reader.ReadInt(); if (this.accountId < 0) { throw new Exception("Forbidden value on accountId = " + this.accountId + ", it doesn't respect the following condition : accountId < 0"); } this.communityId = reader.ReadSByte(); if (this.communityId < 0) { throw new Exception("Forbidden value on communityId = " + this.communityId + ", it doesn't respect the following condition : communityId < 0"); } this.secretQuestion = reader.ReadUTF(); this.accountCreation = reader.ReadDouble(); if (this.accountCreation < 0 || this.accountCreation > 9007199254740990) { throw new Exception("Forbidden value on accountCreation = " + this.accountCreation + ", it doesn't respect the following condition : accountCreation < 0 || accountCreation > 9007199254740990"); } this.subscriptionElapsedDuration = reader.ReadDouble(); if (this.subscriptionElapsedDuration < 0 || this.subscriptionElapsedDuration > 9007199254740990) { throw new Exception("Forbidden value on subscriptionElapsedDuration = " + this.subscriptionElapsedDuration + ", it doesn't respect the following condition : subscriptionElapsedDuration < 0 || subscriptionElapsedDuration > 9007199254740990"); } this.subscriptionEndDate = reader.ReadDouble(); if (this.subscriptionEndDate < 0 || this.subscriptionEndDate > 9007199254740990) { throw new Exception("Forbidden value on subscriptionEndDate = " + this.subscriptionEndDate + ", it doesn't respect the following condition : subscriptionEndDate < 0 || subscriptionEndDate > 9007199254740990"); } this.havenbagAvailableRoom = reader.ReadByte(); if (this.havenbagAvailableRoom < 0 || this.havenbagAvailableRoom > 255) { throw new Exception("Forbidden value on havenbagAvailableRoom = " + this.havenbagAvailableRoom + ", it doesn't respect the following condition : havenbagAvailableRoom < 0 || havenbagAvailableRoom > 255"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_targetId = reader.ReadDouble(); m_loss = reader.ReadVarUhInt(); m_permanentDamages = reader.ReadVarUhInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); this.silentCast = BooleanByteWrapper.GetFlag(flag1, 0); this.verboseCast = BooleanByteWrapper.GetFlag(flag1, 1); this.targetId = reader.ReadDouble(); if (this.targetId < -9007199254740990 || this.targetId > 9007199254740990) { throw new Exception("Forbidden value on targetId = " + this.targetId + ", it doesn't respect the following condition : targetId < -9007199254740990 || targetId > 9007199254740990"); } this.destinationCellId = reader.ReadShort(); if (this.destinationCellId < -1 || this.destinationCellId > 559) { throw new Exception("Forbidden value on destinationCellId = " + this.destinationCellId + ", it doesn't respect the following condition : destinationCellId < -1 || destinationCellId > 559"); } this.critical = reader.ReadSByte(); if (this.critical < 0) { throw new Exception("Forbidden value on critical = " + this.critical + ", it doesn't respect the following condition : critical < 0"); } }
public override void Deserialize(ICustomDataInput reader) { m_actionId = reader.ReadVarUhShort(); m_sourceId = reader.ReadDouble(); m_effect = ProtocolTypeManager.GetInstance <AbstractFightDispellableEffect>((short)reader.ReadUShort()); m_effect.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); value = reader.ReadDouble(); if ((value < -9.007199254740992E15) || (value > 9.007199254740992E15)) throw new Exception("Forbidden value on value = " + value + ", it doesn't respect the following condition : (value < -9.007199254740992E15) || (value > 9.007199254740992E15)"); }
public override void Deserialize(ICustomDataInput reader) { m_challengeId = reader.ReadVarUhShort(); m_targetId = reader.ReadDouble(); m_xpBonus = reader.ReadVarUhInt(); m_dropBonus = reader.ReadVarUhInt(); }
public override void Deserialize(ICustomDataInput reader) { QuestType = reader.ReadByte(); StartMapId = reader.ReadDouble(); var countKnownStepsList = reader.ReadShort(); KnownStepsList = new List <TreasureHuntStep>(); for (short i = 0; i < countKnownStepsList; i++) { var knownStepsListtypeId = reader.ReadShort(); TreasureHuntStep type = new TreasureHuntStep(); type.Deserialize(reader); KnownStepsList.Add(type); } TotalStepCount = reader.ReadByte(); CheckPointCurrent = reader.ReadVarInt(); CheckPointTotal = reader.ReadVarInt(); AvailableRetryCount = reader.ReadInt(); var countFlags = reader.ReadShort(); Flags = new List <TreasureHuntFlag>(); for (short i = 0; i < countFlags; i++) { TreasureHuntFlag type = new TreasureHuntFlag(); type.Deserialize(reader); Flags.Add(type); } }
public override void Deserialize(ICustomDataInput reader) { collectorName = reader.ReadUTF(); 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)"); } mapId = reader.ReadInt(); subAreaId = reader.ReadVarUhShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } userName = reader.ReadUTF(); experience = reader.ReadDouble(); if ((experience < -9.007199254740992E15) || (experience > 9.007199254740992E15)) { throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : (experience < -9.007199254740992E15) || (experience > 9.007199254740992E15)"); } var limit = reader.ReadUShort(); objectsInfos = new Types.ObjectItemGenericQuantity[limit]; for (int i = 0; i < limit; i++) { (objectsInfos as Types.ObjectItemGenericQuantity[])[i] = new Types.ObjectItemGenericQuantity(); (objectsInfos as Types.ObjectItemGenericQuantity[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); TargetId = reader.ReadDouble(); SpellId = reader.ReadVarShort(); Value = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); ElementId = reader.ReadVarInt(); SkillId = reader.ReadVarShort(); SkillEndTime = reader.ReadDouble(); }
public virtual void Deserialize(ICustomDataInput reader) { id = reader.ReadVarUhShort(); if (id < 0) { throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); } type = reader.ReadSByte(); status = reader.ReadSByte(); if (status < 0) { throw new Exception("Forbidden value on status = " + status + ", it doesn't respect the following condition : status < 0"); } completion = reader.ReadSByte(); if (completion < 0) { throw new Exception("Forbidden value on completion = " + completion + ", it doesn't respect the following condition : completion < 0"); } isSelectable = reader.ReadBoolean(); charactersCount = reader.ReadSByte(); if (charactersCount < 0) { throw new Exception("Forbidden value on charactersCount = " + charactersCount + ", it doesn't respect the following condition : charactersCount < 0"); } charactersSlots = reader.ReadSByte(); if (charactersSlots < 0) { throw new Exception("Forbidden value on charactersSlots = " + charactersSlots + ", it doesn't respect the following condition : charactersSlots < 0"); } date = reader.ReadDouble(); if (date < -9007199254740990 || date > 9007199254740990) { throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : date < -9007199254740990 || date > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { Type = reader.ReadByte(); MonsterId = reader.ReadVarShort(); Kamas = reader.ReadVarLong(); DareId = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { m_subAreaId = reader.ReadShort(); m_fightId = reader.ReadDouble(); m_fighterId1 = reader.ReadInt(); m_fighterId2 = reader.ReadInt(); }
public virtual void Deserialize(ICustomDataInput reader) { uid = reader.ReadVarUhInt(); if (uid < 0) { throw new Exception("Forbidden value on uid = " + uid + ", it doesn't respect the following condition : uid < 0"); } 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"); } turnDuration = reader.ReadShort(); dispelable = reader.ReadSByte(); if (dispelable < 0) { throw new Exception("Forbidden value on dispelable = " + dispelable + ", it doesn't respect the following condition : dispelable < 0"); } spellId = reader.ReadVarUhShort(); if (spellId < 0) { throw new Exception("Forbidden value on spellId = " + spellId + ", it doesn't respect the following condition : spellId < 0"); } effectId = reader.ReadVarUhInt(); if (effectId < 0) { throw new Exception("Forbidden value on effectId = " + effectId + ", it doesn't respect the following condition : effectId < 0"); } parentBoostUid = reader.ReadVarUhInt(); if (parentBoostUid < 0) { throw new Exception("Forbidden value on parentBoostUid = " + parentBoostUid + ", it doesn't respect the following condition : parentBoostUid < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_senderId = reader.ReadDouble(); m_senderName = reader.ReadUTF(); m_senderAccountId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { MapId = reader.ReadDouble(); var countNpcsIdsWithQuest = reader.ReadShort(); NpcsIdsWithQuest = new List <int>(); for (short i = 0; i < countNpcsIdsWithQuest; i++) { NpcsIdsWithQuest.Add(reader.ReadInt()); } var countQuestFlags = reader.ReadShort(); QuestFlags = new List <GameRolePlayNpcQuestFlag>(); for (short i = 0; i < countQuestFlags; i++) { GameRolePlayNpcQuestFlag type = new GameRolePlayNpcQuestFlag(); type.Deserialize(reader); QuestFlags.Add(type); } var countNpcsIdsWithoutQuest = reader.ReadShort(); NpcsIdsWithoutQuest = new List <int>(); for (short i = 0; i < countNpcsIdsWithoutQuest; i++) { NpcsIdsWithoutQuest.Add(reader.ReadInt()); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_markId = reader.ReadShort(); m_triggeringCharacterId = reader.ReadDouble(); m_triggeredSpellId = reader.ReadVarUhShort(); }
public override void Deserialize(ICustomDataInput reader) { this.challengeId = reader.ReadVarUhShort(); if (this.challengeId < 0) { throw new Exception("Forbidden value on challengeId = " + this.challengeId + ", it doesn't respect the following condition : challengeId < 0"); } this.targetId = reader.ReadDouble(); if (this.targetId < -9007199254740990 || this.targetId > 9007199254740990) { throw new Exception("Forbidden value on targetId = " + this.targetId + ", it doesn't respect the following condition : targetId < -9007199254740990 || targetId > 9007199254740990"); } this.xpBonus = reader.ReadVarUhInt(); if (this.xpBonus < 0) { throw new Exception("Forbidden value on xpBonus = " + this.xpBonus + ", it doesn't respect the following condition : xpBonus < 0"); } this.dropBonus = reader.ReadVarUhInt(); if (this.dropBonus < 0) { throw new Exception("Forbidden value on dropBonus = " + this.dropBonus + ", it doesn't respect the following condition : dropBonus < 0"); } }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); ids = new double[limit]; for (int i = 0; i < limit; i++) { ids[i] = reader.ReadDouble(); } limit = reader.ReadUShort(); deadsIds = new double[limit]; for (int i = 0; i < limit; i++) { deadsIds[i] = reader.ReadDouble(); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_entityLook = new EntityLook(); m_entityLook.Deserialize(reader); m_targetId = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_mountId = reader.ReadInt(); m_date = reader.ReadDouble(); m_modelId = reader.ReadVarUhShort(); }
public override void Deserialize(ICustomDataInput reader) { m_type = reader.ReadByte(); m_monsterId = reader.ReadVarUhShort(); m_kamas = reader.ReadVarUhLong(); m_dareId = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_companionGenericId = reader.ReadByte(); m_level = reader.ReadSByte(); m_masterId = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); TargetId = reader.ReadDouble(); StartCellId = reader.ReadShort(); EndCellId = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_targetId = reader.ReadDouble(); m_casterCellId = reader.ReadShort(); m_targetCellId = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { m_alignmentSide = reader.ReadByte(); m_alignmentValue = reader.ReadByte(); m_alignmentGrade = reader.ReadByte(); m_characterPower = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); EntityModelId = reader.ReadByte(); Level = reader.ReadVarShort(); MasterId = reader.ReadDouble(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_delayTypeId = reader.ReadByte(); m_delayEndTime = reader.ReadDouble(); m_objectGID = reader.ReadVarUhShort(); }
public override void Deserialize(ICustomDataInput reader) { emoteId = reader.ReadByte(); if ((emoteId < 0) || (emoteId > 255)) throw new Exception("Forbidden value on emoteId = " + emoteId + ", it doesn't respect the following condition : (emoteId < 0) || (emoteId > 255)"); emoteStartTime = reader.ReadDouble(); if ((emoteStartTime < -9.007199254740992E15) || (emoteStartTime > 9.007199254740992E15)) throw new Exception("Forbidden value on emoteStartTime = " + emoteStartTime + ", it doesn't respect the following condition : (emoteStartTime < -9.007199254740992E15) || (emoteStartTime > 9.007199254740992E15)"); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); hasRights = BooleanByteWrapper.GetFlag(flag1, 0); wasAlreadyConnected = BooleanByteWrapper.GetFlag(flag1, 1); login = reader.ReadUTF(); nickname = reader.ReadUTF(); accountId = reader.ReadInt(); if (accountId < 0) throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); communityId = reader.ReadSByte(); if (communityId < 0) throw new Exception("Forbidden value on communityId = " + communityId + ", it doesn't respect the following condition : communityId < 0"); secretQuestion = reader.ReadUTF(); accountCreation = reader.ReadDouble(); if ((accountCreation < 0) || (accountCreation > 9.007199254740992E15)) throw new Exception("Forbidden value on accountCreation = " + accountCreation + ", it doesn't respect the following condition : (accountCreation < 0) || (accountCreation > 9.007199254740992E15)"); subscriptionElapsedDuration = reader.ReadDouble(); if ((subscriptionElapsedDuration < 0) || (subscriptionElapsedDuration > 9.007199254740992E15)) throw new Exception("Forbidden value on subscriptionElapsedDuration = " + subscriptionElapsedDuration + ", it doesn't respect the following condition : (subscriptionElapsedDuration < 0) || (subscriptionElapsedDuration > 9.007199254740992E15)"); subscriptionEndDate = reader.ReadDouble(); if ((subscriptionEndDate < 0) || (subscriptionEndDate > 9.007199254740992E15)) throw new Exception("Forbidden value on subscriptionEndDate = " + subscriptionEndDate + ", it doesn't respect the following condition : (subscriptionEndDate < 0) || (subscriptionEndDate > 9.007199254740992E15)"); }
public virtual void Deserialize(ICustomDataInput reader) { id = reader.ReadVarUhShort(); if (id < 0) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); status = reader.ReadSByte(); if (status < 0) throw new Exception("Forbidden value on status = " + status + ", it doesn't respect the following condition : status < 0"); completion = reader.ReadSByte(); if (completion < 0) throw new Exception("Forbidden value on completion = " + completion + ", it doesn't respect the following condition : completion < 0"); isSelectable = reader.ReadBoolean(); charactersCount = reader.ReadSByte(); if (charactersCount < 0) throw new Exception("Forbidden value on charactersCount = " + charactersCount + ", it doesn't respect the following condition : charactersCount < 0"); date = reader.ReadDouble(); if ((date < -9.007199254740992E15) || (date > 9.007199254740992E15)) throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : (date < -9.007199254740992E15) || (date > 9.007199254740992E15)"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); byte flag1 = reader.ReadByte(); showExperience = BooleanByteWrapper.GetFlag(flag1, 0); showExperienceLevelFloor = BooleanByteWrapper.GetFlag(flag1, 1); showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(flag1, 2); showExperienceFightDelta = BooleanByteWrapper.GetFlag(flag1, 3); showExperienceForGuild = BooleanByteWrapper.GetFlag(flag1, 4); showExperienceForMount = BooleanByteWrapper.GetFlag(flag1, 5); isIncarnationExperience = BooleanByteWrapper.GetFlag(flag1, 6); experience = reader.ReadVarUhLong(); if ((experience < 0) || (experience > 9.007199254740992E15)) throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : (experience < 0) || (experience > 9.007199254740992E15)"); experienceLevelFloor = reader.ReadVarUhLong(); if ((experienceLevelFloor < 0) || (experienceLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceLevelFloor = " + experienceLevelFloor + ", it doesn't respect the following condition : (experienceLevelFloor < 0) || (experienceLevelFloor > 9.007199254740992E15)"); experienceNextLevelFloor = reader.ReadDouble(); if ((experienceNextLevelFloor < 0) || (experienceNextLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceNextLevelFloor = " + experienceNextLevelFloor + ", it doesn't respect the following condition : (experienceNextLevelFloor < 0) || (experienceNextLevelFloor > 9.007199254740992E15)"); experienceFightDelta = reader.ReadVarInt(); experienceForGuild = reader.ReadVarUhInt(); if (experienceForGuild < 0) throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0"); experienceForMount = reader.ReadVarUhInt(); if (experienceForMount < 0) throw new Exception("Forbidden value on experienceForMount = " + experienceForMount + ", it doesn't respect the following condition : experienceForMount < 0"); rerollExperienceMul = reader.ReadSByte(); if (rerollExperienceMul < 0) throw new Exception("Forbidden value on rerollExperienceMul = " + rerollExperienceMul + ", it doesn't respect the following condition : rerollExperienceMul < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); sex = BooleanByteWrapper.GetFlag(flag1, 0); isRideable = BooleanByteWrapper.GetFlag(flag1, 1); isWild = BooleanByteWrapper.GetFlag(flag1, 2); isFecondationReady = BooleanByteWrapper.GetFlag(flag1, 3); id = reader.ReadDouble(); if ((id < -9.007199254740992E15) || (id > 9.007199254740992E15)) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : (id < -9.007199254740992E15) || (id > 9.007199254740992E15)"); model = reader.ReadVarUhInt(); if (model < 0) throw new Exception("Forbidden value on model = " + model + ", it doesn't respect the following condition : model < 0"); var limit = reader.ReadUShort(); ancestor = new int[limit]; for (int i = 0; i < limit; i++) { (ancestor as int[])[i] = reader.ReadInt(); } limit = reader.ReadUShort(); behaviors = new int[limit]; for (int i = 0; i < limit; i++) { (behaviors as int[])[i] = reader.ReadInt(); } name = reader.ReadUTF(); ownerId = reader.ReadInt(); if (ownerId < 0) throw new Exception("Forbidden value on ownerId = " + ownerId + ", it doesn't respect the following condition : ownerId < 0"); experience = reader.ReadVarUhLong(); if ((experience < 0) || (experience > 9.007199254740992E15)) throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : (experience < 0) || (experience > 9.007199254740992E15)"); experienceForLevel = reader.ReadVarUhLong(); if ((experienceForLevel < 0) || (experienceForLevel > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceForLevel = " + experienceForLevel + ", it doesn't respect the following condition : (experienceForLevel < 0) || (experienceForLevel > 9.007199254740992E15)"); experienceForNextLevel = reader.ReadDouble(); if ((experienceForNextLevel < -9.007199254740992E15) || (experienceForNextLevel > 9.007199254740992E15)) throw new Exception("Forbidden value on experienceForNextLevel = " + experienceForNextLevel + ", it doesn't respect the following condition : (experienceForNextLevel < -9.007199254740992E15) || (experienceForNextLevel > 9.007199254740992E15)"); level = reader.ReadSByte(); if (level < 0) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0"); maxPods = reader.ReadVarUhInt(); if (maxPods < 0) throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0"); stamina = reader.ReadVarUhInt(); if (stamina < 0) throw new Exception("Forbidden value on stamina = " + stamina + ", it doesn't respect the following condition : stamina < 0"); staminaMax = reader.ReadVarUhInt(); if (staminaMax < 0) throw new Exception("Forbidden value on staminaMax = " + staminaMax + ", it doesn't respect the following condition : staminaMax < 0"); maturity = reader.ReadVarUhInt(); if (maturity < 0) throw new Exception("Forbidden value on maturity = " + maturity + ", it doesn't respect the following condition : maturity < 0"); maturityForAdult = reader.ReadVarUhInt(); if (maturityForAdult < 0) throw new Exception("Forbidden value on maturityForAdult = " + maturityForAdult + ", it doesn't respect the following condition : maturityForAdult < 0"); energy = reader.ReadVarUhInt(); if (energy < 0) throw new Exception("Forbidden value on energy = " + energy + ", it doesn't respect the following condition : energy < 0"); energyMax = reader.ReadVarUhInt(); if (energyMax < 0) throw new Exception("Forbidden value on energyMax = " + energyMax + ", it doesn't respect the following condition : energyMax < 0"); serenity = reader.ReadInt(); aggressivityMax = reader.ReadInt(); serenityMax = reader.ReadVarUhInt(); if (serenityMax < 0) throw new Exception("Forbidden value on serenityMax = " + serenityMax + ", it doesn't respect the following condition : serenityMax < 0"); love = reader.ReadVarUhInt(); if (love < 0) throw new Exception("Forbidden value on love = " + love + ", it doesn't respect the following condition : love < 0"); loveMax = reader.ReadVarUhInt(); if (loveMax < 0) throw new Exception("Forbidden value on loveMax = " + loveMax + ", it doesn't respect the following condition : loveMax < 0"); fecondationTime = reader.ReadInt(); boostLimiter = reader.ReadInt(); if (boostLimiter < 0) throw new Exception("Forbidden value on boostLimiter = " + boostLimiter + ", it doesn't respect the following condition : boostLimiter < 0"); boostMax = reader.ReadDouble(); if ((boostMax < -9.007199254740992E15) || (boostMax > 9.007199254740992E15)) throw new Exception("Forbidden value on boostMax = " + boostMax + ", it doesn't respect the following condition : (boostMax < -9.007199254740992E15) || (boostMax > 9.007199254740992E15)"); reproductionCount = reader.ReadInt(); reproductionCountMax = reader.ReadVarUhInt(); if (reproductionCountMax < 0) throw new Exception("Forbidden value on reproductionCountMax = " + reproductionCountMax + ", it doesn't respect the following condition : reproductionCountMax < 0"); limit = reader.ReadUShort(); effectList = new Types.ObjectEffectInteger[limit]; for (int i = 0; i < limit; i++) { (effectList as Types.ObjectEffectInteger[])[i] = new Types.ObjectEffectInteger(); (effectList as Types.ObjectEffectInteger[])[i].Deserialize(reader); } }