public override void Deserialize(ICustomDataInput 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 as Types.TreasureHuntStep[])[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort()); (knownStepsList as Types.TreasureHuntStep[])[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.ReadVarUhInt(); if (checkPointCurrent < 0) throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0"); checkPointTotal = reader.ReadVarUhInt(); 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 as Types.TreasureHuntFlag[])[i] = new Types.TreasureHuntFlag(); (flags as Types.TreasureHuntFlag[])[i].Deserialize(reader); } }
public virtual void Deserialize(ICustomDataInput reader) { fightId = reader.ReadInt(); fightType = reader.ReadSByte(); if (fightType < 0) throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0"); fightStart = reader.ReadInt(); if (fightStart < 0) throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0"); fightSpectatorLocked = reader.ReadBoolean(); var limit = reader.ReadUShort(); fightTeams = new Types.FightTeamLightInformations[limit]; for (int i = 0; i < limit; i++) { (fightTeams as Types.FightTeamLightInformations[])[i] = new Types.FightTeamLightInformations(); (fightTeams as Types.FightTeamLightInformations[])[i].Deserialize(reader); } limit = reader.ReadUShort(); fightTeamsOptions = new Types.FightOptionsInformations[limit]; for (int i = 0; i < limit; i++) { (fightTeamsOptions as Types.FightOptionsInformations[])[i] = new Types.FightOptionsInformations(); (fightTeamsOptions as Types.FightOptionsInformations[])[i].Deserialize(reader); } }
public virtual void Deserialize(ICustomDataInput reader) { markAuthorId = reader.ReadInt(); markTeamId = reader.ReadSByte(); if (markTeamId < 0) throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0"); markSpellId = reader.ReadInt(); if (markSpellId < 0) throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0"); markSpellLevel = reader.ReadSByte(); if ((markSpellLevel < 1) || (markSpellLevel > 6)) throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : (markSpellLevel < 1) || (markSpellLevel > 6)"); markId = reader.ReadShort(); markType = reader.ReadSByte(); markimpactCell = reader.ReadShort(); if ((markimpactCell < -1) || (markimpactCell > 559)) throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : (markimpactCell < -1) || (markimpactCell > 559)"); var limit = reader.ReadUShort(); cells = new Types.GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { (cells as Types.GameActionMarkedCell[])[i] = new Types.GameActionMarkedCell(); (cells as Types.GameActionMarkedCell[])[i].Deserialize(reader); } active = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); arg1 = reader.ReadInt(); arg2 = reader.ReadInt(); arg3 = reader.ReadInt(); delay = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); actorId = reader.ReadInt(); accountId = reader.ReadInt(); if (accountId < 0) throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { timeLeftBeforeFight = reader.ReadInt(); waitTimeForPlacement = reader.ReadInt(); nbPositionForDefensors = reader.ReadSByte(); if (nbPositionForDefensors < 0) throw new Exception("Forbidden value on nbPositionForDefensors = " + nbPositionForDefensors + ", it doesn't respect the following condition : nbPositionForDefensors < 0"); }
public override void Deserialize(ICustomDataInput reader) { fightId = reader.ReadInt(); sourceId = reader.ReadVarUhInt(); if (sourceId < 0) throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < 0"); targetId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { actionId = reader.ReadInt(); if (actionId < 0) throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0"); characterId = reader.ReadInt(); if (characterId < 0) throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0"); }
public override void Deserialize(ICustomDataInput reader) { requiredVersion = reader.ReadInt(); if (requiredVersion < 0) throw new Exception("Forbidden value on requiredVersion = " + requiredVersion + ", it doesn't respect the following condition : requiredVersion < 0"); currentVersion = reader.ReadInt(); if (currentVersion < 0) throw new Exception("Forbidden value on currentVersion = " + currentVersion + ", it doesn't respect the following condition : currentVersion < 0"); }
public override void Deserialize(ICustomDataInput reader) { var limit = reader.ReadUShort(); ids = new int[limit]; for (int i = 0; i < limit; i++) { (ids as int[])[i] = reader.ReadInt(); } limit = reader.ReadUShort(); deadsIds = new int[limit]; for (int i = 0; i < limit; i++) { (deadsIds as int[])[i] = reader.ReadInt(); } }
public override void Deserialize(ICustomDataInput reader) { fightId = reader.ReadInt(); if (fightId < 0) throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0"); var limit = reader.ReadUShort(); alliesId = new int[limit]; for (int i = 0; i < limit; i++) { (alliesId as int[])[i] = reader.ReadInt(); } duration = reader.ReadVarUhShort(); if (duration < 0) throw new Exception("Forbidden value on duration = " + duration + ", it doesn't respect the following condition : duration < 0"); }
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 override void Deserialize(ICustomDataInput reader) { byte flag1 = reader.ReadByte(); self = BooleanByteWrapper.GetFlag(flag1, 0); verbose = BooleanByteWrapper.GetFlag(flag1, 1); position = reader.ReadSByte(); accountNickname = 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"); playerName = reader.ReadUTF(); playerId = reader.ReadVarUhInt(); if (playerId < 0) throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0"); areaId = reader.ReadShort(); var limit = reader.ReadUShort(); socialGroups = new Types.AbstractSocialGroupInfos[limit]; for (int i = 0; i < limit; i++) { (socialGroups as Types.AbstractSocialGroupInfos[])[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort()); (socialGroups as Types.AbstractSocialGroupInfos[])[i].Deserialize(reader); } playerState = reader.ReadSByte(); if (playerState < 0) throw new Exception("Forbidden value on playerState = " + playerState + ", it doesn't respect the following condition : playerState < 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) { id = reader.ReadInt(); waitTime = reader.ReadVarUhInt(); if (waitTime < 0) throw new Exception("Forbidden value on waitTime = " + waitTime + ", it doesn't respect the following condition : waitTime < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); creationDate = reader.ReadInt(); if (creationDate < 0) throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { mapId = reader.ReadInt(); state = reader.ReadSByte(); if (state < 0) throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); targetId = reader.ReadInt(); entityLook = new Types.EntityLook(); entityLook.Deserialize(reader); }
public virtual void Deserialize(ICustomDataInput reader) { collectorCallerName = reader.ReadUTF(); date = reader.ReadInt(); if (date < 0) throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : date < 0"); }
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 virtual void Deserialize(ICustomDataInput reader) { id = reader.ReadInt(); if (id < 0) throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0"); hash = reader.ReadUTF(); }
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) { base.Deserialize(reader); boostUID = reader.ReadInt(); if (boostUID < 0) throw new Exception("Forbidden value on boostUID = " + boostUID + ", it doesn't respect the following condition : boostUID < 0"); }
public override void Deserialize(ICustomDataInput reader) { content = reader.ReadUTF(); timestamp = reader.ReadInt(); if (timestamp < 0) throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0"); }
public virtual void Deserialize(ICustomDataInput reader) { memberId = reader.ReadInt(); if (memberId < 0) throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0"); 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"); }
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 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) { spellId = reader.ReadInt(); cooldown = reader.ReadSByte(); if (cooldown < 0) throw new Exception("Forbidden value on cooldown = " + cooldown + ", it doesn't respect the following condition : cooldown < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); monsterId = reader.ReadInt(); grade = reader.ReadSByte(); if (grade < 0) throw new Exception("Forbidden value on grade = " + grade + ", it doesn't respect the following condition : grade < 0"); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); targetId = reader.ReadInt(); amount = reader.ReadVarUhShort(); if (amount < 0) throw new Exception("Forbidden value on amount = " + amount + ", it doesn't respect the following condition : amount < 0"); }
public override void Deserialize(ICustomDataInput reader) { m_playerInfo = new CharacterMinimalPlusLookInformations(); m_playerInfo.Deserialize(reader); m_fightId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_unsoldDelay = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { AccountId = reader.ReadInt(); AccountName = reader.ReadUTF(); }
public override void Deserialize(ICustomDataInput reader) { m_finishMoveId = reader.ReadInt(); m_finishMoveState = reader.ReadBoolean(); }
public virtual void Deserialize(ICustomDataInput reader) { 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.ReadVarUhLong(); 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)"); } kamas = reader.ReadInt(); if (kamas < 0) { throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0"); } statsPoints = reader.ReadVarUhShort(); if (statsPoints < 0) { throw new Exception("Forbidden value on statsPoints = " + statsPoints + ", it doesn't respect the following condition : statsPoints < 0"); } additionnalPoints = reader.ReadVarUhShort(); if (additionnalPoints < 0) { throw new Exception("Forbidden value on additionnalPoints = " + additionnalPoints + ", it doesn't respect the following condition : additionnalPoints < 0"); } spellsPoints = reader.ReadVarUhShort(); if (spellsPoints < 0) { throw new Exception("Forbidden value on spellsPoints = " + spellsPoints + ", it doesn't respect the following condition : spellsPoints < 0"); } alignmentInfos = new Types.ActorExtendedAlignmentInformations(); alignmentInfos.Deserialize(reader); lifePoints = reader.ReadVarUhInt(); if (lifePoints < 0) { throw new Exception("Forbidden value on lifePoints = " + lifePoints + ", it doesn't respect the following condition : lifePoints < 0"); } maxLifePoints = reader.ReadVarUhInt(); if (maxLifePoints < 0) { throw new Exception("Forbidden value on maxLifePoints = " + maxLifePoints + ", it doesn't respect the following condition : maxLifePoints < 0"); } energyPoints = reader.ReadVarUhShort(); if (energyPoints < 0) { throw new Exception("Forbidden value on energyPoints = " + energyPoints + ", it doesn't respect the following condition : energyPoints < 0"); } maxEnergyPoints = reader.ReadVarUhShort(); if (maxEnergyPoints < 0) { throw new Exception("Forbidden value on maxEnergyPoints = " + maxEnergyPoints + ", it doesn't respect the following condition : maxEnergyPoints < 0"); } actionPointsCurrent = reader.ReadVarShort(); movementPointsCurrent = reader.ReadVarShort(); initiative = new Types.CharacterBaseCharacteristic(); initiative.Deserialize(reader); prospecting = new Types.CharacterBaseCharacteristic(); prospecting.Deserialize(reader); actionPoints = new Types.CharacterBaseCharacteristic(); actionPoints.Deserialize(reader); movementPoints = new Types.CharacterBaseCharacteristic(); movementPoints.Deserialize(reader); strength = new Types.CharacterBaseCharacteristic(); strength.Deserialize(reader); vitality = new Types.CharacterBaseCharacteristic(); vitality.Deserialize(reader); wisdom = new Types.CharacterBaseCharacteristic(); wisdom.Deserialize(reader); chance = new Types.CharacterBaseCharacteristic(); chance.Deserialize(reader); agility = new Types.CharacterBaseCharacteristic(); agility.Deserialize(reader); intelligence = new Types.CharacterBaseCharacteristic(); intelligence.Deserialize(reader); range = new Types.CharacterBaseCharacteristic(); range.Deserialize(reader); summonableCreaturesBoost = new Types.CharacterBaseCharacteristic(); summonableCreaturesBoost.Deserialize(reader); reflect = new Types.CharacterBaseCharacteristic(); reflect.Deserialize(reader); criticalHit = new Types.CharacterBaseCharacteristic(); criticalHit.Deserialize(reader); criticalHitWeapon = reader.ReadVarUhShort(); if (criticalHitWeapon < 0) { throw new Exception("Forbidden value on criticalHitWeapon = " + criticalHitWeapon + ", it doesn't respect the following condition : criticalHitWeapon < 0"); } criticalMiss = new Types.CharacterBaseCharacteristic(); criticalMiss.Deserialize(reader); healBonus = new Types.CharacterBaseCharacteristic(); healBonus.Deserialize(reader); allDamagesBonus = new Types.CharacterBaseCharacteristic(); allDamagesBonus.Deserialize(reader); weaponDamagesBonusPercent = new Types.CharacterBaseCharacteristic(); weaponDamagesBonusPercent.Deserialize(reader); damagesBonusPercent = new Types.CharacterBaseCharacteristic(); damagesBonusPercent.Deserialize(reader); trapBonus = new Types.CharacterBaseCharacteristic(); trapBonus.Deserialize(reader); trapBonusPercent = new Types.CharacterBaseCharacteristic(); trapBonusPercent.Deserialize(reader); glyphBonusPercent = new Types.CharacterBaseCharacteristic(); glyphBonusPercent.Deserialize(reader); permanentDamagePercent = new Types.CharacterBaseCharacteristic(); permanentDamagePercent.Deserialize(reader); tackleBlock = new Types.CharacterBaseCharacteristic(); tackleBlock.Deserialize(reader); tackleEvade = new Types.CharacterBaseCharacteristic(); tackleEvade.Deserialize(reader); PAAttack = new Types.CharacterBaseCharacteristic(); PAAttack.Deserialize(reader); PMAttack = new Types.CharacterBaseCharacteristic(); PMAttack.Deserialize(reader); pushDamageBonus = new Types.CharacterBaseCharacteristic(); pushDamageBonus.Deserialize(reader); criticalDamageBonus = new Types.CharacterBaseCharacteristic(); criticalDamageBonus.Deserialize(reader); neutralDamageBonus = new Types.CharacterBaseCharacteristic(); neutralDamageBonus.Deserialize(reader); earthDamageBonus = new Types.CharacterBaseCharacteristic(); earthDamageBonus.Deserialize(reader); waterDamageBonus = new Types.CharacterBaseCharacteristic(); waterDamageBonus.Deserialize(reader); airDamageBonus = new Types.CharacterBaseCharacteristic(); airDamageBonus.Deserialize(reader); fireDamageBonus = new Types.CharacterBaseCharacteristic(); fireDamageBonus.Deserialize(reader); dodgePALostProbability = new Types.CharacterBaseCharacteristic(); dodgePALostProbability.Deserialize(reader); dodgePMLostProbability = new Types.CharacterBaseCharacteristic(); dodgePMLostProbability.Deserialize(reader); neutralElementResistPercent = new Types.CharacterBaseCharacteristic(); neutralElementResistPercent.Deserialize(reader); earthElementResistPercent = new Types.CharacterBaseCharacteristic(); earthElementResistPercent.Deserialize(reader); waterElementResistPercent = new Types.CharacterBaseCharacteristic(); waterElementResistPercent.Deserialize(reader); airElementResistPercent = new Types.CharacterBaseCharacteristic(); airElementResistPercent.Deserialize(reader); fireElementResistPercent = new Types.CharacterBaseCharacteristic(); fireElementResistPercent.Deserialize(reader); neutralElementReduction = new Types.CharacterBaseCharacteristic(); neutralElementReduction.Deserialize(reader); earthElementReduction = new Types.CharacterBaseCharacteristic(); earthElementReduction.Deserialize(reader); waterElementReduction = new Types.CharacterBaseCharacteristic(); waterElementReduction.Deserialize(reader); airElementReduction = new Types.CharacterBaseCharacteristic(); airElementReduction.Deserialize(reader); fireElementReduction = new Types.CharacterBaseCharacteristic(); fireElementReduction.Deserialize(reader); pushDamageReduction = new Types.CharacterBaseCharacteristic(); pushDamageReduction.Deserialize(reader); criticalDamageReduction = new Types.CharacterBaseCharacteristic(); criticalDamageReduction.Deserialize(reader); pvpNeutralElementResistPercent = new Types.CharacterBaseCharacteristic(); pvpNeutralElementResistPercent.Deserialize(reader); pvpEarthElementResistPercent = new Types.CharacterBaseCharacteristic(); pvpEarthElementResistPercent.Deserialize(reader); pvpWaterElementResistPercent = new Types.CharacterBaseCharacteristic(); pvpWaterElementResistPercent.Deserialize(reader); pvpAirElementResistPercent = new Types.CharacterBaseCharacteristic(); pvpAirElementResistPercent.Deserialize(reader); pvpFireElementResistPercent = new Types.CharacterBaseCharacteristic(); pvpFireElementResistPercent.Deserialize(reader); pvpNeutralElementReduction = new Types.CharacterBaseCharacteristic(); pvpNeutralElementReduction.Deserialize(reader); pvpEarthElementReduction = new Types.CharacterBaseCharacteristic(); pvpEarthElementReduction.Deserialize(reader); pvpWaterElementReduction = new Types.CharacterBaseCharacteristic(); pvpWaterElementReduction.Deserialize(reader); pvpAirElementReduction = new Types.CharacterBaseCharacteristic(); pvpAirElementReduction.Deserialize(reader); pvpFireElementReduction = new Types.CharacterBaseCharacteristic(); pvpFireElementReduction.Deserialize(reader); var limit = reader.ReadUShort(); spellModifications = new Types.CharacterSpellModification[limit]; for (int i = 0; i < limit; i++) { (spellModifications as Types.CharacterSpellModification[])[i] = new Types.CharacterSpellModification(); (spellModifications as Types.CharacterSpellModification[])[i].Deserialize(reader); } probationTime = reader.ReadInt(); if (probationTime < 0) { throw new Exception("Forbidden value on probationTime = " + probationTime + ", it doesn't respect the following condition : probationTime < 0"); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); MonsterId = reader.ReadInt(); Grade = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { this.spellPairId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { sequenceType = reader.ReadSByte(); authorId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { m_paddockId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); requestedId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { m_creatureGenericId = reader.ReadInt(); m_grade = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); value = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); targetId = reader.ReadInt(); delta = reader.ReadShort(); }
public override void Deserialize(ICustomDataInput reader) { this.subAreaId = reader.ReadVarUhShort(); if (this.subAreaId < 0) { throw new Exception("Forbidden value on subAreaId = " + this.subAreaId + ", it doesn't respect the following condition : subAreaId < 0"); } this.mapId = reader.ReadInt(); if (this.mapId < 0) { throw new Exception("Forbidden value on mapId = " + this.mapId + ", it doesn't respect the following condition : mapId < 0"); } var limit = reader.ReadUShort(); this.houses = new HouseInformations[limit]; for (int i = 0; i < limit; i++) { this.houses[i] = ProtocolTypeManager.GetInstance <HouseInformations>(reader.ReadShort()); this.houses[i].Deserialize(reader); } limit = reader.ReadUShort(); this.actors = new GameRolePlayActorInformations[limit]; for (int i = 0; i < limit; i++) { this.actors[i] = ProtocolTypeManager.GetInstance <GameRolePlayActorInformations>(reader.ReadShort()); this.actors[i].Deserialize(reader); } limit = reader.ReadUShort(); this.interactiveElements = new InteractiveElement[limit]; for (int i = 0; i < limit; i++) { this.interactiveElements[i] = ProtocolTypeManager.GetInstance <InteractiveElement>(reader.ReadShort()); this.interactiveElements[i].Deserialize(reader); } limit = reader.ReadUShort(); this.statedElements = new StatedElement[limit]; for (int i = 0; i < limit; i++) { this.statedElements[i] = new StatedElement(); this.statedElements[i].Deserialize(reader); } limit = reader.ReadUShort(); this.obstacles = new MapObstacle[limit]; for (int i = 0; i < limit; i++) { this.obstacles[i] = new MapObstacle(); this.obstacles[i].Deserialize(reader); } limit = reader.ReadUShort(); this.fights = new FightCommonInformations[limit]; for (int i = 0; i < limit; i++) { this.fights[i] = new FightCommonInformations(); this.fights[i].Deserialize(reader); } this.hasAggressiveMonsters = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { this.fightId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { this.Status = (ServerStatusEnum)reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { id = reader.ReadInt(); look = new Types.EntityLook(); look.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { m_timeLeftBeforeFight = reader.ReadInt(); m_waitTimeForPlacement = reader.ReadInt(); m_nbPositionForDefensors = reader.ReadByte(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); m_subAreaId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { monsterGroupId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { SpellId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { fightId = reader.ReadInt(); accept = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { this.taxCollectorId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { AccountId = reader.ReadInt(); PlayerId = reader.ReadVarLong(); SmileyId = reader.ReadVarShort(); }
public override void Deserialize(ICustomDataInput reader) { m_fightStartPositions = new FightStartingPositions(); m_fightStartPositions.Deserialize(reader); m_mapId = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); id = reader.ReadInt(); alive = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { m_mapId = reader.ReadInt(); m_characterId = reader.ReadVarUhLong(); }
public override void Deserialize(ICustomDataInput reader) { ItemUID = reader.ReadInt(); }
public override void Deserialize(ICustomDataInput reader) { InstanceId = reader.ReadInt(); Amount = reader.ReadVarLong(); ForSale = reader.ReadBoolean(); }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); carryingCharacterId = reader.ReadInt(); }