public override void Deserialize(BigEndianReader reader) { 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"); time = reader.ReadDouble(); if (time < -9.007199254740992E15 || time > 9.007199254740992E15) throw new Exception("Forbidden value on time = " + time + ", it doesn't respect the following condition : time < -9.007199254740992E15 || time > 9.007199254740992E15"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); byte b= reader.ReadByte(); this.showExperience = BooleanByteWrapper.GetFlag(b,0); this.showExperienceLevelFloor = BooleanByteWrapper.GetFlag(b, 1); this.showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(b, 2); this.showExperienceFightDelta = BooleanByteWrapper.GetFlag(b, 3); this.showExperienceForGuild = BooleanByteWrapper.GetFlag(b, 4); this.showExperienceForMount = BooleanByteWrapper.GetFlag(b, 5); this.isIncarnationExperience = BooleanByteWrapper.GetFlag(b, 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.ReadVarInt(); if (experienceForGuild < 0) throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0"); experienceForMount = reader.ReadVarInt(); 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 override void Deserialize(BigEndianReader reader) { byte flag1 = reader.ReadByte(); autoconnect = BooleanByteWrapper.GetFlag(flag1, 0); useCertificate = BooleanByteWrapper.GetFlag(flag1, 1); useLoginToken = BooleanByteWrapper.GetFlag(flag1, 2); version = new Types.VersionExtended(); version.Deserialize(reader); lang = reader.ReadUTF(); var limit = reader.ReadVarInt(); credentials = new sbyte[limit]; for (int i = 0; i < limit; i++) { credentials[i] = reader.ReadSByte(); } serverId = reader.ReadShort(); sessionOptionalSalt = reader.ReadDouble(); if (sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15) throw new Exception("Forbidden value on sessionOptionalSalt = " + sessionOptionalSalt + ", it doesn't respect the following condition : sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15"); ushort length = reader.ReadUShort(); failedAttempts = new List<short>(); for (int i = 0; i < length; i++) { failedAttempts.Add(reader.ReadVarShort()); } }
public override void Deserialize(BigEndianReader 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(BigEndianReader reader) { timestamp = reader.ReadDouble(); if (timestamp < 0 || timestamp > 9.007199254740992E15) throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0 || timestamp > 9.007199254740992E15"); timezoneOffset = reader.ReadShort(); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); banEndDate = reader.ReadDouble(); if (banEndDate < 0 || banEndDate > 9.007199254740992E15) throw new Exception("Forbidden value on banEndDate = " + banEndDate + ", it doesn't respect the following condition : banEndDate < 0 || banEndDate > 9.007199254740992E15"); }
public override void Deserialize(BigEndianReader 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.ReadVarShort(); 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.ObjectItemQuantity[limit]; for (int i = 0; i < limit; i++) { objectsInfos[i] = new Types.ObjectItemQuantity(); objectsInfos[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader reader) { name = reader.ReadUTF(); mountId = reader.ReadDouble(); if (mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15) throw new Exception("Forbidden value on mountId = " + mountId + ", it doesn't respect the following condition : mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15"); }
public override void Deserialize(BigEndianReader 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(BigEndianReader reader) { delayedCharacterId = reader.ReadInt(); delayTypeId = reader.ReadSByte(); if (delayTypeId < 0) throw new Exception("Forbidden value on delayTypeId = " + delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0"); delayEndTime = reader.ReadDouble(); if (delayEndTime < 0 || delayEndTime > 9.007199254740992E15) throw new Exception("Forbidden value on delayEndTime = " + delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9.007199254740992E15"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); mountId = reader.ReadInt(); if (mountId < 0) throw new Exception("Forbidden value on mountId = " + mountId + ", it doesn't respect the following condition : mountId < 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"); modelId = reader.ReadVarShort(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); }
public override void Deserialize(BigEndianReader reader) { rideId = reader.ReadDouble(); if (rideId < -9.007199254740992E15 || rideId > 9.007199254740992E15) throw new Exception("Forbidden value on rideId = " + rideId + ", it doesn't respect the following condition : rideId < -9.007199254740992E15 || rideId > 9.007199254740992E15"); var limit = reader.ReadUShort(); boostToUpdateList = new Types.UpdateMountBoost[limit]; for (int i = 0; i < limit; i++) { boostToUpdateList[i] = Types.ProtocolTypeManager.GetInstance<Types.UpdateMountBoost>(reader.ReadShort()); boostToUpdateList[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); delayTypeId = reader.ReadSByte(); if (delayTypeId < 0) throw new Exception("Forbidden value on delayTypeId = " + delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0"); delayEndTime = reader.ReadDouble(); if (delayEndTime < 0 || delayEndTime > 9.007199254740992E15) throw new Exception("Forbidden value on delayEndTime = " + delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9.007199254740992E15"); objectGID = reader.ReadVarShort(); if (objectGID < 0) throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0"); }
public override void Deserialize(BigEndianReader 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(BigEndianReader reader) { id = reader.ReadUShort(); if (id < 0 || id > 65535) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0 || id > 65535"); 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 virtual void Deserialize(BigEndianReader reader) { byte b = reader.ReadByte(); this.sex = BooleanByteWrapper.GetFlag(b,0); this.isRideable = BooleanByteWrapper.GetFlag(b,1); this.isWild = BooleanByteWrapper.GetFlag(b,2); this.isFecondationReady = BooleanByteWrapper.GetFlag(b,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.ReadVarInt(); 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[i] = reader.ReadInt(); } limit = reader.ReadUShort(); behaviors = new int[limit]; for (int i = 0; i < limit; i++) { behaviors[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.ReadVarInt(); if (maxPods < 0) throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0"); stamina = reader.ReadVarInt(); if (stamina < 0) throw new Exception("Forbidden value on stamina = " + stamina + ", it doesn't respect the following condition : stamina < 0"); staminaMax = reader.ReadVarInt(); if (staminaMax < 0) throw new Exception("Forbidden value on staminaMax = " + staminaMax + ", it doesn't respect the following condition : staminaMax < 0"); maturity = reader.ReadVarInt(); if (maturity < 0) throw new Exception("Forbidden value on maturity = " + maturity + ", it doesn't respect the following condition : maturity < 0"); maturityForAdult = reader.ReadVarInt(); if (maturityForAdult < 0) throw new Exception("Forbidden value on maturityForAdult = " + maturityForAdult + ", it doesn't respect the following condition : maturityForAdult < 0"); energy = reader.ReadVarInt(); if (energy < 0) throw new Exception("Forbidden value on energy = " + energy + ", it doesn't respect the following condition : energy < 0"); energyMax = reader.ReadVarInt(); 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.ReadVarInt(); if (serenityMax < 0) throw new Exception("Forbidden value on serenityMax = " + serenityMax + ", it doesn't respect the following condition : serenityMax < 0"); love = reader.ReadVarInt(); if (love < 0) throw new Exception("Forbidden value on love = " + love + ", it doesn't respect the following condition : love < 0"); loveMax = reader.ReadVarInt(); 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.ReadVarInt(); 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[i] = new Types.ObjectEffectInteger(); effectList[i].Deserialize(reader); } }
private double method_6(string string_1, BigEndianReader dofusReader_0) { return dofusReader_0.ReadDouble(); }
public override void Deserialize(BigEndianReader reader) { var limit = reader.ReadUShort(); alliances = new Types.AllianceInformations[limit]; for (int i = 0; i < limit; i++) { alliances[i] = new Types.AllianceInformations(); alliances[i].Deserialize(reader); } limit = reader.ReadUShort(); allianceNbMembers = new short[limit]; for (int i = 0; i < limit; i++) { allianceNbMembers[i] = reader.ReadVarShort(); } limit = reader.ReadUShort(); allianceRoundWeigth = new int[limit]; for (int i = 0; i < limit; i++) { allianceRoundWeigth[i] = reader.ReadVarInt(); } limit = reader.ReadUShort(); allianceMatchScore = new sbyte[limit]; for (int i = 0; i < limit; i++) { allianceMatchScore[i] = reader.ReadSByte(); } allianceMapWinner = new Types.BasicAllianceInformations(); allianceMapWinner.Deserialize(reader); allianceMapWinnerScore = reader.ReadVarInt(); if (allianceMapWinnerScore < 0) throw new Exception("Forbidden value on allianceMapWinnerScore = " + allianceMapWinnerScore + ", it doesn't respect the following condition : allianceMapWinnerScore < 0"); allianceMapMyAllianceScore = reader.ReadVarInt(); if (allianceMapMyAllianceScore < 0) throw new Exception("Forbidden value on allianceMapMyAllianceScore = " + allianceMapMyAllianceScore + ", it doesn't respect the following condition : allianceMapMyAllianceScore < 0"); nextTickTime = reader.ReadDouble(); if (nextTickTime < 0 || nextTickTime > 9.007199254740992E15) throw new Exception("Forbidden value on nextTickTime = " + nextTickTime + ", it doesn't respect the following condition : nextTickTime < 0 || nextTickTime > 9.007199254740992E15"); }