Class ContentFile
- Namespace
- ValveResourceFormat.IO
- Assembly
- ValveResourceFormat.dll
Represents a content file extracted from a compiled resource.
public class ContentFile : IDisposableInheritance
Derived
Implements
Inherited Members
Properties
AdditionalFiles
Additional extracted resources. E.g. for a vmat, this would be the vtex files. You will want to extract the files if data is non null, and also their respective subfiles. You might want to ignore further extracts on these files—especially lone extracts, since this is most likely their most optimal extract context.
public List<ContentFile> AdditionalFiles { get; init; }Property Value
Data
Data can be null if the file is not meant to be written out. However it can still contain subfiles.
public byte[] Data { get; set; }Property Value
- byte[]
Disposed
Gets a value indicating whether this instance has been disposed.
protected bool Disposed { get; }Property Value
FileName
Suggested output file name. Based on the resource name.
public string FileName { get; set; }Property Value
SubFiles
Additional files that make up this content file. E.g. for a vtex, this would be the PNG files.
public List<SubFile> SubFiles { get; init; }Property Value
Methods
AddSubFile(string, Func<byte[]>)
Adds a sub-file to be extracted alongside the main content file.
public void AddSubFile(string fileName, Func<byte[]> extractMethod)Parameters
Dispose(bool)
Releases resources used by this instance.
protected virtual void Dispose(bool disposing)Parameters
disposingbool
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()