AssetCompilerRegistry Class
Namespace: Stride.Core.Assets.CompilerAssembly: Stride.Core.Assets.dll
A registry containing the asset compilers of the assets.
System.Object →
AssetCompilerRegistry
Derived from AssetCompilerRegistry:
public sealed class AssetCompilerRegistry
Name | Description | |
---|---|---|
Constructors | ||
AssetCompilerRegistry() | Create an instance of that registry |
|
Properties | ||
DefaultCompiler | Gets or sets the default compiler to use when no compiler are explicitly registered for a type. |
|
Methods | ||
GetCompiler(Type, Type) | Gets the compiler associated to an Asset type. |
|
RegisterCompiler(Type, IAssetCompiler, Type) | Register a compiler for a given Asset type. |
Constructors
AssetCompilerRegistry()
Create an instance of that registry
public AssetCompilerRegistry()
Properties
DefaultCompiler
Gets or sets the default compiler to use when no compiler are explicitly registered for a type.
public IAssetCompiler DefaultCompiler { get; set; }
Property Value
Type | Description |
---|---|
IAssetCompiler |
Methods
GetCompiler(Type, Type)
Gets the compiler associated to an Asset type.
public IAssetCompiler GetCompiler(Type type, Type context)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the Asset |
System.Type | context |
Returns
Type | Description |
---|---|
IAssetCompiler | The compiler associated the provided asset type or null if no compiler exists for that type. |
RegisterCompiler(Type, IAssetCompiler, Type)
Register a compiler for a given Asset type.
public void RegisterCompiler(Type type, IAssetCompiler compiler, Type context)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of asset the compiler can compile |
IAssetCompiler | compiler | The compiler to use |
System.Type | context |