本文整理汇总了C#中IUnrealStream类的典型用法代码示例。如果您正苦于以下问题:C# IUnrealStream类的具体用法?C# IUnrealStream怎么用?C# IUnrealStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnrealStream类属于命名空间,在下文中一共展示了IUnrealStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public void Deserialize( IUnrealStream stream )
{
UncompressedOffset = stream.ReadInt32();
UncompressedSize = stream.ReadInt32();
CompressedOffset = stream.ReadInt32();
CompressedSize = stream.ReadInt32();
}
示例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 )
{
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
}
示例4: Deserialize
public override void Deserialize( IUnrealStream stream )
{
CastedObject = stream.ReadObject();
Decompiler.AlignObjectSize();
base.Deserialize( stream );
}
示例5: Serialize
public void Serialize(IUnrealStream stream)
{
stream.Serialize(ref this.PowerName);
stream.Serialize(ref this.CurrentRank);
stream.Serialize(ref this.PowerClassName);
stream.Serialize(ref this.WheelDisplayIndex);
}
示例6: Serialize
public void Serialize(IUnrealStream stream)
{
stream.Serialize(ref this.SecondsSinceMidnight);
stream.Serialize(ref this.Day);
stream.Serialize(ref this.Month);
stream.Serialize(ref this.Year);
}
示例7: Serialize
public void Serialize(IUnrealStream stream)
{
stream.Serialize(ref this.R);
stream.Serialize(ref this.G);
stream.Serialize(ref this.B);
stream.Serialize(ref this.A);
}
示例8: Deserialize
public override void Deserialize( IUnrealStream stream )
{
// Key
DeserializeNext();
// Array
DeserializeNext();
}
示例9: Serialize
public void Serialize( IUnrealStream stream )
{
// TODO: Implement code
stream.Write( UncompressedOffset );
stream.Write( UncompressedSize );
stream.Write( CompressedOffset );
stream.Write( CompressedSize );
}
示例10: Serialize
public void Serialize( IUnrealStream stream )
{
Console.WriteLine( "Writing import " + ObjectName + " at " + stream.Position );
stream.Write( PackageName );
stream.Write( _ClassName );
stream.Write( OuterTable != null ? (int)OuterTable.Object : 0 ); // Always an ordinary integer
stream.Write( ObjectName );
}
示例11: Deserialize
public void Deserialize( IUnrealStream stream )
{
var index = stream.ReadNameIndex( out _Number );
_NameItem = stream.Package.Names[index];
Debug.Assert( _NameItem != null, "_NameItem cannot be null! " + index );
Debug.Assert( _Number >= -1, "Invalid _Number value! " + _Number );
}
示例12: Deserialize
public override void Deserialize( IUnrealStream stream )
{
// TODO: Corrigate version.
if( stream.Version <= 300 )
return;
_ReturnObject = Decompiler._Container.TryGetIndexObject( stream.ReadObjectIndex() );
Decompiler.AlignObjectSize();
}
示例13: Deserialize
public void Deserialize( IUnrealStream stream )
{
Console.WriteLine( "Reading import " + Index + " at " + stream.Position );
PackageName = stream.ReadNameReference();
_ClassName = stream.ReadNameReference();
ClassIndex = (int)_ClassName;
OuterIndex = stream.ReadInt32(); // ObjectIndex, though always written as 32bits regardless of build.
ObjectName = stream.ReadNameReference();
}
示例14: Deserialize
public override void Deserialize( IUnrealStream stream )
{
stream.ReadObjectIndex();
Decompiler.AlignObjectSize();
DeserializeNext();
// ==
DeserializeNext();
}
示例15: Serialize
public void Serialize(IUnrealStream stream)
{
stream.Serialize(ref this.Unknown0);
stream.Serialize(ref this.Unknown1);
stream.Serialize(ref this.Unknown2);
stream.Serialize(ref this.Unknown3);
stream.Serialize(ref this.Unknown4);
stream.Serialize(ref this.Unknown5);
}