コード例 #1
0
ファイル: EntityLook.cs プロジェクト: thomasvinot/Symbioz
 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);
     }
 }
コード例 #2
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);
     }
 }
コード例 #3
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();
     }
 }
コード例 #4
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");
 }
コード例 #5
0
 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);
     }
 }
コード例 #6
0
 public override void Deserialize(ICustomDataInput reader)
 {
     position = reader.ReadUShort();
     if ((position < 0) || (position > 65535))
         throw new Exception("Forbidden value on position = " + position + ", it doesn't respect the following condition : (position < 0) || (position > 65535)");
     total = reader.ReadUShort();
     if ((total < 0) || (total > 65535))
         throw new Exception("Forbidden value on total = " + total + ", it doesn't respect the following condition : (total < 0) || (total > 65535)");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     address = reader.ReadUTF();
     port = reader.ReadUShort();
     if ((port < 0) || (port > 65535))
         throw new Exception("Forbidden value on port = " + port + ", it doesn't respect the following condition : (port < 0) || (port > 65535)");
     var limit = reader.ReadUShort();
     ticket = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          (ticket as sbyte[])[i] = reader.ReadSByte();
     }
 }
コード例 #8
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();
     }
 }
コード例 #9
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     targetIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          (targetIds as int[])[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     targetCells = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          (targetCells as short[])[i] = reader.ReadShort();
     }
 }
コード例 #10
0
 public virtual void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     questsToValidId = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (questsToValidId as ushort[])[i] = reader.ReadVarUhShort();
     }
     limit = reader.ReadUShort();
     questsToStartId = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (questsToStartId as ushort[])[i] = reader.ReadVarUhShort();
     }
 }
コード例 #11
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     playerIds = new uint[limit];
     for (int i = 0; i < limit; i++)
     {
          (playerIds as uint[])[i] = reader.ReadVarUhInt();
     }
     limit = reader.ReadUShort();
     enable = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          (enable as sbyte[])[i] = reader.ReadSByte();
     }
 }
コード例 #12
0
 public override void Deserialize(ICustomDataInput reader)
 {
     byte flag1 = reader.ReadByte();
     tutorialAvailable = BooleanByteWrapper.GetFlag(flag1, 0);
     canCreateNewCharacter = BooleanByteWrapper.GetFlag(flag1, 1);
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     breedsVisible = reader.ReadUShort();
     if ((breedsVisible < 0) || (breedsVisible > 65535))
         throw new Exception("Forbidden value on breedsVisible = " + breedsVisible + ", it doesn't respect the following condition : (breedsVisible < 0) || (breedsVisible > 65535)");
     breedsAvailable = reader.ReadUShort();
     if ((breedsAvailable < 0) || (breedsAvailable > 65535))
         throw new Exception("Forbidden value on breedsAvailable = " + breedsAvailable + ", it doesn't respect the following condition : (breedsAvailable < 0) || (breedsAvailable > 65535)");
     status = reader.ReadSByte();
 }
コード例 #13
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();
 }
コード例 #14
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");
 }
コード例 #15
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);
     }
 }
コード例 #16
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     finishedAchievementsIds = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (finishedAchievementsIds as ushort[])[i] = reader.ReadVarUhShort();
     }
     limit = reader.ReadUShort();
     rewardableAchievements = new Types.AchievementRewardable[limit];
     for (int i = 0; i < limit; i++)
     {
          (rewardableAchievements as Types.AchievementRewardable[])[i] = new Types.AchievementRewardable();
          (rewardableAchievements as Types.AchievementRewardable[])[i].Deserialize(reader);
     }
 }
コード例 #17
0
 public override void Deserialize(ICustomDataInput reader)
 {
     serverId = reader.ReadVarUhShort();
     if (serverId < 0)
         throw new Exception("Forbidden value on serverId = " + serverId + ", it doesn't respect the following condition : serverId < 0");
     address = reader.ReadUTF();
     port = reader.ReadUShort();
     if ((port < 0) || (port > 65535))
         throw new Exception("Forbidden value on port = " + port + ", it doesn't respect the following condition : (port < 0) || (port > 65535)");
     canCreateNewCharacter = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     ticket = new byte[limit];
     for (int i = 0; i < limit; i++)
     {
          (ticket as byte[])[i] = reader.ReadByte();
     }
 }
コード例 #18
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     emoteIds = new byte[limit];
     for (int i = 0; i < limit; i++)
     {
          (emoteIds as byte[])[i] = reader.ReadByte();
     }
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     typeDescription = new uint[limit];
     for (int i = 0; i < limit; i++)
     {
          (typeDescription as uint[])[i] = reader.ReadVarUhInt();
     }
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     objectIdList = new uint[limit];
     for (int i = 0; i < limit; i++)
     {
          (objectIdList as uint[])[i] = reader.ReadVarUhInt();
     }
 }
コード例 #21
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     data = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          (data as sbyte[])[i] = reader.ReadSByte();
     }
 }
コード例 #22
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     dungeonIds = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (dungeonIds as ushort[])[i] = reader.ReadVarUhShort();
     }
 }
コード例 #23
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     positionsForChallengers = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (positionsForChallengers as ushort[])[i] = reader.ReadVarUhShort();
     }
     limit = reader.ReadUShort();
     positionsForDefenders = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (positionsForDefenders as ushort[])[i] = reader.ReadVarUhShort();
     }
     teamNumber = reader.ReadSByte();
     if (teamNumber < 0)
         throw new Exception("Forbidden value on teamNumber = " + teamNumber + ", it doesn't respect the following condition : teamNumber < 0");
 }
コード例 #24
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);
     }
 }
コード例 #25
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     flags = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          (flags as int[])[i] = reader.ReadVarInt();
     }
 }
コード例 #26
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     movements = new Types.EntityMovementInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (movements as Types.EntityMovementInformations[])[i] = new Types.EntityMovementInformations();
          (movements as Types.EntityMovementInformations[])[i].Deserialize(reader);
     }
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     itemTypeDescriptions = new Types.BidExchangerObjectInfo[limit];
     for (int i = 0; i < limit; i++)
     {
          (itemTypeDescriptions as Types.BidExchangerObjectInfo[])[i] = new Types.BidExchangerObjectInfo();
          (itemTypeDescriptions as Types.BidExchangerObjectInfo[])[i].Deserialize(reader);
     }
 }
コード例 #28
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     statedElements = new Types.StatedElement[limit];
     for (int i = 0; i < limit; i++)
     {
          (statedElements as Types.StatedElement[])[i] = new Types.StatedElement();
          (statedElements as Types.StatedElement[])[i].Deserialize(reader);
     }
 }
コード例 #29
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     var limit = reader.ReadUShort();
     tacklersIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          (tacklersIds as int[])[i] = reader.ReadInt();
     }
 }
コード例 #30
0
 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     listEntries = new Types.JobCrafterDirectoryListEntry[limit];
     for (int i = 0; i < limit; i++)
     {
          (listEntries as Types.JobCrafterDirectoryListEntry[])[i] = new Types.JobCrafterDirectoryListEntry();
          (listEntries as Types.JobCrafterDirectoryListEntry[])[i].Deserialize(reader);
     }
 }
コード例 #31
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int informationsListCount = reader.ReadUShort();
            int informationsListIndex;

            m_informationsList = new System.Collections.Generic.List <GameRolePlayActorInformations>();
            for (informationsListIndex = 0; (informationsListIndex < informationsListCount); informationsListIndex = (informationsListIndex + 1))
            {
                GameRolePlayActorInformations objectToAdd = ProtocolTypeManager.GetInstance <GameRolePlayActorInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_informationsList.Add(objectToAdd);
            }
        }
コード例 #32
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int figuresCount = reader.ReadUShort();
            int figuresIndex;

            m_figures = new System.Collections.Generic.List <KrosmasterFigure>();
            for (figuresIndex = 0; (figuresIndex < figuresCount); figuresIndex = (figuresIndex + 1))
            {
                KrosmasterFigure objectToAdd = new KrosmasterFigure();
                objectToAdd.Deserialize(reader);
                m_figures.Add(objectToAdd);
            }
        }
コード例 #33
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.sellerDescriptor = new SellerBuyerDescriptor();
            this.sellerDescriptor.Deserialize(reader);
            var limit = reader.ReadUShort();

            this.objectsInfos = new ObjectItemToSellInBid[limit];
            for (int i = 0; i < limit; i++)
            {
                this.objectsInfos[i] = new ObjectItemToSellInBid();
                this.objectsInfos[i].Deserialize(reader);
            }
        }
コード例 #34
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int statedElementsCount = reader.ReadUShort();
            int statedElementsIndex;

            m_statedElements = new System.Collections.Generic.List <StatedElement>();
            for (statedElementsIndex = 0; (statedElementsIndex < statedElementsCount); statedElementsIndex = (statedElementsIndex + 1))
            {
                StatedElement objectToAdd = new StatedElement();
                objectToAdd.Deserialize(reader);
                m_statedElements.Add(objectToAdd);
            }
        }
コード例 #35
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            m_playerId = reader.ReadVarUhLong();
            int skillsCount = reader.ReadUShort();
            int skillsIndex;

            m_skills = new System.Collections.Generic.List <ushort>();
            for (skillsIndex = 0; (skillsIndex < skillsCount); skillsIndex = (skillsIndex + 1))
            {
                m_skills.Add(reader.ReadVarUhShort());
            }
        }
コード例 #36
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int objectsInfosCount = reader.ReadUShort();
            int objectsInfosIndex;

            m_objectsInfos = new System.Collections.Generic.List <ObjectItem>();
            for (objectsInfosIndex = 0; (objectsInfosIndex < objectsInfosCount); objectsInfosIndex = (objectsInfosIndex + 1))
            {
                ObjectItem objectToAdd = new ObjectItem();
                objectToAdd.Deserialize(reader);
                m_objectsInfos.Add(objectToAdd);
            }
        }
コード例 #37
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int furnituresInfosCount = reader.ReadUShort();
            int furnituresInfosIndex;

            m_furnituresInfos = new System.Collections.Generic.List <HavenBagFurnitureInformation>();
            for (furnituresInfosIndex = 0; (furnituresInfosIndex < furnituresInfosCount); furnituresInfosIndex = (furnituresInfosIndex + 1))
            {
                HavenBagFurnitureInformation objectToAdd = new HavenBagFurnitureInformation();
                objectToAdd.Deserialize(reader);
                m_furnituresInfos.Add(objectToAdd);
            }
        }
コード例 #38
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int obstaclesCount = reader.ReadUShort();
            int obstaclesIndex;

            m_obstacles = new System.Collections.Generic.List <MapObstacle>();
            for (obstaclesIndex = 0; (obstaclesIndex < obstaclesCount); obstaclesIndex = (obstaclesIndex + 1))
            {
                MapObstacle objectToAdd = new MapObstacle();
                objectToAdd.Deserialize(reader);
                m_obstacles.Add(objectToAdd);
            }
        }
コード例 #39
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int guildsCount = reader.ReadUShort();
            int guildsIndex;

            m_guilds = new System.Collections.Generic.List <GuildVersatileInformations>();
            for (guildsIndex = 0; (guildsIndex < guildsCount); guildsIndex = (guildsIndex + 1))
            {
                GuildVersatileInformations objectToAdd = ProtocolTypeManager.GetInstance <GuildVersatileInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_guilds.Add(objectToAdd);
            }
        }
コード例 #40
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int daresCount = reader.ReadUShort();
            int daresIndex;

            m_dares = new System.Collections.Generic.List <DareInformations>();
            for (daresIndex = 0; (daresIndex < daresCount); daresIndex = (daresIndex + 1))
            {
                DareInformations objectToAdd = new DareInformations();
                objectToAdd.Deserialize(reader);
                m_dares.Add(objectToAdd);
            }
        }
コード例 #41
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int friendsListCount = reader.ReadUShort();
            int friendsListIndex;

            m_friendsList = new System.Collections.Generic.List <FriendInformations>();
            for (friendsListIndex = 0; (friendsListIndex < friendsListCount); friendsListIndex = (friendsListIndex + 1))
            {
                FriendInformations objectToAdd = ProtocolTypeManager.GetInstance <FriendInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_friendsList.Add(objectToAdd);
            }
        }
コード例 #42
0
        public override void Deserialize(ICustomDataInput reader)
        {
            setId = reader.ReadVarUhShort();
            if (setId < 0)
            {
                throw new Exception("Forbidden value on setId = " + setId + ", it doesn't respect the following condition : setId < 0");
            }
            var limit = reader.ReadUShort();

            setObjects = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                setObjects[i] = reader.ReadVarUhShort();
            }
            limit      = reader.ReadUShort();
            setEffects = new Types.ObjectEffect[limit];
            for (int i = 0; i < limit; i++)
            {
                setEffects[i] = ProtocolTypeManager.GetInstance <Types.ObjectEffect>(reader.ReadShort());
                setEffects[i].Deserialize(reader);
            }
        }
コード例 #43
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int idolsCount = reader.ReadUShort();
            int idolsIndex;

            m_idols = new System.Collections.Generic.List <Idol>();
            for (idolsIndex = 0; (idolsIndex < idolsCount); idolsIndex = (idolsIndex + 1))
            {
                Idol objectToAdd = new Idol();
                objectToAdd.Deserialize(reader);
                m_idols.Add(objectToAdd);
            }
        }
コード例 #44
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.collectorName = reader.ReadUTF();
            this.worldX        = reader.ReadShort();

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

            if (this.worldY < -255 || this.worldY > 255)
            {
                throw new Exception("Forbidden value on worldY = " + this.worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
            }
            this.mapId     = reader.ReadInt();
            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.userName = reader.ReadUTF();
            this.callerId = reader.ReadVarUhLong();

            if (this.callerId < 0 || this.callerId > 9007199254740990)
            {
                throw new Exception("Forbidden value on callerId = " + this.callerId + ", it doesn't respect the following condition : callerId < 0 || callerId > 9007199254740990");
            }
            this.callerName = reader.ReadUTF();
            this.experience = reader.ReadDouble();

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

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

            this.objectsInfos = new ObjectItemGenericQuantity[limit];
            for (int i = 0; i < limit; i++)
            {
                this.objectsInfos[i] = new ObjectItemGenericQuantity();
                this.objectsInfos[i].Deserialize(reader);
            }
        }
コード例 #45
0
        public override void Deserialize(ICustomDataInput reader)
        {
            byte flag1 = reader.ReadByte();

            tutorialAvailable     = BooleanByteWrapper.GetFlag(flag1, 0);
            canCreateNewCharacter = BooleanByteWrapper.GetFlag(flag1, 1);
            accountId             = reader.ReadInt();
            if (accountId < 0)
            {
                throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
            }
            breedsVisible = reader.ReadUShort();
            if (breedsVisible < 0 || breedsVisible > 65535)
            {
                throw new Exception("Forbidden value on breedsVisible = " + breedsVisible + ", it doesn't respect the following condition : breedsVisible < 0 || breedsVisible > 65535");
            }
            breedsAvailable = reader.ReadUShort();
            if (breedsAvailable < 0 || breedsAvailable > 65535)
            {
                throw new Exception("Forbidden value on breedsAvailable = " + breedsAvailable + ", it doesn't respect the following condition : breedsAvailable < 0 || breedsAvailable > 65535");
            }
            status = reader.ReadSByte();
        }
コード例 #46
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            id = reader.ReadVarUhShort();
            if (id < 0)
            {
                throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
            }
            var limit = reader.ReadUShort();

            finishedObjective = new Types.AchievementObjective[limit];
            for (int i = 0; i < limit; i++)
            {
                (finishedObjective as Types.AchievementObjective[])[i] = new Types.AchievementObjective();
                (finishedObjective as Types.AchievementObjective[])[i].Deserialize(reader);
            }
            limit             = reader.ReadUShort();
            startedObjectives = new Types.AchievementStartedObjective[limit];
            for (int i = 0; i < limit; i++)
            {
                (startedObjectives as Types.AchievementStartedObjective[])[i] = new Types.AchievementStartedObjective();
                (startedObjectives as Types.AchievementStartedObjective[])[i].Deserialize(reader);
            }
        }
public override void Deserialize(ICustomDataInput reader)
{

base.Deserialize(reader);
            var limit = reader.ReadUShort();
            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);
            }
            

}
コード例 #48
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int bidHouseItemsCount = reader.ReadUShort();
            int bidHouseItemsIndex;

            m_bidHouseItems = new System.Collections.Generic.List <ObjectItemGenericQuantityPrice>();
            for (bidHouseItemsIndex = 0; (bidHouseItemsIndex < bidHouseItemsCount); bidHouseItemsIndex = (bidHouseItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                m_bidHouseItems.Add(objectToAdd);
            }
            int merchantItemsCount = reader.ReadUShort();
            int merchantItemsIndex;

            m_merchantItems = new System.Collections.Generic.List <ObjectItemGenericQuantityPrice>();
            for (merchantItemsIndex = 0; (merchantItemsIndex < merchantItemsCount); merchantItemsIndex = (merchantItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                m_merchantItems.Add(objectToAdd);
            }
        }
コード例 #49
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            int datasCount = reader.ReadUShort();
            int datasIndex;

            m_datas = new System.Collections.Generic.List <StatisticData>();
            for (datasIndex = 0; (datasIndex < datasCount); datasIndex = (datasIndex + 1))
            {
                StatisticData objectToAdd = ProtocolTypeManager.GetInstance <StatisticData>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_datas.Add(objectToAdd);
            }
        }
public override void Deserialize(ICustomDataInput reader)
{

base.Deserialize(reader);
            var limit = reader.ReadUShort();
            namedPartyTeams = new Types.NamedPartyTeam[limit];
            for (int i = 0; i < limit; i++)
            {
                 (namedPartyTeams as Types.NamedPartyTeam[])[i] = new Types.NamedPartyTeam();
                 (namedPartyTeams as Types.NamedPartyTeam[])[i].Deserialize(reader);
            }
            

}
        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();

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

            chosenIdols = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                chosenIdols[i] = reader.ReadVarUhShort();
            }
            limit            = reader.ReadUShort();
            partyChosenIdols = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                partyChosenIdols[i] = reader.ReadVarUhShort();
            }
            limit      = reader.ReadUShort();
            partyIdols = new Types.PartyIdol[limit];
            for (int i = 0; i < limit; i++)
            {
                partyIdols[i] = ProtocolTypeManager.GetInstance <Types.PartyIdol>(reader.ReadShort());
                partyIdols[i].Deserialize(reader);
            }
        }
コード例 #53
0
ファイル: JobDescription.cs プロジェクト: Teles1/Cookie
        public override void Deserialize(ICustomDataInput reader)
        {
            JobId = reader.ReadByte();
            var countSkills = reader.ReadShort();

            Skills = new List <SkillActionDescription>();
            for (short i = 0; i < countSkills; i++)
            {
                var skillstypeId            = reader.ReadUShort();
                SkillActionDescription type = ProtocolTypeManager.GetInstance <SkillActionDescription>(Convert.ToInt16(skillstypeId));
                type.Deserialize(reader);
                Skills.Add(type);
            }
        }
コード例 #54
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int monstersCount = reader.ReadUShort();
            int monstersIndex;

            m_monsters = new System.Collections.Generic.List <MonsterInGroupLightInformations>();
            for (monstersIndex = 0; (monstersIndex < monstersCount); monstersIndex = (monstersIndex + 1))
            {
                MonsterInGroupLightInformations objectToAdd = new MonsterInGroupLightInformations();
                objectToAdd.Deserialize(reader);
                m_monsters.Add(objectToAdd);
            }
            m_playerCount = reader.ReadInt();
        }
コード例 #55
0
        public override void Deserialize(ICustomDataInput reader)
        {
            m_spellPrevisualization = reader.ReadBoolean();
            int spellsCount = reader.ReadUShort();
            int spellsIndex;

            m_spells = new System.Collections.Generic.List <SpellItem>();
            for (spellsIndex = 0; (spellsIndex < spellsCount); spellsIndex = (spellsIndex + 1))
            {
                SpellItem objectToAdd = new SpellItem();
                objectToAdd.Deserialize(reader);
                m_spells.Add(objectToAdd);
            }
        }
コード例 #56
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            objectUID = reader.ReadVarUhInt();
            if (objectUID < 0)
            {
                throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0");
            }
            bonusMin = reader.ReadFloat();
            bonusMax = reader.ReadFloat();
            var limit = reader.ReadUShort();

            runesId = new ushort[limit];
            for (int i = 0; i < limit; i++)
            {
                (runesId as ushort[])[i] = reader.ReadVarUhShort();
            }
            limit    = reader.ReadUShort();
            runesQty = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                (runesQty as uint[])[i] = reader.ReadVarUhInt();
            }
        }
コード例 #57
0
        public virtual void Deserialize(ICustomDataInput reader)
        {
            this.restrictions = new ActorRestrictionsInformations();
            this.restrictions.Deserialize(reader);
            this.sex = reader.ReadBoolean();
            var limit = reader.ReadUShort();

            this.options = new HumanOption[limit];
            for (int i = 0; i < limit; i++)
            {
                this.options[i] = ProtocolTypeManager.GetInstance <HumanOption>(reader.ReadShort());
                this.options[i].Deserialize(reader);
            }
        }
コード例 #58
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            int summonsCount = reader.ReadUShort();
            int summonsIndex;

            m_summons = new System.Collections.Generic.List <GameFightFighterInformations>();
            for (summonsIndex = 0; (summonsIndex < summonsCount); summonsIndex = (summonsIndex + 1))
            {
                GameFightFighterInformations objectToAdd = ProtocolTypeManager.GetInstance <GameFightFighterInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_summons.Add(objectToAdd);
            }
        }
コード例 #59
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            int slavesInfoCount = reader.ReadUShort();
            int slavesInfoIndex;

            m_slavesInfo = new System.Collections.Generic.List <GameFightResumeSlaveInfo>();
            for (slavesInfoIndex = 0; (slavesInfoIndex < slavesInfoCount); slavesInfoIndex = (slavesInfoIndex + 1))
            {
                GameFightResumeSlaveInfo objectToAdd = new GameFightResumeSlaveInfo();
                objectToAdd.Deserialize(reader);
                m_slavesInfo.Add(objectToAdd);
            }
        }
コード例 #60
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            int paddockedMountsDescriptionCount = reader.ReadUShort();
            int paddockedMountsDescriptionIndex;

            m_paddockedMountsDescription = new System.Collections.Generic.List <MountClientData>();
            for (paddockedMountsDescriptionIndex = 0; (paddockedMountsDescriptionIndex < paddockedMountsDescriptionCount); paddockedMountsDescriptionIndex = (paddockedMountsDescriptionIndex + 1))
            {
                MountClientData objectToAdd = new MountClientData();
                objectToAdd.Deserialize(reader);
                m_paddockedMountsDescription.Add(objectToAdd);
            }
        }