本文整理汇总了C#中CrystalMpq.MpqFileStream.ReadSerializedString方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.ReadSerializedString方法的具体用法?C# MpqFileStream.ReadSerializedString怎么用?C# MpqFileStream.ReadSerializedString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CrystalMpq.MpqFileStream
的用法示例。
在下文中一共展示了MpqFileStream.ReadSerializedString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public void Read(MpqFileStream stream)
{
I0 = stream.ReadValueS32();
I1 = stream.ReadValueS32();
LineID = stream.ReadValueS32();
Speaker1 = (Speaker)stream.ReadValueS32();
Speaker2 = (Speaker)stream.ReadValueS32();
AnimationTag = stream.ReadValueS32();
I4 = stream.ReadValueS32();
ClassFilter = stream.ReadValueS32();
for (int i = 0; i < ConvLocalDisplayTimes.Length; i++)
ConvLocalDisplayTimes[i] = new ConvLocalDisplayTimes(stream);
stream.Position += (2 * 4);
Comment = stream.ReadSerializedString();
this.I6 = stream.ReadValueS32();
stream.Position += 4; // these are unaccounted for...xml offsets just skips ahead
stream.Position += (2 * 4);
TrueNodes = stream.ReadSerializedData<ConversationTreeNode>();
stream.Position += (2 * 4);
FalseNodes = stream.ReadSerializedData<ConversationTreeNode>();
stream.Position += (2 * 4);
ChildNodes = stream.ReadSerializedData<ConversationTreeNode>();
}