当前位置: 首页>>代码示例>>C#>>正文


C# IUnrealStream类代码示例

本文整理汇总了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();
 }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:7,代码来源:UnrealPackageCompression.cs

示例2: Deserialize

 public void Deserialize( IUnrealStream stream )
 {
     FileName = stream.ReadText();
     SerialOffset = (uint)stream.ReadIndex();
     SerialSize = (uint)stream.ReadIndex();
     FileFlags = stream.ReadUInt32();
 }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:7,代码来源:UnrealMod.cs

示例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
        }
开发者ID:Dybuk,项目名称:Unreal-Library,代码行数:25,代码来源:UNameTableItem.cs

示例4: Deserialize

                public override void Deserialize( IUnrealStream stream )
                {
                    CastedObject = stream.ReadObject();
                    Decompiler.AlignObjectSize();

                    base.Deserialize( stream );
                }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:7,代码来源:CastTokens.cs

示例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);
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:7,代码来源:Power.cs

示例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);
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:7,代码来源:SaveTimeStamp.cs

示例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);
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:7,代码来源:LinearColor.cs

示例8: Deserialize

                public override void Deserialize( IUnrealStream stream )
                {
                    // Key
                    DeserializeNext();

                    // Array
                    DeserializeNext();
                }
开发者ID:Dybuk,项目名称:Unreal-Library,代码行数:8,代码来源:ArrayTokens.cs

示例9: Serialize

 public void Serialize( IUnrealStream stream )
 {
     // TODO: Implement code
     stream.Write( UncompressedOffset );
     stream.Write( UncompressedSize );
     stream.Write( CompressedOffset );
     stream.Write( CompressedSize );
 }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:8,代码来源:UnrealPackageCompression.cs

示例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 );
 }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:8,代码来源:UImportTableItem.cs

示例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 );
        }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:8,代码来源:UName.cs

示例12: Deserialize

                public override void Deserialize( IUnrealStream stream )
                {
                    // TODO: Corrigate version.
                    if( stream.Version <= 300 )
                        return;

                    _ReturnObject = Decompiler._Container.TryGetIndexObject( stream.ReadObjectIndex() );
                    Decompiler.AlignObjectSize();
                }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:9,代码来源:JumpTokens.cs

示例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();
 }
开发者ID:jjbott,项目名称:Unreal-Library,代码行数:9,代码来源:UImportTableItem.cs

示例14: Deserialize

                public override void Deserialize( IUnrealStream stream )
                {
                    stream.ReadObjectIndex();
                    Decompiler.AlignObjectSize();

                    DeserializeNext();
                    // ==
                    DeserializeNext();
                }
开发者ID:Dybuk,项目名称:Unreal-Library,代码行数:9,代码来源:OtherTokens.cs

示例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);
 }
开发者ID:Juvidoh,项目名称:me3-lazarus,代码行数:9,代码来源:Loadout.cs


注:本文中的IUnrealStream类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。