コード例 #1
0
 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");
 }
コード例 #2
0
ファイル: GameActionMark.cs プロジェクト: thomasvinot/Symbioz
 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);
     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)");
 }
コード例 #4
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     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();
     prism = Types.ProtocolTypeManager.GetInstance<Types.PrismInformation>(reader.ReadShort());
     prism.Deserialize(reader);
 }
コード例 #5
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();
 }
コード例 #6
0
 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);
     }
 }
コード例 #7
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if ((ageBonus < -1) || (ageBonus > 1000))
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : (ageBonus < -1) || (ageBonus > 1000)");
 }
コード例 #8
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");
 }
コード例 #9
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");
 }
コード例 #10
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();
     }
 }
コード例 #11
0
 public override void Deserialize(ICustomDataInput reader)
 {
     type = reader.ReadSByte();
     if (type < 0)
         throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
     coords = Types.ProtocolTypeManager.GetInstance<Types.MapCoordinates>(reader.ReadShort());
     coords.Deserialize(reader);
 }
コード例 #12
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     byte flag1 = reader.ReadByte();
     keyRingBonus = BooleanByteWrapper.GetFlag(flag1, 0);
     hasHardcoreDrop = BooleanByteWrapper.GetFlag(flag1, 1);
     hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
     staticInfos = Types.ProtocolTypeManager.GetInstance<Types.GroupMonsterStaticInformations>(reader.ReadShort());
     staticInfos.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if ((ageBonus < -1) || (ageBonus > 1000))
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : (ageBonus < -1) || (ageBonus > 1000)");
     lootShare = reader.ReadSByte();
     if ((lootShare < -1) || (lootShare > 8))
         throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : (lootShare < -1) || (lootShare > 8)");
     alignmentSide = reader.ReadSByte();
 }
コード例 #13
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     targetId = reader.ReadInt();
     cellId = reader.ReadShort();
     if ((cellId < -1) || (cellId > 559))
         throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : (cellId < -1) || (cellId > 559)");
 }
コード例 #14
0
 public override void Deserialize(ICustomDataInput reader)
 {
     fightId = reader.ReadShort();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     team = new Types.FightTeamInformations();
     team.Deserialize(reader);
 }
コード例 #15
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     arg1 = reader.ReadInt();
     arg2 = reader.ReadInt();
     arg3 = reader.ReadInt();
     delay = reader.ReadShort();
 }
コード例 #16
0
 public override void Deserialize(ICustomDataInput reader)
 {
     barType = reader.ReadSByte();
     if (barType < 0)
         throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0");
     shortcut = Types.ProtocolTypeManager.GetInstance<Types.Shortcut>(reader.ReadShort());
     shortcut.Deserialize(reader);
 }
コード例 #17
0
 public virtual void Deserialize(ICustomDataInput reader)
 {
     guildOwner = 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)");
     subAreaId = reader.ReadVarUhShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     nbMount = reader.ReadSByte();
     nbObject = reader.ReadSByte();
     price = reader.ReadVarUhInt();
     if (price < 0)
         throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
 }
コード例 #18
0
 public virtual void Deserialize(ICustomDataInput reader)
 {
     collectorId = reader.ReadInt();
     var limit = reader.ReadUShort();
     allyCharactersInformations = new Types.CharacterMinimalPlusLookInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (allyCharactersInformations as Types.CharacterMinimalPlusLookInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.CharacterMinimalPlusLookInformations>(reader.ReadShort());
          (allyCharactersInformations as Types.CharacterMinimalPlusLookInformations[])[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     enemyCharactersInformations = new Types.CharacterMinimalPlusLookInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (enemyCharactersInformations as Types.CharacterMinimalPlusLookInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.CharacterMinimalPlusLookInformations>(reader.ReadShort());
          (enemyCharactersInformations as Types.CharacterMinimalPlusLookInformations[])[i].Deserialize(reader);
     }
 }
コード例 #19
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     humanoidInfo = Types.ProtocolTypeManager.GetInstance<Types.HumanInformations>(reader.ReadShort());
     humanoidInfo.Deserialize(reader);
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
 }
コード例 #20
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");
     cellId = reader.ReadShort();
     if ((cellId < -1) || (cellId > 559))
         throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : (cellId < -1) || (cellId > 559)");
 }
コード例 #21
0
 public override void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadSByte();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     teamId = reader.ReadSByte();
     if (teamId < 0)
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     nbTurnBeforeNextWave = reader.ReadShort();
 }
コード例 #22
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     identification = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorStaticInformations>(reader.ReadShort());
     identification.Deserialize(reader);
     guildLevel = reader.ReadByte();
     if ((guildLevel < 0) || (guildLevel > 255))
         throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : (guildLevel < 0) || (guildLevel > 255)");
     taxCollectorAttack = reader.ReadInt();
 }
コード例 #23
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     informations = new Types.TaxCollectorInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (informations as Types.TaxCollectorInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorInformations>(reader.ReadShort());
          (informations as Types.TaxCollectorInformations[])[i].Deserialize(reader);
     }
 }
コード例 #24
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     prisms = new Types.PrismSubareaEmptyInfo[limit];
     for (int i = 0; i < limit; i++)
     {
          (prisms as Types.PrismSubareaEmptyInfo[])[i] = Types.ProtocolTypeManager.GetInstance<Types.PrismSubareaEmptyInfo>(reader.ReadShort());
          (prisms as Types.PrismSubareaEmptyInfo[])[i].Deserialize(reader);
     }
 }
コード例 #25
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     characters = new Types.CharacterBaseInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (characters as Types.CharacterBaseInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.CharacterBaseInformations>(reader.ReadShort());
          (characters as Types.CharacterBaseInformations[])[i].Deserialize(reader);
     }
 }
コード例 #26
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     friendsList = new Types.FriendInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (friendsList as Types.FriendInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.FriendInformations>(reader.ReadShort());
          (friendsList as Types.FriendInformations[])[i].Deserialize(reader);
     }
 }
コード例 #27
0
 public override void Deserialize(ICustomDataInput reader)
 {
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     playerId = reader.ReadVarUhInt();
     if (playerId < 0)
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
     status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
コード例 #28
0
 public override void Deserialize(ICustomDataInput reader)
 {
     rideId = reader.ReadVarInt();
     var limit = reader.ReadUShort();
     boostToUpdateList = new Types.UpdateMountBoost[limit];
     for (int i = 0; i < limit; i++)
     {
          (boostToUpdateList as Types.UpdateMountBoost[])[i] = Types.ProtocolTypeManager.GetInstance<Types.UpdateMountBoost>(reader.ReadShort());
          (boostToUpdateList as Types.UpdateMountBoost[])[i].Deserialize(reader);
     }
 }
コード例 #29
0
 public override void Deserialize(ICustomDataInput reader)
 {
     day = reader.ReadSByte();
     if (day < 0)
         throw new Exception("Forbidden value on day = " + day + ", it doesn't respect the following condition : day < 0");
     month = reader.ReadSByte();
     if (month < 0)
         throw new Exception("Forbidden value on month = " + month + ", it doesn't respect the following condition : month < 0");
     year = reader.ReadShort();
     if (year < 0)
         throw new Exception("Forbidden value on year = " + year + ", it doesn't respect the following condition : year < 0");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     targetId = reader.ReadInt();
     destinationCellId = reader.ReadShort();
     if ((destinationCellId < -1) || (destinationCellId > 559))
         throw new Exception("Forbidden value on destinationCellId = " + destinationCellId + ", it doesn't respect the following condition : (destinationCellId < -1) || (destinationCellId > 559)");
     critical = reader.ReadSByte();
     if (critical < 0)
         throw new Exception("Forbidden value on critical = " + critical + ", it doesn't respect the following condition : critical < 0");
     silentCast = reader.ReadBoolean();
 }
コード例 #31
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            playerId = reader.ReadVarUhInt();
            if (playerId < 0)
            {
                throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
            }
            var limit = reader.ReadShort();

            skills = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                (skills as ushort[])[i] = reader.ReadVarUhShort();
            }
        }
コード例 #32
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadUShort();

            targetIds = new double[limit];
            for (int i = 0; i < limit; i++)
            {
                targetIds[i] = reader.ReadDouble();
            }
            limit       = reader.ReadUShort();
            targetCells = new short[limit];
            for (int i = 0; i < limit; i++)
            {
                targetCells[i] = reader.ReadShort();
            }
        }
コード例 #33
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            objectiveId = reader.ReadVarUhShort();
            if (objectiveId < 0)
            {
                throw new Exception("Forbidden value on objectiveId = " + objectiveId + ", it doesn't respect the following condition : objectiveId < 0");
            }
            objectiveStatus = reader.ReadBoolean();
            var limit = reader.ReadShort();

            dialogParams = new string[limit];
            for (int i = 0; i < limit; i++)
            {
                (dialogParams as string[])[i] = reader.ReadUTF();
            }
        }
コード例 #34
0
        public override void Deserialize(ICustomDataInput reader)
        {
            nbPaddockMax = reader.ReadSByte();
            if (nbPaddockMax < 0)
            {
                throw new Exception("Forbidden value on nbPaddockMax = " + nbPaddockMax + ", it doesn't respect the following condition : nbPaddockMax < 0");
            }
            var limit = reader.ReadShort();

            paddocksInformations = new Types.PaddockContentInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                (paddocksInformations as Types.PaddockContentInformations[])[i] = new Types.PaddockContentInformations();
                (paddocksInformations as Types.PaddockContentInformations[])[i].Deserialize(reader);
            }
        }
コード例 #35
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadShort();

            objects = new Types.ObjectItem[limit];
            for (int i = 0; i < limit; i++)
            {
                (objects as Types.ObjectItem[])[i] = new Types.ObjectItem();
                (objects as Types.ObjectItem[])[i].Deserialize(reader);
            }
            kamas = reader.ReadVarUhInt();
            if (kamas < 0)
            {
                throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0");
            }
        }
コード例 #36
0
        public override void Deserialize(ICustomDataInput reader)
        {
            Owner = new CharacterMinimalInformations();
            Owner.Deserialize(reader);
            var countBonuses = reader.ReadShort();

            Bonuses = new List <ObjectEffectInteger>();
            for (short i = 0; i < countBonuses; i++)
            {
                ObjectEffectInteger type = new ObjectEffectInteger();
                type.Deserialize(reader);
                Bonuses.Add(type);
            }
            Bugdet = reader.ReadVarInt();
            Saved  = reader.ReadBoolean();
        }
コード例 #37
0
        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.ReadShort();

            playerInfo = new Types.CharacterMinimalPlusLookInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                (playerInfo as Types.CharacterMinimalPlusLookInformations[])[i] = new Types.CharacterMinimalPlusLookInformations();
                (playerInfo as Types.CharacterMinimalPlusLookInformations[])[i].Deserialize(reader);
            }
        }
コード例 #38
0
        public override void Deserialize(ICustomDataInput reader)
        {
            barType = reader.ReadSByte();
            if (barType < 0)
            {
                throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0");
            }
            var limit = reader.ReadShort();

            shortcuts = new Types.Shortcut[limit];
            for (int i = 0; i < limit; i++)
            {
                (shortcuts as Types.Shortcut[])[i] = Types.ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadShort());
                (shortcuts as Types.Shortcut[])[i].Deserialize(reader);
            }
        }
コード例 #39
0
        public override void Deserialize(ICustomDataInput reader)
        {
            entityId = reader.ReadInt();
            textId   = reader.ReadVarUhShort();
            if (textId < 0)
            {
                throw new Exception("Forbidden value on textId = " + textId + ", it doesn't respect the following condition : textId < 0");
            }
            var limit = reader.ReadShort();

            parameters = new string[limit];
            for (int i = 0; i < limit; i++)
            {
                (parameters as string[])[i] = reader.ReadUTF();
            }
        }
コード例 #40
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     targetId          = reader.ReadInt();
     destinationCellId = reader.ReadShort();
     if (destinationCellId < -1 || destinationCellId > 559)
     {
         throw new Exception("Forbidden value on destinationCellId = " + destinationCellId + ", it doesn't respect the following condition : destinationCellId < -1 || destinationCellId > 559");
     }
     critical = reader.ReadSByte();
     if (critical < 0)
     {
         throw new Exception("Forbidden value on critical = " + critical + ", it doesn't respect the following condition : critical < 0");
     }
     silentCast = reader.ReadBoolean();
 }
コード例 #41
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.id = reader.ReadSByte();

            if (this.id < 0)
            {
                throw new Exception("Forbidden value on id = " + this.id + ", it doesn't respect the following condition : id < 0");
            }
            this.teamId = reader.ReadSByte();

            if (this.teamId < 0)
            {
                throw new Exception("Forbidden value on teamId = " + this.teamId + ", it doesn't respect the following condition : teamId < 0");
            }
            this.nbTurnBeforeNextWave = reader.ReadShort();
        }
コード例 #42
0
        public override void Deserialize(ICustomDataInput reader)
        {
            sellerId = reader.ReadVarUhInt();
            if (sellerId < 0)
            {
                throw new Exception("Forbidden value on sellerId = " + sellerId + ", it doesn't respect the following condition : sellerId < 0");
            }
            var limit = reader.ReadShort();

            objectsInfos = new Types.ObjectItemToSellInHumanVendorShop[limit];
            for (int i = 0; i < limit; i++)
            {
                (objectsInfos as Types.ObjectItemToSellInHumanVendorShop[])[i] = new Types.ObjectItemToSellInHumanVendorShop();
                (objectsInfos as Types.ObjectItemToSellInHumanVendorShop[])[i].Deserialize(reader);
            }
        }
コード例 #43
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            var countItems = reader.ReadShort();

            Items = new List <ItemForPreset>();
            for (short i = 0; i < countItems; i++)
            {
                ItemForPreset type = new ItemForPreset();
                type.Deserialize(reader);
                Items.Add(type);
            }
            MountEquipped = reader.ReadBoolean();
            Look          = new EntityLook();
            Look.Deserialize(reader);
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            this.targetId = reader.ReadDouble();

            if (this.targetId < -9007199254740990 || this.targetId > 9007199254740990)
            {
                throw new Exception("Forbidden value on targetId = " + this.targetId + ", it doesn't respect the following condition : targetId < -9007199254740990 || targetId > 9007199254740990");
            }
            this.cellId = reader.ReadShort();

            if (this.cellId < -1 || this.cellId > 559)
            {
                throw new Exception("Forbidden value on cellId = " + this.cellId + ", it doesn't respect the following condition : cellId < -1 || cellId > 559");
            }
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            idolSource = reader.ReadSByte();
            if (idolSource < 0)
            {
                throw new Exception("Forbidden value on idolSource = " + idolSource + ", it doesn't respect the following condition : idolSource < 0");
            }
            var limit = reader.ReadShort();

            idols = new Types.Idol[limit];
            for (int i = 0; i < limit; i++)
            {
                (idols as Types.Idol[])[i] = Types.ProtocolTypeManager.GetInstance <Types.Idol>(reader.ReadShort());
                (idols as Types.Idol[])[i].Deserialize(reader);
            }
        }
コード例 #46
0
        public override 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");
            }
            var limit = reader.ReadShort();

            parameters = new string[limit];
            for (int i = 0; i < limit; i++)
            {
                (parameters as string[])[i] = reader.ReadUTF();
            }
            forceOpen = reader.ReadBoolean();
        }
コード例 #47
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            type = reader.ReadSByte();
            if (type < 0)
            {
                throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
            }
            var limit = reader.ReadShort();

            coords = new Types.MapCoordinatesExtended[limit];
            for (int i = 0; i < limit; i++)
            {
                (coords as Types.MapCoordinatesExtended[])[i] = new Types.MapCoordinatesExtended();
                (coords as Types.MapCoordinatesExtended[])[i].Deserialize(reader);
            }
        }
コード例 #48
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.accountId = reader.ReadInt();

            if (this.accountId < 0)
            {
                throw new Exception("Forbidden value on accountId = " + this.accountId + ", it doesn't respect the following condition : accountId < 0");
            }
            this.playerId = reader.ReadVarUhLong();

            if (this.playerId < 0 || this.playerId > 9007199254740990)
            {
                throw new Exception("Forbidden value on playerId = " + this.playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
            }
            this.status = ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadShort());
            this.status.Deserialize(reader);
        }
コード例 #49
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            nbcollectorMax = reader.ReadSByte();
            if (nbcollectorMax < 0)
            {
                throw new Exception("Forbidden value on nbcollectorMax = " + nbcollectorMax + ", it doesn't respect the following condition : nbcollectorMax < 0");
            }
            var limit = reader.ReadShort();

            fightersInformations = new Types.TaxCollectorFightersInformation[limit];
            for (int i = 0; i < limit; i++)
            {
                (fightersInformations as Types.TaxCollectorFightersInformation[])[i] = new Types.TaxCollectorFightersInformation();
                (fightersInformations as Types.TaxCollectorFightersInformation[])[i].Deserialize(reader);
            }
        }
コード例 #50
0
        public override void Deserialize(ICustomDataInput reader)
        {
            Uid        = reader.ReadInt();
            Title      = reader.ReadUTF();
            Text       = reader.ReadUTF();
            DescUrl    = reader.ReadUTF();
            PictureUrl = reader.ReadUTF();
            var countItems = reader.ReadShort();

            Items = new List <ObjectItemInformationWithQuantity>();
            for (short i = 0; i < countItems; i++)
            {
                ObjectItemInformationWithQuantity type = new ObjectItemInformationWithQuantity();
                type.Deserialize(reader);
                Items.Add(type);
            }
        }
コード例 #51
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadUShort();

            this.keyMovements = new short[limit];
            for (int i = 0; i < limit; i++)
            {
                this.keyMovements[i] = reader.ReadShort();
            }

            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");
            }
        }
コード例 #52
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            level = reader.ReadByte();
            if (level < 1 || level > 200)
            {
                throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 1 || level > 200");
            }
            var limit = reader.ReadShort();

            additional = new Types.FightResultAdditionalData[limit];
            for (int i = 0; i < limit; i++)
            {
                (additional as Types.FightResultAdditionalData[])[i] = Types.ProtocolTypeManager.GetInstance <Types.FightResultAdditionalData>(reader.ReadShort());
                (additional as Types.FightResultAdditionalData[])[i].Deserialize(reader);
            }
        }
コード例 #53
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadUShort();

            this.keyMovements = new short[limit];
            for (int i = 0; i < limit; i++)
            {
                this.keyMovements[i] = reader.ReadShort();
            }

            this.actorId = reader.ReadDouble();

            if (this.actorId < -9007199254740990 || this.actorId > 9007199254740990)
            {
                throw new Exception("Forbidden value on actorId = " + this.actorId + ", it doesn't respect the following condition : actorId < -9007199254740990 || actorId > 9007199254740990");
            }
        }
コード例 #54
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            LastTimeSlotModificationDate          = reader.ReadInt();
            LastTimeSlotModificationAuthorGuildId = reader.ReadVarInt();
            LastTimeSlotModificationAuthorId      = reader.ReadVarLong();
            LastTimeSlotModificationAuthorName    = reader.ReadUTF();
            var countModulesObjects = reader.ReadShort();

            ModulesObjects = new List <ObjectItem>();
            for (short i = 0; i < countModulesObjects; i++)
            {
                ObjectItem type = new ObjectItem();
                type.Deserialize(reader);
                ModulesObjects.Add(type);
            }
        }
コード例 #55
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            nbWaves = reader.ReadSByte();
            if (nbWaves < 0)
            {
                throw new Exception("Forbidden value on nbWaves = " + nbWaves + ", it doesn't respect the following condition : nbWaves < 0");
            }
            var limit = reader.ReadShort();

            alternatives = new Types.GroupMonsterStaticInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                (alternatives as Types.GroupMonsterStaticInformations[])[i] = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
                (alternatives as Types.GroupMonsterStaticInformations[])[i].Deserialize(reader);
            }
        }
コード例 #56
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadShort();

            servers = new Types.GameServerInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                (servers as Types.GameServerInformations[])[i] = new Types.GameServerInformations();
                (servers as Types.GameServerInformations[])[i].Deserialize(reader);
            }
            alreadyConnectedToServerId = reader.ReadVarUhShort();
            if (alreadyConnectedToServerId < 0)
            {
                throw new Exception("Forbidden value on alreadyConnectedToServerId = " + alreadyConnectedToServerId + ", it doesn't respect the following condition : alreadyConnectedToServerId < 0");
            }
            canCreateNewCharacter = reader.ReadBoolean();
        }
コード例 #57
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            sellType = reader.ReadSByte();
            if (sellType < 0)
            {
                throw new Exception("Forbidden value on sellType = " + sellType + ", it doesn't respect the following condition : sellType < 0");
            }
            var limit = reader.ReadShort();

            options = new Types.HumanOption[limit];
            for (int i = 0; i < limit; i++)
            {
                (options as Types.HumanOption[])[i] = Types.ProtocolTypeManager.GetInstance <Types.HumanOption>(reader.ReadShort());
                (options as Types.HumanOption[])[i].Deserialize(reader);
            }
        }
コード例 #58
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            objectGID = reader.ReadVarUhShort();
            if (objectGID < 0)
            {
                throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0");
            }
            var limit = reader.ReadShort();

            effects = new Types.ObjectEffect[limit];
            for (int i = 0; i < limit; i++)
            {
                (effects as Types.ObjectEffect[])[i] = Types.ProtocolTypeManager.GetInstance <Types.ObjectEffect>(reader.ReadShort());
                (effects as Types.ObjectEffect[])[i].Deserialize(reader);
            }
        }
コード例 #59
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            stepId = reader.ReadVarUhShort();
            if (stepId < 0)
            {
                throw new Exception("Forbidden value on stepId = " + stepId + ", it doesn't respect the following condition : stepId < 0");
            }
            var limit = reader.ReadShort();

            objectives = new Types.QuestObjectiveInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                (objectives as Types.QuestObjectiveInformations[])[i] = Types.ProtocolTypeManager.GetInstance <Types.QuestObjectiveInformations>(reader.ReadShort());
                (objectives as Types.QuestObjectiveInformations[])[i].Deserialize(reader);
            }
        }
コード例 #60
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte flag1 = reader.ReadByte();

            canBeCancelled          = BooleanByteWrapper.GetFlag(flag1, 0);
            canSayReady             = BooleanByteWrapper.GetFlag(flag1, 1);
            isFightStarted          = BooleanByteWrapper.GetFlag(flag1, 2);
            timeMaxBeforeFightStart = reader.ReadShort();
            if (timeMaxBeforeFightStart < 0)
            {
                throw new Exception("Forbidden value on timeMaxBeforeFightStart = " + timeMaxBeforeFightStart + ", it doesn't respect the following condition : timeMaxBeforeFightStart < 0");
            }
            fightType = reader.ReadSByte();
            if (fightType < 0)
            {
                throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
            }
        }