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