public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); maxPods = reader.ReadVarUhShort(); if (maxPods < 0) throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0"); prospecting = reader.ReadVarUhShort(); if (prospecting < 0) throw new Exception("Forbidden value on prospecting = " + prospecting + ", it doesn't respect the following condition : prospecting < 0"); wisdom = reader.ReadVarUhShort(); if (wisdom < 0) throw new Exception("Forbidden value on wisdom = " + wisdom + ", it doesn't respect the following condition : wisdom < 0"); taxCollectorsCount = reader.ReadSByte(); if (taxCollectorsCount < 0) throw new Exception("Forbidden value on taxCollectorsCount = " + taxCollectorsCount + ", it doesn't respect the following condition : taxCollectorsCount < 0"); taxCollectorAttack = reader.ReadInt(); kamas = reader.ReadVarUhInt(); if (kamas < 0) throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 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)"); pods = reader.ReadVarUhInt(); if (pods < 0) throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0"); itemsValue = reader.ReadVarUhInt(); if (itemsValue < 0) throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0"); }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); finishedQuestsIds = new ushort[limit]; for (int i = 0; i < limit; i++) { (finishedQuestsIds as ushort[])[i] = reader.ReadVarUhShort(); } limit = reader.ReadUShort(); finishedQuestsCounts = new ushort[limit]; for (int i = 0; i < limit; i++) { (finishedQuestsCounts as ushort[])[i] = reader.ReadVarUhShort(); } limit = reader.ReadUShort(); activeQuests = new Types.QuestActiveInformations[limit]; for (int i = 0; i < limit; i++) { (activeQuests as Types.QuestActiveInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.QuestActiveInformations>(reader.ReadShort()); (activeQuests as Types.QuestActiveInformations[])[i].Deserialize(reader); } limit = reader.ReadUShort(); reinitDoneQuestsIds = new ushort[limit]; for (int i = 0; i < limit; i++) { (reinitDoneQuestsIds as ushort[])[i] = reader.ReadVarUhShort(); } }
public virtual void Deserialize(ICustomDataInput reader) { bonesId = reader.ReadVarUhShort(); if (bonesId < 0) throw new Exception("Forbidden value on bonesId = " + bonesId + ", it doesn't respect the following condition : bonesId < 0"); var limit = reader.ReadUShort(); skins = new List<ushort>(); for (int i = 0; i < limit; i++) { skins.Add(reader.ReadVarUhShort()); } limit = reader.ReadUShort(); indexedColors = new List<int>(); for (int i = 0; i < limit; i++) { indexedColors.Add(reader.ReadInt()); } limit = reader.ReadUShort(); scales = new List<short>(); for (int i = 0; i < limit; i++) { scales.Add(reader.ReadVarShort()); } limit = reader.ReadUShort(); subentities = new List<SubEntity>(); for (int i = 0; i < limit; i++) { var subentity = new Types.SubEntity(); subentity.Deserialize(reader); subentities.Add(subentity); } }
public virtual void Deserialize(ICustomDataInput reader) { maxOutdoorMount = reader.ReadVarUhShort(); if (maxOutdoorMount < 0) throw new Exception("Forbidden value on maxOutdoorMount = " + maxOutdoorMount + ", it doesn't respect the following condition : maxOutdoorMount < 0"); maxItems = reader.ReadVarUhShort(); if (maxItems < 0) throw new Exception("Forbidden value on maxItems = " + maxItems + ", it doesn't respect the following condition : maxItems < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { cellId = reader.ReadVarUhShort(); if ((cellId < 0) || (cellId > 559)) throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : (cellId < 0) || (cellId > 559)"); objectGID = reader.ReadVarUhShort(); if (objectGID < 0) throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0"); }
public override void Deserialize(ICustomDataInput reader) { questId = reader.ReadVarUhShort(); if (questId < 0) throw new Exception("Forbidden value on questId = " + questId + ", it doesn't respect the following condition : questId < 0"); stepId = reader.ReadVarUhShort(); if (stepId < 0) throw new Exception("Forbidden value on stepId = " + stepId + ", it doesn't respect the following condition : stepId < 0"); }
public override void Deserialize(ICustomDataInput reader) { unread = reader.ReadVarUhShort(); if (unread < 0) throw new Exception("Forbidden value on unread = " + unread + ", it doesn't respect the following condition : unread < 0"); total = reader.ReadVarUhShort(); if (total < 0) throw new Exception("Forbidden value on total = " + total + ", it doesn't respect the following condition : total < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); firstNameId = reader.ReadVarUhShort(); if (firstNameId < 0) throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0"); lastNameId = reader.ReadVarUhShort(); if (lastNameId < 0) throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); min = reader.ReadVarUhShort(); if (min < 0) throw new Exception("Forbidden value on min = " + min + ", it doesn't respect the following condition : min < 0"); max = reader.ReadVarUhShort(); if (max < 0) throw new Exception("Forbidden value on max = " + max + ", it doesn't respect the following condition : max < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { firstNameId = reader.ReadVarUhShort(); if (firstNameId < 0) throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0"); lastNameId = reader.ReadVarUhShort(); if (lastNameId < 0) throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); guildIdentity = new Types.GuildInformations(); guildIdentity.Deserialize(reader); }
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"); xpBonusPercent = reader.ReadVarUhShort(); if (xpBonusPercent < 0) throw new Exception("Forbidden value on xpBonusPercent = " + xpBonusPercent + ", it doesn't respect the following condition : xpBonusPercent < 0"); dropBonusPercent = reader.ReadVarUhShort(); if (dropBonusPercent < 0) throw new Exception("Forbidden value on dropBonusPercent = " + dropBonusPercent + ", it doesn't respect the following condition : dropBonusPercent < 0"); }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); spellsId = new ushort[limit]; for (int i = 0; i < limit; i++) { (spellsId as ushort[])[i] = reader.ReadVarUhShort(); } boostPoint = reader.ReadVarUhShort(); if (boostPoint < 0) throw new Exception("Forbidden value on boostPoint = " + boostPoint + ", it doesn't respect the following condition : boostPoint < 0"); }
public override void Deserialize(ICustomDataInput reader) { entityId = reader.ReadVarUhInt(); if (entityId < 0) throw new Exception("Forbidden value on entityId = " + entityId + ", it doesn't respect the following condition : entityId < 0"); elemId = reader.ReadVarUhInt(); if (elemId < 0) throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0"); skillId = reader.ReadVarUhShort(); if (skillId < 0) throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0"); duration = reader.ReadVarUhShort(); if (duration < 0) throw new Exception("Forbidden value on duration = " + duration + ", it doesn't respect the following condition : duration < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); questsToValidId = new ushort[limit]; for (int i = 0; i < limit; i++) { (questsToValidId as ushort[])[i] = reader.ReadVarUhShort(); } limit = reader.ReadUShort(); questsToStartId = new ushort[limit]; for (int i = 0; i < limit; i++) { (questsToStartId as ushort[])[i] = reader.ReadVarUhShort(); } }
public virtual void Deserialize(ICustomDataInput reader) { modelId = reader.ReadVarUhInt(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); ownerName = reader.ReadUTF(); ownerConnected = reader.ReadBoolean(); 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.ReadVarUhShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); nbRoom = reader.ReadSByte(); nbChest = reader.ReadSByte(); var limit = reader.ReadUShort(); skillListIds = new int[limit]; for (int i = 0; i < limit; i++) { (skillListIds as int[])[i] = reader.ReadInt(); } isLocked = reader.ReadBoolean(); price = reader.ReadVarUhInt(); if (price < 0) throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { portalId = reader.ReadVarUhShort(); if (portalId < 0) throw new Exception("Forbidden value on portalId = " + portalId + ", it doesn't respect the following condition : portalId < 0"); areaId = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); enabled = BooleanByteWrapper.GetFlag(flag1, 0); abandonnedPaddock = BooleanByteWrapper.GetFlag(flag1, 1); level = reader.ReadByte(); if ((level < 0) || (level > 255)) throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : (level < 0) || (level > 255)"); expLevelFloor = reader.ReadVarUhLong(); if ((expLevelFloor < 0) || (expLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on expLevelFloor = " + expLevelFloor + ", it doesn't respect the following condition : (expLevelFloor < 0) || (expLevelFloor > 9.007199254740992E15)"); 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)"); expNextLevelFloor = reader.ReadVarUhLong(); if ((expNextLevelFloor < 0) || (expNextLevelFloor > 9.007199254740992E15)) throw new Exception("Forbidden value on expNextLevelFloor = " + expNextLevelFloor + ", it doesn't respect the following condition : (expNextLevelFloor < 0) || (expNextLevelFloor > 9.007199254740992E15)"); creationDate = reader.ReadInt(); if (creationDate < 0) throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0"); nbTotalMembers = reader.ReadVarUhShort(); if (nbTotalMembers < 0) throw new Exception("Forbidden value on nbTotalMembers = " + nbTotalMembers + ", it doesn't respect the following condition : nbTotalMembers < 0"); nbConnectedMembers = reader.ReadVarUhShort(); if (nbConnectedMembers < 0) throw new Exception("Forbidden value on nbConnectedMembers = " + nbConnectedMembers + ", it doesn't respect the following condition : nbConnectedMembers < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); quantities = new uint[limit]; for (int i = 0; i < limit; i++) { (quantities as uint[])[i] = reader.ReadVarUhInt(); } limit = reader.ReadUShort(); types = new uint[limit]; for (int i = 0; i < limit; i++) { (types as uint[])[i] = reader.ReadVarUhInt(); } taxPercentage = reader.ReadFloat(); taxModificationPercentage = reader.ReadFloat(); maxItemLevel = reader.ReadByte(); if ((maxItemLevel < 0) || (maxItemLevel > 255)) throw new Exception("Forbidden value on maxItemLevel = " + maxItemLevel + ", it doesn't respect the following condition : (maxItemLevel < 0) || (maxItemLevel > 255)"); maxItemPerAccount = reader.ReadVarUhInt(); if (maxItemPerAccount < 0) throw new Exception("Forbidden value on maxItemPerAccount = " + maxItemPerAccount + ", it doesn't respect the following condition : maxItemPerAccount < 0"); npcContextualId = reader.ReadInt(); unsoldDelay = reader.ReadVarUhShort(); if (unsoldDelay < 0) throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); value = reader.ReadVarUhShort(); if (value < 0) throw new Exception("Forbidden value on value = " + value + ", it doesn't respect the following condition : value < 0"); }
public override void Deserialize(ICustomDataInput reader) { actionId = reader.ReadVarUhShort(); if (actionId < 0) throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); sourceId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); effects = new Types.FightDispellableEffectExtendedInformations[limit]; for (int i = 0; i < limit; i++) { (effects as Types.FightDispellableEffectExtendedInformations[])[i] = new Types.FightDispellableEffectExtendedInformations(); (effects as Types.FightDispellableEffectExtendedInformations[])[i].Deserialize(reader); } limit = reader.ReadUShort(); marks = new Types.GameActionMark[limit]; for (int i = 0; i < limit; i++) { (marks as Types.GameActionMark[])[i] = new Types.GameActionMark(); (marks as Types.GameActionMark[])[i].Deserialize(reader); } gameTurn = reader.ReadVarUhShort(); if (gameTurn < 0) throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0"); fightStart = reader.ReadInt(); if (fightStart < 0) throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0"); limit = reader.ReadUShort(); idols = new Types.Idol[limit]; for (int i = 0; i < limit; i++) { (idols as Types.Idol[])[i] = new Types.Idol(); (idols as Types.Idol[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { result = reader.ReadSByte(); nbCharacBoost = reader.ReadVarUhShort(); if (nbCharacBoost < 0) throw new Exception("Forbidden value on nbCharacBoost = " + nbCharacBoost + ", it doesn't respect the following condition : nbCharacBoost < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); rank = reader.ReadVarUhShort(); if ((rank < 0) || (rank > 2300)) throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : (rank < 0) || (rank > 2300)"); }
public override void Deserialize(ICustomDataInput reader) { subAreaId = reader.ReadVarUhShort(); if (subAreaId < 0) throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); join = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); shieldLoss = reader.ReadVarUhShort(); if (shieldLoss < 0) throw new Exception("Forbidden value on shieldLoss = " + shieldLoss + ", it doesn't respect the following condition : shieldLoss < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); monsterFamilyId = reader.ReadVarUhShort(); if (monsterFamilyId < 0) throw new Exception("Forbidden value on monsterFamilyId = " + monsterFamilyId + ", it doesn't respect the following condition : monsterFamilyId < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); creatureGenericId = reader.ReadVarUhShort(); if (creatureGenericId < 0) throw new Exception("Forbidden value on creatureGenericId = " + creatureGenericId + ", it doesn't respect the following condition : creatureGenericId < 0"); }
public override void Deserialize(ICustomDataInput reader) { targetId = reader.ReadInt(); cellId = reader.ReadVarUhShort(); if ((cellId < 0) || (cellId > 559)) throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : (cellId < 0) || (cellId > 559)"); }
public override void Deserialize(ICustomDataInput reader) { pageIndex = reader.ReadVarUhShort(); if (pageIndex < 0) throw new Exception("Forbidden value on pageIndex = " + pageIndex + ", it doesn't respect the following condition : pageIndex < 0"); totalPage = reader.ReadVarUhShort(); if (totalPage < 0) throw new Exception("Forbidden value on totalPage = " + totalPage + ", it doesn't respect the following condition : totalPage < 0"); var limit = reader.ReadUShort(); houseList = new Types.HouseInformationsForSell[limit]; for (int i = 0; i < limit; i++) { (houseList as Types.HouseInformationsForSell[])[i] = new Types.HouseInformationsForSell(); (houseList as Types.HouseInformationsForSell[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); cells = reader.ReadVarUhShort(); if ((cells < 0) || (cells > 559)) throw new Exception("Forbidden value on cells = " + cells + ", it doesn't respect the following condition : (cells < 0) || (cells > 559)"); }
public override void Deserialize(ICustomDataInput reader) { humanVendorId = reader.ReadVarUhLong(); if (humanVendorId < 0 || humanVendorId > 9007199254740990) { throw new Exception("Forbidden value on humanVendorId = " + humanVendorId + ", it doesn't respect the following condition : humanVendorId < 0 || humanVendorId > 9007199254740990"); } humanVendorCell = reader.ReadVarUhShort(); if (humanVendorCell < 0 || humanVendorCell > 559) { throw new Exception("Forbidden value on humanVendorCell = " + humanVendorCell + ", it doesn't respect the following condition : humanVendorCell < 0 || humanVendorCell > 559"); } }
public override void Deserialize(ICustomDataInput reader) { int parametersCount = reader.ReadUShort(); int parametersIndex; m_parameters = new System.Collections.Generic.List <string>(); for (parametersIndex = 0; (parametersIndex < parametersCount); parametersIndex = (parametersIndex + 1)) { m_parameters.Add(reader.ReadUTF()); } m_entityId = reader.ReadDouble(); m_textId = reader.ReadVarUhShort(); }
public override void Deserialize(ICustomDataInput reader) { setId = reader.ReadVarUhShort(); if (setId < 0) { throw new Exception("Forbidden value on setId = " + setId + ", it doesn't respect the following condition : setId < 0"); } var limit = reader.ReadShort(); setObjects = new ushort[limit]; for (int i = 0; i < limit; i++) { (setObjects as ushort[])[i] = reader.ReadVarUhShort(); } limit = reader.ReadShort(); setEffects = new Types.ObjectEffect[limit]; for (int i = 0; i < limit; i++) { (setEffects as Types.ObjectEffect[])[i] = Types.ProtocolTypeManager.GetInstance <Types.ObjectEffect>(reader.ReadShort()); (setEffects as Types.ObjectEffect[])[i].Deserialize(reader); } }
public override void Deserialize(ICustomDataInput reader) { int invalidBuddiesIdsCount = reader.ReadUShort(); int invalidBuddiesIdsIndex; m_invalidBuddiesIds = new System.Collections.Generic.List <ulong>(); for (invalidBuddiesIdsIndex = 0; (invalidBuddiesIdsIndex < invalidBuddiesIdsCount); invalidBuddiesIdsIndex = (invalidBuddiesIdsIndex + 1)) { m_invalidBuddiesIds.Add(reader.ReadVarUhLong()); } m_dungeonId = reader.ReadVarUhShort(); m_inviterId = reader.ReadVarUhLong(); }
public override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); this.activate = BooleanByteWrapper.GetFlag(flag1, 0); this.party = BooleanByteWrapper.GetFlag(flag1, 1); this.idolId = reader.ReadVarUhShort(); if (this.idolId < 0) { throw new Exception("Forbidden value on idolId = " + this.idolId + ", it doesn't respect the following condition : idolId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { elemId = reader.ReadVarUhInt(); if (elemId < 0) { throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0"); } skillId = reader.ReadVarUhShort(); if (skillId < 0) { throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); this.diceNum = reader.ReadVarUhShort(); if (this.diceNum < 0) { throw new Exception("Forbidden value on diceNum = " + this.diceNum + ", it doesn't respect the following condition : diceNum < 0"); } this.diceSide = reader.ReadVarUhShort(); if (this.diceSide < 0) { throw new Exception("Forbidden value on diceSide = " + this.diceSide + ", it doesn't respect the following condition : diceSide < 0"); } this.diceConst = reader.ReadVarUhShort(); if (this.diceConst < 0) { throw new Exception("Forbidden value on diceConst = " + this.diceConst + ", it doesn't respect the following condition : diceConst < 0"); } }
public virtual void Deserialize(ICustomDataInput reader) { subAreaId = reader.ReadVarUhShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } allianceId = reader.ReadVarUhInt(); if (allianceId < 0) { throw new Exception("Forbidden value on allianceId = " + allianceId + ", it doesn't respect the following condition : allianceId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { this.msgId = reader.ReadVarUhShort(); if (this.msgId < 0) { throw new Exception("Forbidden value on msgId = " + this.msgId + ", it doesn't respect the following condition : msgId < 0"); } this.timeStamp = reader.ReadInt(); if (this.timeStamp < 0) { throw new Exception("Forbidden value on timeStamp = " + this.timeStamp + ", it doesn't respect the following condition : timeStamp < 0"); } this.owner = reader.ReadUTF(); this.objectGenericId = reader.ReadVarUhShort(); if (this.objectGenericId < 0) { throw new Exception("Forbidden value on objectGenericId = " + this.objectGenericId + ", it doesn't respect the following condition : objectGenericId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { genericId = reader.ReadVarUhShort(); if (genericId < 0) { throw new Exception("Forbidden value on genericId = " + genericId + ", it doesn't respect the following condition : genericId < 0"); } baseQuantity = reader.ReadVarUhInt(); if (baseQuantity < 0) { throw new Exception("Forbidden value on baseQuantity = " + baseQuantity + ", it doesn't respect the following condition : baseQuantity < 0"); } }
public override void Deserialize(ICustomDataInput reader) { dungeonId = reader.ReadVarUhShort(); if (dungeonId < 0) { throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0"); } buddyId = reader.ReadVarUhInt(); if (buddyId < 0) { throw new Exception("Forbidden value on buddyId = " + buddyId + ", it doesn't respect the following condition : buddyId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { m_objectiveId = reader.ReadVarUhShort(); m_objectiveStatus = reader.ReadBoolean(); int dialogParamsCount = reader.ReadUShort(); int dialogParamsIndex; m_dialogParams = new System.Collections.Generic.List <string>(); for (dialogParamsIndex = 0; (dialogParamsIndex < dialogParamsCount); dialogParamsIndex = (dialogParamsIndex + 1)) { m_dialogParams.Add(reader.ReadUTF()); } }
public override void Deserialize(ICustomDataInput reader) { actionId = reader.ReadVarUhShort(); if (actionId < 0) { throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); } 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"); } }
public override void Deserialize(ICustomDataInput reader) { m_setId = reader.ReadVarUhShort(); int setObjectsCount = reader.ReadUShort(); int setObjectsIndex; m_setObjects = new System.Collections.Generic.List <ushort>(); for (setObjectsIndex = 0; (setObjectsIndex < setObjectsCount); setObjectsIndex = (setObjectsIndex + 1)) { m_setObjects.Add(reader.ReadVarUhShort()); } int setEffectsCount = reader.ReadUShort(); int setEffectsIndex; m_setEffects = new System.Collections.Generic.List <ObjectEffect>(); for (setEffectsIndex = 0; (setEffectsIndex < setEffectsCount); setEffectsIndex = (setEffectsIndex + 1)) { ObjectEffect objectToAdd = ProtocolTypeManager.GetInstance <ObjectEffect>((short)reader.ReadUShort()); objectToAdd.Deserialize(reader); m_setEffects.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { type = reader.ReadVarUhInt(); if (type < 0) { throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0"); } genId = reader.ReadVarUhShort(); if (genId < 0) { throw new Exception("Forbidden value on genId = " + genId + ", it doesn't respect the following condition : genId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { m_hangUp = reader.ReadBoolean(); m_msgId = reader.ReadVarUhShort(); int parametersCount = reader.ReadUShort(); int parametersIndex; m_parameters = new System.Collections.Generic.List <string>(); for (parametersIndex = 0; (parametersIndex < parametersCount); parametersIndex = (parametersIndex + 1)) { m_parameters.Add(reader.ReadUTF()); } }
public override void Deserialize(ICustomDataInput reader) { subAreaId = reader.ReadVarUhShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } targetId = reader.ReadVarUhLong(); if (targetId < 0 || targetId > 9007199254740990) { throw new Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < 0 || targetId > 9007199254740990"); } }
public override void Deserialize(ICustomDataInput reader) { seq = reader.ReadVarUhInt(); if (seq < 0) { throw new Exception("Forbidden value on seq = " + seq + ", it doesn't respect the following condition : seq < 0"); } lastPacketId = reader.ReadVarUhShort(); if (lastPacketId < 0) { throw new Exception("Forbidden value on lastPacketId = " + lastPacketId + ", it doesn't respect the following condition : lastPacketId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); int playersDungeonReadyCount = reader.ReadUShort(); int playersDungeonReadyIndex; m_playersDungeonReady = new System.Collections.Generic.List <bool>(); for (playersDungeonReadyIndex = 0; (playersDungeonReadyIndex < playersDungeonReadyCount); playersDungeonReadyIndex = (playersDungeonReadyIndex + 1)) { m_playersDungeonReady.Add(reader.ReadBoolean()); } m_dungeonId = reader.ReadVarUhShort(); }
public override void Deserialize(ICustomDataInput reader) { challengeId = reader.ReadVarUhShort(); if (challengeId < 0) { throw new Exception("Forbidden value on challengeId = " + challengeId + ", it doesn't respect the following condition : challengeId < 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"); } }
public virtual void Deserialize(ICustomDataInput reader) { id = reader.ReadVarUhInt(); if (id < 0) { throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); } maxValue = reader.ReadVarUhShort(); if (maxValue < 0) { throw new Exception("Forbidden value on maxValue = " + maxValue + ", it doesn't respect the following condition : maxValue < 0"); } }
public override void Deserialize(ICustomDataInput reader) { spellId = reader.ReadVarUhShort(); if (spellId < 0) { throw new Exception("Forbidden value on spellId = " + spellId + ", it doesn't respect the following condition : spellId < 0"); } spellLevel = reader.ReadSByte(); if ((spellLevel < 1) || (spellLevel > 6)) { throw new Exception("Forbidden value on spellLevel = " + spellLevel + ", it doesn't respect the following condition : (spellLevel < 1) || (spellLevel > 6)"); } }
public override void Deserialize(ICustomDataInput reader) { int missingIdolsCount = reader.ReadUShort(); int missingIdolsIndex; m_missingIdols = new System.Collections.Generic.List <ushort>(); for (missingIdolsIndex = 0; (missingIdolsIndex < missingIdolsCount); missingIdolsIndex = (missingIdolsIndex + 1)) { m_missingIdols.Add(reader.ReadVarUhShort()); } m_presetId = reader.ReadByte(); m_code = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { subAreaId = reader.ReadVarUhShort(); if (subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } startDefenseTime = reader.ReadSByte(); if (startDefenseTime < 0) { throw new Exception("Forbidden value on startDefenseTime = " + startDefenseTime + ", it doesn't respect the following condition : startDefenseTime < 0"); } }
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"); } finishedlevel = reader.ReadByte(); if (finishedlevel < 0 || finishedlevel > 200) { throw new Exception("Forbidden value on finishedlevel = " + finishedlevel + ", it doesn't respect the following condition : finishedlevel < 0 || finishedlevel > 200"); } }
public override void Deserialize(ICustomDataInput reader) { timeSpent = reader.ReadDouble(); if (timeSpent < 0 || timeSpent > 9007199254740990) { throw new Exception("Forbidden value on timeSpent = " + timeSpent + ", it doesn't respect the following condition : timeSpent < 0 || timeSpent > 9007199254740990"); } statId = reader.ReadVarUhShort(); if (statId < 0) { throw new Exception("Forbidden value on statId = " + statId + ", it doesn't respect the following condition : statId < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_playerId = reader.ReadVarUhLong(); int skillsCount = reader.ReadUShort(); int skillsIndex; m_skills = new System.Collections.Generic.List <ushort>(); for (skillsIndex = 0; (skillsIndex < skillsCount); skillsIndex = (skillsIndex + 1)) { m_skills.Add(reader.ReadVarUhShort()); } }
public override void Deserialize(ICustomDataInput reader) { statId = reader.ReadVarUhInt(); if (statId < 0) { throw new Exception("Forbidden value on statId = " + statId + ", it doesn't respect the following condition : statId < 0"); } spellId = reader.ReadVarUhShort(); if (spellId < 0) { throw new Exception("Forbidden value on spellId = " + spellId + ", it doesn't respect the following condition : spellId < 0"); } value = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { useAdditionnal = reader.ReadBoolean(); statId = reader.ReadSByte(); if (statId < 0) { throw new Exception("Forbidden value on statId = " + statId + ", it doesn't respect the following condition : statId < 0"); } boostPoint = reader.ReadVarUhShort(); if (boostPoint < 0) { throw new Exception("Forbidden value on boostPoint = " + boostPoint + ", it doesn't respect the following condition : boostPoint < 0"); } }
public override void Deserialize(ICustomDataInput reader) { int objectsInfosCount = reader.ReadUShort(); int objectsInfosIndex; m_objectsInfos = new System.Collections.Generic.List <ObjectItemGenericQuantity>(); for (objectsInfosIndex = 0; (objectsInfosIndex < objectsInfosCount); objectsInfosIndex = (objectsInfosIndex + 1)) { ObjectItemGenericQuantity objectToAdd = new ObjectItemGenericQuantity(); objectToAdd.Deserialize(reader); m_objectsInfos.Add(objectToAdd); } m_collectorName = reader.ReadUTF(); m_worldX = reader.ReadShort(); m_worldY = reader.ReadShort(); m_mapId = reader.ReadInt(); m_subAreaId = reader.ReadVarUhShort(); m_userName = reader.ReadUTF(); m_callerId = reader.ReadVarUhLong(); m_callerName = reader.ReadUTF(); m_experience = reader.ReadDouble(); m_pods = reader.ReadVarUhShort(); }