本文整理汇总了C#中IUnrealStream.ReadText方法的典型用法代码示例。如果您正苦于以下问题:C# IUnrealStream.ReadText方法的具体用法?C# IUnrealStream.ReadText怎么用?C# IUnrealStream.ReadText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IUnrealStream
的用法示例。
在下文中一共展示了IUnrealStream.ReadText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public void Deserialize( IUnrealStream stream )
{
Name = stream.ReadText();
// Mass effect 2
if (stream.Version == 512)
{
Flags = stream.ReadUInt32();
}
else
{
Flags = stream.Version >= QWORDVersion ? stream.ReadUInt64() : stream.ReadUInt32();
}
#if DEOBFUSCATE
// De-obfuscate names that contain unprintable characters!
foreach( char c in Name )
{
if( !char.IsLetterOrDigit( c ) )
{
Name = "N" + TableIndex + "_OBF";
break;
}
}
#endif
}
示例2: Deserialize
public void Deserialize( IUnrealStream stream )
{
FileName = stream.ReadText();
SerialOffset = (uint)stream.ReadIndex();
SerialSize = (uint)stream.ReadIndex();
FileFlags = stream.ReadUInt32();
}
示例3: Deserialize
public void Deserialize( IUnrealStream stream )
{
if( stream.Version <= 540 )
{
// e.g. Core.Object.X
FieldName = stream.ReadText();
}
else
{
FieldIndex = stream.ReadObjectIndex();
}
MetaTags = new UArray<UMetaTag>();
MetaTags.Deserialize( stream, tag => tag.Owner = Owner );
}