Class TrackingFileLoader
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Just a way to track previously loaded (and thus extracted) files.
csharp
public class TrackingFileLoader : IFileLoaderInheritance
Implements
Constructors
TrackingFileLoader(IFileLoader)
Initializes a new instance of the class.
csharp
public TrackingFileLoader(IFileLoader fileLoader)Parameters
fileLoader IFileLoader
Properties
LoadedFilePaths
Gets the set of file paths that have been loaded.
csharp
public HashSet<string> LoadedFilePaths { get; }Property Value
Methods
LoadFile(string)
Loads a compiled resource file.
csharp
public Resource? LoadFile(string file)Parameters
file string
Path to the resource file to load.
Returns
Loaded resource, or null if not found.
Remarks
To read raw file bytes from a VPK package, use Package.ReadEntry instead.
LoadFileCompiled(string)
Same as but appends "_c" to the end of the string.
csharp
public Resource? LoadFileCompiled(string file)Parameters
file string
Path to the file to load (without _c suffix).
Returns
Loaded compiled resource, or null if not found.
LoadShader(string)
Loads a shader collection by name.
csharp
public ShaderCollection? LoadShader(string shaderName)Parameters
shaderName string
Name of the shader to load.
Returns
Loaded shader collection, or null if not found.

