本文整理汇总了C#中CrystalMpq.MpqFileStream.ReadSerializedItem方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.ReadSerializedItem方法的具体用法?C# MpqFileStream.ReadSerializedItem怎么用?C# MpqFileStream.ReadSerializedItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CrystalMpq.MpqFileStream
的用法示例。
在下文中一共展示了MpqFileStream.ReadSerializedItem方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PowerDef
public List<BuffDef> Buffs = new List<BuffDef>(); //4
public PowerDef(MpqFileStream stream)
{
TagMap = stream.ReadSerializedItem<TagMap>();
stream.Position += (2 * 4);
GeneralTagMap = stream.ReadSerializedItem<TagMap>();
stream.Position += (2 * 4);
PVPGeneralTagMap = stream.ReadSerializedItem<TagMap>();
stream.Position += (2 * 4);
ContactTagMap0 = stream.ReadSerializedItem<TagMap>();
ContactTagMap1 = stream.ReadSerializedItem<TagMap>();
ContactTagMap2 = stream.ReadSerializedItem<TagMap>();
ContactTagMap3 = stream.ReadSerializedItem<TagMap>();
stream.Position += (8 * 4);
PVPContactTagMap0 = stream.ReadSerializedItem<TagMap>();
PVPContactTagMap1 = stream.ReadSerializedItem<TagMap>();
PVPContactTagMap2 = stream.ReadSerializedItem<TagMap>();
PVPContactTagMap3 = stream.ReadSerializedItem<TagMap>();
stream.Position += (8 * 4);
I0 = stream.ReadValueS32();
ActColFlags1 = new ActorCollisionFlags(stream);
ActColFlags2 = new ActorCollisionFlags(stream);
stream.Position += 4;
for (int i = 0; i < 4; i++)
{
Buffs.Add(new BuffDef(stream));
stream.Position += (2 * 4);
}
}
示例2: 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>();
stream.Position += 8;
this.MarkerLinksCount = stream.ReadValueS32();
this.MarkerLinks = stream.ReadSerializedData<MarkerLink>();
stream.Position += (3 * 4);
}
示例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.DRLGParams = stream.ReadSerializedData<DRLGParams>();
stream.Position += 8;
this.SceneParams = stream.ReadSerializedItem<SceneParams>();
stream.Position += 8;
LabelRuleSet = new LabelRuleSet(stream);
this.Int1 = stream.ReadValueS32();
this.SceneClusterSet = new SceneClusterSet(stream);
for (int i = 0; i < SNONavMeshFunctions.Length; i++)
{
SNONavMeshFunctions[i] = stream.ReadValueS32();
}
SNOScript = stream.ReadValueS32();
Int2 = stream.ReadValueS32();
}
示例5: Read
public void Read(MpqFileStream stream)
{
Int0 = stream.ReadValueS32();
Int1 = stream.ReadValueS32();
SNOScene = stream.ReadValueS32();
Int2 = stream.ReadValueS32();
this.TileTagMap = stream.ReadSerializedItem<TagMap>();
stream.Position += (2 * 4);
CustomTileInfo = new CustomTileInfo(stream);
}
示例6: 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);
}