public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     var limit = reader.ReadUShort();
     charactersToRecolor = new Types.CharacterToRecolorInformation[limit];
     for (int i = 0; i < limit; i++)
     {
          charactersToRecolor[i] = new Types.CharacterToRecolorInformation();
          charactersToRecolor[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     charactersToRename = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          charactersToRename[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     unusableCharacters = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          unusableCharacters[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     charactersToRelook = new Types.CharacterToRelookInformation[limit];
     for (int i = 0; i < limit; i++)
     {
          charactersToRelook[i] = new Types.CharacterToRelookInformation();
          charactersToRelook[i].Deserialize(reader);
     }
 }
Пример #2
0
 public virtual void Deserialize(BigEndianReader 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[i] = new Types.GameActionMarkedCell();
          cells[i].Deserialize(reader);
     }
     active = reader.ReadBoolean();
 }
 public virtual void Deserialize(BigEndianReader 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[i] = new Types.FightTeamLightInformations();
          fightTeams[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     fightTeamsOptions = new Types.FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeamsOptions[i] = new Types.FightOptionsInformations();
          fightTeamsOptions[i].Deserialize(reader);
     }
 }
Пример #4
0
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     arg1 = reader.ReadInt();
     arg2 = reader.ReadInt();
     arg3 = reader.ReadInt();
     delay = reader.ReadShort();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     fightType = reader.ReadSByte();
     if (fightType < 0)
         throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
     attackerId = reader.ReadInt();
     defenderId = reader.ReadInt();
 }
 public virtual void Deserialize(BigEndianReader 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(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.ReadInt();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     npcId = reader.ReadInt();
     npcActionId = reader.ReadSByte();
     if (npcActionId < 0)
         throw new Exception("Forbidden value on npcActionId = " + npcActionId + ", it doesn't respect the following condition : npcActionId < 0");
     npcMapId = reader.ReadInt();
 }
Пример #9
0
 public override void Deserialize(BigEndianReader 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 override void Deserialize(BigEndianReader reader)
 {
     rideId = reader.ReadInt();
     value = reader.ReadInt();
     type = reader.ReadSByte();
     if (type < 0)
         throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
 }
 public override void Deserialize(BigEndianReader 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");
 }
Пример #12
0
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     senderId = reader.ReadInt();
     senderName = reader.ReadUTF();
     senderAccountId = reader.ReadInt();
     if (senderAccountId < 0)
         throw new Exception("Forbidden value on senderAccountId = " + senderAccountId + ", it doesn't respect the following condition : senderAccountId < 0");
 }
Пример #13
0
 // Methods
 internal override void Init(BigEndianReader Reader, int MapVersion)
 {
     this.SoundId = Reader.ReadInt();
     this.BaseVolume = Reader.ReadShort();
     this.FullVolumeDistance = Reader.ReadInt();
     this.NullVolumeDistance = Reader.ReadInt();
     this.MinDelayBetweenLoops = Reader.ReadShort();
     this.MaxDelayBetweenLoops = Reader.ReadShort();
 }
Пример #14
0
 public override void Deserialize(BigEndianReader 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");
 }
Пример #15
0
 public override void Deserialize(BigEndianReader reader)
 {
     entityId = reader.ReadInt();
     smileyId = reader.ReadSByte();
     if (smileyId < 0)
         throw new Exception("Forbidden value on smileyId = " + smileyId + ", it doesn't respect the following condition : smileyId < 0");
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
 }
 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     ids = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          ids[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     deadsIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          deadsIds[i] = reader.ReadInt();
     }
 }
 public override void Deserialize(BigEndianReader 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 override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     targetId = reader.ReadInt();
     entityLook = new Types.EntityLook();
     entityLook.Deserialize(reader);
 }
Пример #19
0
 public virtual void Deserialize(BigEndianReader 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();
 }
Пример #20
0
 public override void Deserialize(BigEndianReader 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.ReadVarInt();
     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[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort());
          socialGroups[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");
 }
Пример #21
0
 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)
 {
     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.ReadVarShort();
     if (nbTotalMembers < 0)
         throw new Exception("Forbidden value on nbTotalMembers = " + nbTotalMembers + ", it doesn't respect the following condition : nbTotalMembers < 0");
     nbConnectedMembers = reader.ReadVarShort();
     if (nbConnectedMembers < 0)
         throw new Exception("Forbidden value on nbConnectedMembers = " + nbConnectedMembers + ", it doesn't respect the following condition : nbConnectedMembers < 0");
 }
 public override void Deserialize(BigEndianReader reader)
 {
     spellId = reader.ReadInt();
     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");
 }
Пример #24
0
 public virtual void Deserialize(BigEndianReader 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(BigEndianReader reader)
 {
     targetId = reader.ReadInt();
     cellId = reader.ReadVarShort();
     if (cellId < 0 || cellId > 559)
         throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : cellId < 0 || cellId > 559");
 }
Пример #26
0
 public virtual void Deserialize(BigEndianReader 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.ReadVarShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
 }
 public override void Deserialize(BigEndianReader reader)
 {
     teleporterType = reader.ReadSByte();
     if (teleporterType < 0)
         throw new Exception("Forbidden value on teleporterType = " + teleporterType + ", it doesn't respect the following condition : teleporterType < 0");
     var limit = reader.ReadUShort();
     mapIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          mapIds[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     subAreaIds = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          subAreaIds[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     costs = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          costs[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     destTeleporterType = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          destTeleporterType[i] = reader.ReadSByte();
     }
 }
 public virtual void Deserialize(BigEndianReader 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");
     var limit = reader.ReadUShort();
     fightTeams = new Types.FightTeamInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeams[i] = Types.ProtocolTypeManager.GetInstance<Types.FightTeamInformations>(reader.ReadShort());
          fightTeams[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     fightTeamsPositions = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeamsPositions[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     fightTeamsOptions = new Types.FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeamsOptions[i] = new Types.FightOptionsInformations();
          fightTeamsOptions[i].Deserialize(reader);
     }
 }
 public override void Deserialize(BigEndianReader 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");
 }
Пример #30
0
 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);
     }
 }