Class NullFileLoader
- Namespace
- ValveResourceFormat.IO
- Assembly
- ValveResourceFormat.dll
This file loader is primarily for testing, always returns null for any file load.
public class NullFileLoader : IFileLoaderInheritance
Implements
Inherited Members
Methods
LoadFile(string)
Loads a resource file.
public Resource? LoadFile(string file)Parameters
filestring-
Path to the file to load.
Returns
- Resource?
-
Loaded resource, or null if not found.
Remarks
Always returns null.
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
filestring-
Path to the file to load (without _c suffix).
Returns
- Resource?
-
Loaded compiled resource, or null if not found.
Remarks
Always returns null.
LoadShader(string)
Loads a shader collection by name.
public ShaderCollection? LoadShader(string shaderName)Parameters
shaderNamestring-
Name of the shader to load.
Returns
- ShaderCollection?
-
Loaded shader collection, or null if not found.
Remarks
Always returns null.