Exemple #1
0
        public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                StatedElement statedElement = new StatedElement();
                statedElement.Deserialize(reader);
                this.statedElements.Add(statedElement);
            }
        }
Exemple #2
0
        public override void Deserialize(IDataReader reader)
        {
            var StatedElementsCount = reader.ReadShort();

            StatedElements = new List <StatedElement>();
            for (var i = 0; i < StatedElementsCount; i++)
            {
                var objectToAdd = new StatedElement();
                objectToAdd.Deserialize(reader);
                StatedElements.Add(objectToAdd);
            }
        }
Exemple #3
0
        public override void Deserialize(IDataReader reader)
        {
            var statedElementsCount = reader.ReadUShort();

            StatedElements = new List <StatedElement>();
            for (var statedElementsIndex = 0; statedElementsIndex < statedElementsCount; statedElementsIndex++)
            {
                var objectToAdd = new StatedElement();
                objectToAdd.Deserialize(reader);
                StatedElements.Add(objectToAdd);
            }
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            var countStatedElements = reader.ReadShort();

            StatedElements = new List <StatedElement>();
            for (short i = 0; i < countStatedElements; i++)
            {
                StatedElement type = new StatedElement();
                type.Deserialize(reader);
                StatedElements.Add(type);
            }
        }
Exemple #5
0
        public override void Deserialize(IDataReader 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);
            }
        }
Exemple #6
0
 public override void Deserialize(ICustomDataInput reader)
 {
     m_statedElement = new StatedElement();
     m_statedElement.Deserialize(reader);
 }
        public override void Deserialize(ICustomDataInput reader)
        {
            SubAreaId = reader.ReadVarShort();
            MapId     = reader.ReadDouble();
            var countHouses = reader.ReadShort();

            Houses = new List <HouseInformations>();
            for (short i = 0; i < countHouses; i++)
            {
                var housestypeId       = reader.ReadShort();
                HouseInformations type = new HouseInformations();
                type.Deserialize(reader);
                Houses.Add(type);
            }
            var countActors = reader.ReadShort();

            Actors = new List <GameRolePlayActorInformations>();
            for (short i = 0; i < countActors; i++)
            {
                var actorstypeId = reader.ReadShort();
                GameRolePlayActorInformations type = new GameRolePlayActorInformations();
                type.Deserialize(reader);
                Actors.Add(type);
            }
            var countInteractiveElements = reader.ReadShort();

            InteractiveElements = new List <InteractiveElement>();
            for (short i = 0; i < countInteractiveElements; i++)
            {
                var interactiveElementstypeId = reader.ReadShort();
                InteractiveElement type       = new InteractiveElement();
                type.Deserialize(reader);
                InteractiveElements.Add(type);
            }
            var countStatedElements = reader.ReadShort();

            StatedElements = new List <StatedElement>();
            for (short i = 0; i < countStatedElements; i++)
            {
                StatedElement type = new StatedElement();
                type.Deserialize(reader);
                StatedElements.Add(type);
            }
            var countObstacles = reader.ReadShort();

            Obstacles = new List <MapObstacle>();
            for (short i = 0; i < countObstacles; i++)
            {
                MapObstacle type = new MapObstacle();
                type.Deserialize(reader);
                Obstacles.Add(type);
            }
            var countFights = reader.ReadShort();

            Fights = new List <FightCommonInformations>();
            for (short i = 0; i < countFights; i++)
            {
                FightCommonInformations type = new FightCommonInformations();
                type.Deserialize(reader);
                Fights.Add(type);
            }
            HasAggressiveMonsters = reader.ReadBoolean();
            FightStartPositions   = new FightStartingPositions();
            FightStartPositions.Deserialize(reader);
        }
Exemple #8
0
 public void Deserialize(IDataReader reader)
 {
     StatedElement = new StatedElement();
     StatedElement.Deserialize(reader);
 }
Exemple #9
0
        public override void Deserialize(IDataReader reader)
        {
            SubAreaId = reader.ReadVarUhShort();
            MapId     = reader.ReadDouble();
            var housesCount = reader.ReadUShort();

            Houses = new List <HouseInformations>();
            for (var housesIndex = 0; housesIndex < housesCount; housesIndex++)
            {
                var objectToAdd = ProtocolTypeManager.GetInstance <HouseInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Houses.Add(objectToAdd);
            }
            var actorsCount = reader.ReadUShort();

            Actors = new List <GameRolePlayActorInformations>();
            for (var actorsIndex = 0; actorsIndex < actorsCount; actorsIndex++)
            {
                var objectToAdd = ProtocolTypeManager.GetInstance <GameRolePlayActorInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Actors.Add(objectToAdd);
            }
            var interactiveElementsCount = reader.ReadUShort();

            InteractiveElements = new List <InteractiveElement>();
            for (var interactiveElementsIndex = 0; interactiveElementsIndex < interactiveElementsCount; interactiveElementsIndex++)
            {
                var objectToAdd = ProtocolTypeManager.GetInstance <InteractiveElement>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                InteractiveElements.Add(objectToAdd);
            }
            var statedElementsCount = reader.ReadUShort();

            StatedElements = new List <StatedElement>();
            for (var statedElementsIndex = 0; statedElementsIndex < statedElementsCount; statedElementsIndex++)
            {
                var objectToAdd = new StatedElement();
                objectToAdd.Deserialize(reader);
                StatedElements.Add(objectToAdd);
            }
            var obstaclesCount = reader.ReadUShort();

            Obstacles = new List <MapObstacle>();
            for (var obstaclesIndex = 0; obstaclesIndex < obstaclesCount; obstaclesIndex++)
            {
                var objectToAdd = new MapObstacle();
                objectToAdd.Deserialize(reader);
                Obstacles.Add(objectToAdd);
            }
            var fightsCount = reader.ReadUShort();

            Fights = new List <FightCommonInformations>();
            for (var fightsIndex = 0; fightsIndex < fightsCount; fightsIndex++)
            {
                var objectToAdd = new FightCommonInformations();
                objectToAdd.Deserialize(reader);
                Fights.Add(objectToAdd);
            }
            HasAggressiveMonsters = reader.ReadBoolean();
            FightStartPositions   = new FightStartingPositions();
            FightStartPositions.Deserialize(reader);
        }
        public override void Deserialize(IDataReader reader)
        {
            SubAreaId = reader.ReadVarUhShort();
            MapId     = (uint)reader.ReadDouble();
            var HousesCount = reader.ReadShort();

            Houses = new List <HouseInformations>();
            for (var i = 0; i < HousesCount; i++)
            {
                HouseInformations objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Houses.Add(objectToAdd);
            }
            var ActorsCount = reader.ReadShort();

            Actors = new List <GameRolePlayActorInformations>();
            for (var i = 0; i < ActorsCount; i++)
            {
                GameRolePlayActorInformations objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Actors.Add(objectToAdd);
            }
            var InteractiveElementsCount = reader.ReadShort();

            InteractiveElements = new List <InteractiveElement>();
            for (var i = 0; i < InteractiveElementsCount; i++)
            {
                InteractiveElement objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                InteractiveElements.Add(objectToAdd);
            }
            var StatedElementsCount = reader.ReadShort();

            StatedElements = new List <StatedElement>();
            for (var i = 0; i < StatedElementsCount; i++)
            {
                var objectToAdd = new StatedElement();
                objectToAdd.Deserialize(reader);
                StatedElements.Add(objectToAdd);
            }
            var ObstaclesCount = reader.ReadShort();

            Obstacles = new List <MapObstacle>();
            for (var i = 0; i < ObstaclesCount; i++)
            {
                var objectToAdd = new MapObstacle();
                objectToAdd.Deserialize(reader);
                Obstacles.Add(objectToAdd);
            }
            var FightsCount = reader.ReadShort();

            Fights = new List <FightCommonInformations>();
            for (var i = 0; i < FightsCount; i++)
            {
                var objectToAdd = new FightCommonInformations();
                objectToAdd.Deserialize(reader);
                Fights.Add(objectToAdd);
            }
            HasAggressiveMonsters = reader.ReadBoolean();
            FightStartPositions   = new FightStartingPositions();
            FightStartPositions.Deserialize(reader);
        }
Exemple #11
0
 public override void Deserialize(IDataReader reader)
 {
     m_statedElement = new StatedElement();
     m_statedElement.Deserialize(reader);
 }
        public override void Deserialize(IDataReader reader)
        {
            this.subAreaId = (uint)reader.ReadVarUhShort();
            if (this.subAreaId < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.subAreaId + ") on element of MapComplementaryInformationsDataMessage.subAreaId.");
            }
            this.mapId = reader.ReadDouble();
            if (this.mapId < 0.0 || this.mapId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.mapId + ") on element of MapComplementaryInformationsDataMessage.mapId.");
            }
            uint num1 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num1; ++index)
            {
                HouseInformations instance = ProtocolTypeManager.GetInstance <HouseInformations>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.houses.Add(instance);
            }
            uint num2 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num2; ++index)
            {
                GameRolePlayActorInformations instance = ProtocolTypeManager.GetInstance <GameRolePlayActorInformations>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.actors.Add(instance);
            }
            uint num3 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num3; ++index)
            {
                InteractiveElement instance = ProtocolTypeManager.GetInstance <InteractiveElement>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.interactiveElements.Add(instance);
            }
            uint num4 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num4; ++index)
            {
                StatedElement statedElement = new StatedElement();
                statedElement.Deserialize(reader);
                this.statedElements.Add(statedElement);
            }
            uint num5 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num5; ++index)
            {
                MapObstacle mapObstacle = new MapObstacle();
                mapObstacle.Deserialize(reader);
                this.obstacles.Add(mapObstacle);
            }
            uint num6 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num6; ++index)
            {
                FightCommonInformations commonInformations = new FightCommonInformations();
                commonInformations.Deserialize(reader);
                this.fights.Add(commonInformations);
            }
            this.hasAggressiveMonsters = reader.ReadBoolean();
            this.fightStartPositions   = new FightStartingPositions();
            this.fightStartPositions.Deserialize(reader);
        }
Exemple #13
0
        public override void Deserialize(IDataReader reader)
        {
            m_subAreaId = reader.ReadVarUhShort();
            m_mapId     = reader.ReadInt();
            int housesCount = reader.ReadUShort();
            int housesIndex;

            m_houses = new System.Collections.Generic.List <HouseInformations>();
            for (housesIndex = 0; (housesIndex < housesCount); housesIndex = (housesIndex + 1))
            {
                HouseInformations objectToAdd = ProtocolTypeManager.GetInstance <HouseInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_houses.Add(objectToAdd);
            }

            int actorsCount = reader.ReadUShort();
            int actorsIndex;

            m_actors = new System.Collections.Generic.List <GameRolePlayActorInformations>();
            for (actorsIndex = 0; (actorsIndex < actorsCount); actorsIndex = (actorsIndex + 1))
            {
                GameRolePlayActorInformations objectToAdd = ProtocolTypeManager.GetInstance <GameRolePlayActorInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_actors.Add(objectToAdd);
            }
            int interactiveElementsCount = reader.ReadUShort();
            int interactiveElementsIndex;

            m_interactiveElements = new System.Collections.Generic.List <InteractiveElement>();
            for (interactiveElementsIndex = 0; (interactiveElementsIndex < interactiveElementsCount); interactiveElementsIndex = (interactiveElementsIndex + 1))
            {
                InteractiveElement objectToAdd = ProtocolTypeManager.GetInstance <InteractiveElement>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_interactiveElements.Add(objectToAdd);
            }
            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);
            }
            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);
            }
            int fightsCount = reader.ReadUShort();
            int fightsIndex;

            m_fights = new System.Collections.Generic.List <FightCommonInformations>();
            for (fightsIndex = 0; (fightsIndex < fightsCount); fightsIndex = (fightsIndex + 1))
            {
                FightCommonInformations objectToAdd = new FightCommonInformations();
                objectToAdd.Deserialize(reader);
                m_fights.Add(objectToAdd);
            }
            m_hasAggressiveMonsters = reader.ReadBoolean();
            m_fightStartPositions   = new FightStartingPositions();
            m_fightStartPositions.Deserialize(reader);
        }
Exemple #14
0
 public override void Deserialize(ICustomDataInput reader)
 {
     StatedElement_ = new StatedElement();
     StatedElement_.Deserialize(reader);
 }