Example #1
0
File: World.cs Project: Naxp/mooege
        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);
        }
Example #2
0
 public BannerParams(MpqFileStream stream)
 {
     stream.Position += 8;
     this.TexBackgrounds = stream.ReadSerializedData<BannerTexturePair>();
     this.I0 = stream.ReadValueS32(); //16
     stream.Position += 12;
     this.TexPatterns = stream.ReadSerializedData<BannerTexturePair>();
     this.I0 = stream.ReadValueS32(); //40
     stream.Position += 12;
     this.TexMainSigils = stream.ReadSerializedData<BannerTexturePair>();
     stream.Position += 8;
     this.TexVariantSigils = stream.ReadSerializedData<BannerTexturePair>();
     this.I0 = stream.ReadValueS32(); //80
     stream.Position += 12;
     this.TexSigilAccents = stream.ReadSerializedData<BannerTexturePair>();
     this.I0 = stream.ReadValueS32(); //104
     stream.Position += 12;
     this.ColorSets = stream.ReadSerializedData<BannerColorSet>();
     stream.Position += 8;
     this.SNOActorBases = stream.ReadSerializedInts();
     stream.Position += 8;
     this.SNOActorCaps = stream.ReadSerializedInts();
     stream.Position += 8;
     this.SNOActorPoles = stream.ReadSerializedInts();
     stream.Position += 8;
     this.SNOActorRibbons = stream.ReadSerializedInts();
 }
Example #3
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>();
        }
Example #4
0
 public AttributeSpecifier(MpqFileStream stream)
 {
     this.AttributeId = stream.ReadValueS32();
     this.SNOParam = stream.ReadValueS32();
     stream.Position += 8;
     this.Formula = stream.ReadSerializedInts();
 }
Example #5
0
 public BuffDef(MpqFileStream stream)
 {
     BuffFilterPowers = stream.ReadSerializedInts();
 }