Exemplo n.º 1
0
 public void Read(MpqFileStream stream)
 {
     this.Name        = stream.ReadString(128, true);
     CommandType      = stream.ReadValueS32();
     this.TagMap      = stream.ReadSerializedItem <TagMap>();
     stream.Position += (3 * 4);
 }
Exemplo n.º 2
0
        public void Read(MpqFileStream stream)
        {
            ExitDirectionBits = stream.ReadValueS32();
            TileType          = stream.ReadValueS32();
            SNOScene          = stream.ReadValueS32();
            Probability       = stream.ReadValueS32();
            this.TagMap       = stream.ReadSerializedItem <TagMap>();

            stream.Position += (2 * 4);
            CustomTileInfo   = new CustomTileInfo(stream);
        }
Exemplo n.º 3
0
        public void Read(MpqFileStream stream)
        {
            Int0        = stream.ReadValueS32();
            Int1        = stream.ReadValueS32();
            SNOScene    = stream.ReadValueS32();
            Int2        = stream.ReadValueS32();
            this.TagMap = stream.ReadSerializedItem <TagMap>();

            stream.Position += (2 * 4);
            CustomTileInfo   = new CustomTileInfo(stream);
        }
Exemplo n.º 4
0
 public void Read(MpqFileStream stream)
 {
     this.Name             = stream.ReadString(128, true);
     this.Type             = (MarkerType)stream.ReadValueS32();
     this.PRTransform      = new PRTransform(stream);
     this.SNOHandle        = new SNOHandle(stream);
     this.TagMap           = stream.ReadSerializedItem <TagMap>();
     stream.Position      += 8;
     this.MarkerLinksCount = stream.ReadValueS32();
     this.MarkerLinks      = stream.ReadSerializedData <MarkerLink>();
     stream.Position      += (3 * 4);
 }
Exemplo n.º 5
0
        public void Read(MpqFileStream stream)
        {
            Tiles = stream.ReadSerializedData <TileInfo>();

            stream.Position  += (14 * 4);
            this.CommandCount = stream.ReadValueS32();
            this.Commands     = stream.ReadSerializedData <DRLGCommand>();

            stream.Position   += (3 * 4);
            this.ParentIndices = stream.ReadSerializedInts();

            stream.Position += (2 * 4);
            this.TagMap      = stream.ReadSerializedItem <TagMap>();
            stream.Position += (2 * 4);
        }
Exemplo n.º 6
0
 public void Read(MpqFileStream stream)
 {
     this.DRLGParams      = stream.ReadSerializedData <DRLGParams>();
     stream.Position     += 8;
     this.SceneParams     = stream.ReadSerializedItem <SceneParams>();
     stream.Position     += 8;
     LabelRuleSet         = new LabelRuleSet(stream);
     this.Int1            = stream.ReadValueS32();
     this.SceneClusterSet = new SceneClusterSet(stream);
     for (int i = 0; i < SNONavMeshFunctions.Length; i++)
     {
         SNONavMeshFunctions[i] = stream.ReadValueS32();
     }
     SNOScript = stream.ReadValueS32();
     Int2      = stream.ReadValueS32();
 }
Exemplo n.º 7
0
        public void Read(MpqFileStream stream)
        {
            var pointer = stream.GetSerializedDataPointer();

            this.DRLGTiles = stream.ReadSerializedData <TileInfo>(pointer, pointer.Size / 72);

            stream.Position  += (14 * 4);
            this.CommandCount = stream.ReadValueS32();
            this.DRLGCommands = stream.ReadSerializedData <DRLGCommand>(this.CommandCount);

            stream.Position   += (3 * 4);
            this.ParentIndices = stream.ReadSerializedInts();

            stream.Position += (2 * 4);
            this.DRLGTagMap  = stream.ReadSerializedItem <TagMap>();
        }
Exemplo n.º 8
0
        public void Read(MpqFileStream stream)
        {
            this.Name        = stream.ReadString(128, true);
            this.Type        = (MarkerType)stream.ReadValueS32();
            this.PRTransform = new PRTransform(stream);
            this.SNOHandle   = new SNOHandle(stream);

            this.TagMap = stream.ReadSerializedItem <TagMap>();

            // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
            // IntTagMap && Int2 are always 0 for beta. leave it here only because xml does not match either -farmy
            this.IntTagMap = stream.ReadValueS32();
            Int1           = stream.ReadValueS32();
            var int2 = stream.ReadValueS32();

            this.MarkerLinks = stream.ReadSerializedData <MarkerLink>();
            stream.Position += (3 * 4);
        }
Exemplo n.º 9
0
        public List <BuffDef> Buffs = new List <BuffDef>(); //4

        public PowerDef(MpqFileStream stream)
        {
            TagMap            = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            GeneralTagMap     = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            PVPGeneralTagMap  = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            ContactTagMap0    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap1    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap2    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap3    = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (8 * 4);
            PVPContactTagMap0 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap1 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap2 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap3 = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (8 * 4);
            I0               = stream.ReadValueS32();
            ActColFlags1     = new ActorCollisionFlags(stream);
            ActColFlags2     = new ActorCollisionFlags(stream);
            stream.Position += 4;
            for (int i = 0; i < 4; i++)
            {
                Buffs.Add(new BuffDef(stream));
                stream.Position += (2 * 4);
            }
        }