本文整理汇总了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);
}
示例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();
}
示例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>();
}
示例4: AttributeSpecifier
public AttributeSpecifier(MpqFileStream stream)
{
this.AttributeId = stream.ReadValueS32();
this.SNOParam = stream.ReadValueS32();
stream.Position += 8;
this.Formula = stream.ReadSerializedInts();
}
示例5: BuffDef
public BuffDef(MpqFileStream stream)
{
BuffFilterPowers = stream.ReadSerializedInts();
}