コード例 #1
0
ファイル: World.cs プロジェクト: 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);
        }
コード例 #2
0
ファイル: Globals.cs プロジェクト: ncoop23/mooege
 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();
 }
コード例 #3
0
ファイル: World.cs プロジェクト: mstaJ/mooege
        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>();
        }
コード例 #4
0
ファイル: GameBalance.cs プロジェクト: Im2ortal/mooege
 public AttributeSpecifier(MpqFileStream stream)
 {
     this.AttributeId = stream.ReadValueS32();
     this.SNOParam = stream.ReadValueS32();
     stream.Position += 8;
     this.Formula = stream.ReadSerializedInts();
 }
コード例 #5
0
ファイル: Power.cs プロジェクト: God601/mooege
 public BuffDef(MpqFileStream stream)
 {
     BuffFilterPowers = stream.ReadSerializedInts();
 }