public override void Deserialize(BigEndianReader reader) { questType = reader.ReadSByte(); if (questType < 0) throw new Exception("Forbidden value on questType = " + questType + ", it doesn't respect the following condition : questType < 0"); startMapId = reader.ReadInt(); var limit = reader.ReadUShort(); knownStepsList = new Types.TreasureHuntStep[limit]; for (int i = 0; i < limit; i++) { knownStepsList[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort()); knownStepsList[i].Deserialize(reader); } totalStepCount = reader.ReadSByte(); if (totalStepCount < 0) throw new Exception("Forbidden value on totalStepCount = " + totalStepCount + ", it doesn't respect the following condition : totalStepCount < 0"); checkPointCurrent = reader.ReadVarInt(); if (checkPointCurrent < 0) throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0"); checkPointTotal = reader.ReadVarInt(); if (checkPointTotal < 0) throw new Exception("Forbidden value on checkPointTotal = " + checkPointTotal + ", it doesn't respect the following condition : checkPointTotal < 0"); availableRetryCount = reader.ReadInt(); limit = reader.ReadUShort(); flags = new Types.TreasureHuntFlag[limit]; for (int i = 0; i < limit; i++) { flags[i] = new Types.TreasureHuntFlag(); flags[i].Deserialize(reader); } }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); partyType = reader.ReadSByte(); if (partyType < 0) throw new Exception("Forbidden value on partyType = " + partyType + ", it doesn't respect the following condition : partyType < 0"); partyName = reader.ReadUTF(); fromId = reader.ReadVarInt(); if (fromId < 0) throw new Exception("Forbidden value on fromId = " + fromId + ", it doesn't respect the following condition : fromId < 0"); fromName = reader.ReadUTF(); leaderId = reader.ReadVarInt(); if (leaderId < 0) throw new Exception("Forbidden value on leaderId = " + leaderId + ", it doesn't respect the following condition : leaderId < 0"); var limit = reader.ReadUShort(); members = new Types.PartyInvitationMemberInformations[limit]; for (int i = 0; i < limit; i++) { members[i] = new Types.PartyInvitationMemberInformations(); members[i].Deserialize(reader); } limit = reader.ReadUShort(); guests = new Types.PartyGuestInformations[limit]; for (int i = 0; i < limit; i++) { guests[i] = new Types.PartyGuestInformations(); guests[i].Deserialize(reader); } }
public virtual void Deserialize(BigEndianReader reader) { var limit = reader.ReadUShort(); quantities = new int[limit]; for (int i = 0; i < limit; i++) { quantities[i] = reader.ReadVarInt(); } limit = reader.ReadUShort(); types = new int[limit]; for (int i = 0; i < limit; i++) { types[i] = reader.ReadVarInt(); } 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.ReadVarInt(); 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.ReadVarShort(); if (unsoldDelay < 0) throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); objectGID = reader.ReadVarShort(); if (objectGID < 0) throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0"); var limit = reader.ReadUShort(); effects = new Types.ObjectEffect[limit]; for (int i = 0; i < limit; i++) { effects[i] = Types.ProtocolTypeManager.GetInstance<Types.ObjectEffect>(reader.ReadShort()); effects[i].Deserialize(reader); } objectUID = reader.ReadVarInt(); if (objectUID < 0) throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); quantity = reader.ReadVarInt(); if (quantity < 0) throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0"); objectPrice = reader.ReadVarInt(); if (objectPrice < 0) throw new Exception("Forbidden value on objectPrice = " + objectPrice + ", it doesn't respect the following condition : objectPrice < 0"); publicPrice = reader.ReadVarInt(); if (publicPrice < 0) throw new Exception("Forbidden value on publicPrice = " + publicPrice + ", it doesn't respect the following condition : publicPrice < 0"); }
public virtual void Deserialize(BigEndianReader reader) { //houseId = reader.ReadInt(); houseId = reader.ReadVarInt(); if (houseId < 0) throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0"); modelId = reader.ReadVarInt(); if (modelId < 0) throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0"); ownerName = 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"); var limit = reader.ReadUShort(); skillListIds = new int[limit]; for (int i = 0; i < limit; i++) { skillListIds[i] = reader.ReadInt(); } guildshareParams = reader.ReadVarInt(); if (guildshareParams < 0) throw new Exception("Forbidden value on guildshareParams = " + guildshareParams + ", it doesn't respect the following condition : guildshareParams < 0"); }
public override void Deserialize(BigEndianReader reader) { objectUID = reader.ReadVarInt(); if (objectUID < 0) throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); quantity = reader.ReadVarInt(); }
public override void Deserialize(BigEndianReader reader) { lifePoints = reader.ReadVarInt(); if (lifePoints < 0) throw new Exception("Forbidden value on lifePoints = " + lifePoints + ", it doesn't respect the following condition : lifePoints < 0"); maxLifePoints = reader.ReadVarInt(); if (maxLifePoints < 0) throw new Exception("Forbidden value on maxLifePoints = " + maxLifePoints + ", it doesn't respect the following condition : maxLifePoints < 0"); }
public override void Deserialize(BigEndianReader reader) { attackerId = reader.ReadVarInt(); if (attackerId < 0) throw new Exception("Forbidden value on attackerId = " + attackerId + ", it doesn't respect the following condition : attackerId < 0"); defenderId = reader.ReadVarInt(); if (defenderId < 0) throw new Exception("Forbidden value on defenderId = " + defenderId + ", it doesn't respect the following condition : defenderId < 0"); }
public override void Deserialize(BigEndianReader reader) { weight = reader.ReadVarInt(); if (weight < 0) throw new Exception("Forbidden value on weight = " + weight + ", it doesn't respect the following condition : weight < 0"); weightMax = reader.ReadVarInt(); if (weightMax < 0) throw new Exception("Forbidden value on weightMax = " + weightMax + ", it doesn't respect the following condition : weightMax < 0"); }
public override void Deserialize(BigEndianReader reader) { objectValue = reader.ReadVarInt(); if (objectValue < 0) throw new Exception("Forbidden value on objectValue = " + objectValue + ", it doesn't respect the following condition : objectValue < 0"); totalTaxValue = reader.ReadVarInt(); if (totalTaxValue < 0) throw new Exception("Forbidden value on totalTaxValue = " + totalTaxValue + ", it doesn't respect the following condition : totalTaxValue < 0"); }
public override void Deserialize(BigEndianReader reader) { currentWeight = reader.ReadVarInt(); if (currentWeight < 0) throw new Exception("Forbidden value on currentWeight = " + currentWeight + ", it doesn't respect the following condition : currentWeight < 0"); maxWeight = reader.ReadVarInt(); if (maxWeight < 0) throw new Exception("Forbidden value on maxWeight = " + maxWeight + ", it doesn't respect the following condition : maxWeight < 0"); }
public override void Deserialize(BigEndianReader reader) { elemId = reader.ReadVarInt(); if (elemId < 0) throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0"); skillInstanceUid = reader.ReadVarInt(); if (skillInstanceUid < 0) throw new Exception("Forbidden value on skillInstanceUid = " + skillInstanceUid + ", it doesn't respect the following condition : skillInstanceUid < 0"); }
public override void Deserialize(BigEndianReader reader) { initiatorId = reader.ReadVarInt(); if (initiatorId < 0) throw new Exception("Forbidden value on initiatorId = " + initiatorId + ", it doesn't respect the following condition : initiatorId < 0"); otherId = reader.ReadVarInt(); if (otherId < 0) throw new Exception("Forbidden value on otherId = " + otherId + ", it doesn't respect the following condition : otherId < 0"); role = reader.ReadSByte(); }
public override void Deserialize(BigEndianReader reader) { houseId = reader.ReadVarInt(); if (houseId < 0) throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0"); bought = reader.ReadBoolean(); realPrice = reader.ReadVarInt(); if (realPrice < 0) throw new Exception("Forbidden value on realPrice = " + realPrice + ", it doesn't respect the following condition : realPrice < 0"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); min = reader.ReadVarInt(); if (min < 0) throw new Exception("Forbidden value on min = " + min + ", it doesn't respect the following condition : min < 0"); max = reader.ReadVarInt(); if (max < 0) throw new Exception("Forbidden value on max = " + max + ", it doesn't respect the following condition : max < 0"); }
public override void Deserialize(BigEndianReader reader) { bsell = reader.ReadBoolean(); ownerId = reader.ReadVarInt(); if (ownerId < 0) throw new Exception("Forbidden value on ownerId = " + ownerId + ", it doesn't respect the following condition : ownerId < 0"); price = reader.ReadVarInt(); if (price < 0) throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); cancelerId = reader.ReadVarInt(); if (cancelerId < 0) throw new Exception("Forbidden value on cancelerId = " + cancelerId + ", it doesn't respect the following condition : cancelerId < 0"); guestId = reader.ReadVarInt(); if (guestId < 0) throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0"); }
public override void Deserialize(BigEndianReader reader) { base.Deserialize(reader); target = reader.ReadVarInt(); if (target < 0) throw new Exception("Forbidden value on target = " + target + ", it doesn't respect the following condition : target < 0"); skillId = reader.ReadVarInt(); if (skillId < 0) throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0"); }
public override void Deserialize(BigEndianReader reader) { fightId = reader.ReadInt(); sourceId = reader.ReadVarInt(); if (sourceId < 0) throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < 0"); targetId = reader.ReadVarInt(); if (targetId < 0) throw new Exception("Forbidden value on targetId = " + targetId + ", it doesn't respect the following condition : targetId < 0"); accept = reader.ReadBoolean(); }
public override void Deserialize(BigEndianReader reader) { livingUID = reader.ReadVarInt(); if (livingUID < 0) throw new Exception("Forbidden value on livingUID = " + livingUID + ", it doesn't respect the following condition : livingUID < 0"); livingPosition = reader.ReadByte(); if (livingPosition < 0 || livingPosition > 255) throw new Exception("Forbidden value on livingPosition = " + livingPosition + ", it doesn't respect the following condition : livingPosition < 0 || livingPosition > 255"); skinId = reader.ReadVarInt(); if (skinId < 0) throw new Exception("Forbidden value on skinId = " + skinId + ", it doesn't respect the following condition : skinId < 0"); }
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 override void Deserialize(BigEndianReader reader) { objectUID = reader.ReadVarInt(); if (objectUID < 0) throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); position = reader.ReadByte(); if (position < 0 || position > 255) throw new Exception("Forbidden value on position = " + position + ", it doesn't respect the following condition : position < 0 || position > 255"); quantity = reader.ReadVarInt(); if (quantity < 0) throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0"); }
public override void Deserialize(BigEndianReader reader) { dungeonId = reader.ReadVarShort(); if (dungeonId < 0) throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0"); buddyId = reader.ReadVarInt(); if (buddyId < 0) throw new Exception("Forbidden value on buddyId = " + buddyId + ", it doesn't respect the following condition : buddyId < 0"); timeLeft = reader.ReadVarInt(); if (timeLeft < 0) throw new Exception("Forbidden value on timeLeft = " + timeLeft + ", it doesn't respect the following condition : timeLeft < 0"); }
public override void Deserialize(BigEndianReader reader) { genericId = reader.ReadVarShort(); if (genericId < 0) throw new Exception("Forbidden value on genericId = " + genericId + ", it doesn't respect the following condition : genericId < 0"); quantity = reader.ReadVarInt(); if (quantity < 0) throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0"); resourceGenericId = reader.ReadVarInt(); if (resourceGenericId < 0) throw new Exception("Forbidden value on resourceGenericId = " + resourceGenericId + ", it doesn't respect the following condition : resourceGenericId < 0"); }
public override void Deserialize(BigEndianReader reader) { challengeId = reader.ReadVarShort(); if (challengeId < 0) throw new Exception("Forbidden value on challengeId = " + challengeId + ", it doesn't respect the following condition : challengeId < 0"); targetId = reader.ReadInt(); xpBonus = reader.ReadVarInt(); if (xpBonus < 0) throw new Exception("Forbidden value on xpBonus = " + xpBonus + ", it doesn't respect the following condition : xpBonus < 0"); dropBonus = reader.ReadVarInt(); if (dropBonus < 0) throw new Exception("Forbidden value on dropBonus = " + dropBonus + ", it doesn't respect the following condition : dropBonus < 0"); }
public override void Deserialize(BigEndianReader reader) { paymentType = reader.ReadSByte(); if (paymentType < 0) throw new Exception("Forbidden value on paymentType = " + paymentType + ", it doesn't respect the following condition : paymentType < 0"); bAdd = reader.ReadBoolean(); objectToMoveId = reader.ReadVarInt(); if (objectToMoveId < 0) throw new Exception("Forbidden value on objectToMoveId = " + objectToMoveId + ", it doesn't respect the following condition : objectToMoveId < 0"); quantity = reader.ReadVarInt(); if (quantity < 0) throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0"); }
public override void Deserialize(BigEndianReader reader) { mountUid = reader.ReadVarUhLong(); if (mountUid < 0 || mountUid > 9.007199254740992E15) throw new Exception("Forbidden value on mountUid = " + mountUid + ", it doesn't respect the following condition : mountUid < 0 || mountUid > 9.007199254740992E15"); mountLocation = reader.ReadSByte(); mountFoodUid = reader.ReadVarInt(); if (mountFoodUid < 0) throw new Exception("Forbidden value on mountFoodUid = " + mountFoodUid + ", it doesn't respect the following condition : mountFoodUid < 0"); quantity = reader.ReadVarInt(); if (quantity < 0) throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0"); }
public override void Deserialize(BigEndianReader reader) { symbioteUID = reader.ReadVarInt(); if (symbioteUID < 0) throw new Exception("Forbidden value on symbioteUID = " + symbioteUID + ", it doesn't respect the following condition : symbioteUID < 0"); symbiotePos = reader.ReadByte(); if (symbiotePos < 0 || symbiotePos > 255) throw new Exception("Forbidden value on symbiotePos = " + symbiotePos + ", it doesn't respect the following condition : symbiotePos < 0 || symbiotePos > 255"); hostUID = reader.ReadVarInt(); if (hostUID < 0) throw new Exception("Forbidden value on hostUID = " + hostUID + ", it doesn't respect the following condition : hostUID < 0"); hostPos = reader.ReadByte(); if (hostPos < 0 || hostPos > 255) throw new Exception("Forbidden value on hostPos = " + hostPos + ", it doesn't respect the following condition : hostPos < 0 || hostPos > 255"); }
public override void Deserialize(BigEndianReader reader) { memberId = reader.ReadVarInt(); if (memberId < 0) throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0"); rank = reader.ReadVarShort(); if (rank < 0) throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0"); experienceGivenPercent = reader.ReadSByte(); if (experienceGivenPercent < 0 || experienceGivenPercent > 100) throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100"); rights = reader.ReadVarInt(); if (rights < 0) throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0"); }
public override void Deserialize(BigEndianReader reader) { entityId = reader.ReadVarInt(); if (entityId < 0) throw new Exception("Forbidden value on entityId = " + entityId + ", it doesn't respect the following condition : entityId < 0"); elemId = reader.ReadVarInt(); if (elemId < 0) throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0"); skillId = reader.ReadVarShort(); if (skillId < 0) throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0"); duration = reader.ReadVarShort(); if (duration < 0) throw new Exception("Forbidden value on duration = " + duration + ", it doesn't respect the following condition : duration < 0"); }