当前位置: 首页>>代码示例>>C#>>正文


C# MpqFileStream.ReadSerializedInts方法代码示例

本文整理汇总了C#中CrystalMpq.MpqFileStream.ReadSerializedInts方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.ReadSerializedInts方法的具体用法?C# MpqFileStream.ReadSerializedInts怎么用?C# MpqFileStream.ReadSerializedInts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CrystalMpq.MpqFileStream的用法示例。


在下文中一共展示了MpqFileStream.ReadSerializedInts方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Read

        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);
        }
开发者ID:Naxp,项目名称:mooege,代码行数:15,代码来源:World.cs

示例2: BannerParams

 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();
 }
开发者ID:ncoop23,项目名称:mooege,代码行数:27,代码来源:Globals.cs

示例3: Read

        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>();
        }
开发者ID:mstaJ,项目名称:mooege,代码行数:15,代码来源:World.cs

示例4: AttributeSpecifier

 public AttributeSpecifier(MpqFileStream stream)
 {
     this.AttributeId = stream.ReadValueS32();
     this.SNOParam = stream.ReadValueS32();
     stream.Position += 8;
     this.Formula = stream.ReadSerializedInts();
 }
开发者ID:Im2ortal,项目名称:mooege,代码行数:7,代码来源:GameBalance.cs

示例5: BuffDef

 public BuffDef(MpqFileStream stream)
 {
     BuffFilterPowers = stream.ReadSerializedInts();
 }
开发者ID:God601,项目名称:mooege,代码行数:4,代码来源:Power.cs


注:本文中的CrystalMpq.MpqFileStream.ReadSerializedInts方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。