本文整理汇总了C#中CrystalMpq.MpqFileStream.GetSerializedDataPointer方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.GetSerializedDataPointer方法的具体用法?C# MpqFileStream.GetSerializedDataPointer怎么用?C# MpqFileStream.GetSerializedDataPointer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CrystalMpq.MpqFileStream
的用法示例。
在下文中一共展示了MpqFileStream.GetSerializedDataPointer方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NavZoneDef
public NavZoneDef(MpqFileStream stream)
{
this.NavCellCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCells = stream.ReadSerializedData<NavCell>(this.NavCellCount);
this.NeightbourCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCellNeighbours = stream.ReadSerializedData<NavCellLookup>(this.NeightbourCount);
this.Float0 = stream.ReadValueF32();
this.Float1 = stream.ReadValueF32();
this.Int2 = stream.ReadValueS32();
this.V0 = new Vector2D(stream);
stream.Position += (3 * 4);
var pointerGridSquares = stream.GetSerializedDataPointer();
this.GridSquares = stream.ReadSerializedData<NavGridSquare>(pointerGridSquares, pointerGridSquares.Size / 6);
this.Int3 = stream.ReadValueS32();
stream.Position += (3 * 4);
var pointerCellLookups = stream.GetSerializedDataPointer();
this.CellLookups = stream.ReadSerializedData<NavCellLookup>(pointerCellLookups, pointerCellLookups.Size / 4);
this.Int4 = stream.ReadValueS32();
stream.Position += (3 * 4);
var pointerBorderData = stream.GetSerializedDataPointer();
this.BorderData = stream.ReadSerializedData<NavCellBorderData>(pointerBorderData, pointerBorderData.Size / 4);
}
示例2: Read
public void Read(MpqFileStream stream)
{
var pointer = stream.GetSerializedDataPointer();
this.ChunkCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.SceneChunks = stream.ReadSerializedData<SceneChunk>(pointer, this.ChunkCount);
}
示例3: Read
public void Read(MpqFileStream stream)
{
this.Name = stream.ReadString(128, true);
this.Int0 = stream.ReadValueS32();
this.PRTransform = new PRTransform(stream);
this.SNOName = new SNOName(stream);
this.TagMap = stream.ReadSerializedItem<TagMap>();
// Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
this.IntTagMap = stream.ReadValueS32();
Int1 = stream.ReadValueS32();
Int2 = stream.ReadValueS32();
var pointerMarkerLinks = stream.GetSerializedDataPointer();
stream.Position += (3 * 4);
}
示例4: Read
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();
Int2 = stream.ReadValueS32();
var pointerMarkerLinks = stream.GetSerializedDataPointer();
stream.Position += (3 * 4);
}