Beispiel #1
0
        internal FTexture2DMipMap(BinaryReader reader, Stream ubulk, int bulkOffset)
        {
            var bCooked = reader.ReadInt32() != 0;

            BulkData = new FByteBulkData(reader, ubulk, bulkOffset);
            SizeX    = reader.ReadInt32();
            SizeY    = reader.ReadInt32();
            SizeZ    = reader.ReadInt32();
        }
Beispiel #2
0
        internal FStreamedAudioChunk(PackageReader reader, Stream ubulk, long ubulkOffset)
        {
            bool bCooked = reader.ReadInt32() != 0;

            if (bCooked)
            {
                BulkData      = new FByteBulkData(reader, ubulk, ubulkOffset);
                DataSize      = reader.ReadInt32();
                AudioDataSize = reader.ReadInt32();
            }
            else
            {
                reader.Position -= 4;
                throw new FileLoadException("StreamedAudioChunk must be cooked");
            }
        }
Beispiel #3
0
        internal FVirtualTextureDataChunk(BinaryReader reader, Stream ubulk, long bulkOffset, uint numLayers)
        {
            CodecPayloadOffset = new ushort[8];
            CodecType          = new EVirtualTextureCodec[8];

            SizeInBytes      = reader.ReadUInt32();
            CodecPayloadSize = reader.ReadUInt32();
            for (int LayerIndex = 0; LayerIndex < numLayers; ++LayerIndex)
            {
                byte CodecTypeAsByte = reader.ReadByte();
                CodecType[LayerIndex]          = (EVirtualTextureCodec)CodecTypeAsByte;
                CodecPayloadOffset[LayerIndex] = reader.ReadUInt16();
            }

            BulkData = new FByteBulkData(reader, ubulk, bulkOffset);
        }
Beispiel #4
0
 internal FAkMediaDataChunk(PackageReader reader, Stream ubulk, long bulkOffset)
 {
     IsPrefetch = reader.ReadInt32() != 0;
     Data       = new FByteBulkData(reader, ubulk, bulkOffset);
 }
Beispiel #5
0
 internal FFormatContainer(PackageReader reader, Stream ubulk, long ubulkOffset)
 {
     FormatName = reader.ReadFName();
     Data       = new FByteBulkData(reader, ubulk, ubulkOffset);
 }