Class AssetSourceLoadableConverter<T, K>
Converts an Asset Source into a Loadable.
Inheritance
AssetSourceLoadableConverter<T, K>
Implements
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public abstract class AssetSourceLoadableConverter<T, K> : IAssetSourceLoadableConverter where T : IAssetSource where K : ILoadable
Type Parameters
| Name | Description |
|---|---|
| T | The Asset Source type. |
| K | The Loadable Asset type. |
Properties
ExportedExtension
Gets the exported asset extension.
Declaration
public abstract string ExportedExtension { get; }
Property Value
| Type | Description |
|---|---|
| string |
LoadableType
Gets the loadable type.
Declaration
public Type LoadableType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
Convert(T)
Converts an asset source into a loadable element.
Declaration
public abstract K Convert(T source)
Parameters
| Type | Name | Description |
|---|---|---|
| T | source | The asset source. |
Returns
| Type | Description |
|---|---|
| K | The loadable element. |
Convert(T, Type)
Converts an Asset Source into a loadable of a specific type.
Declaration
public virtual K Convert(T source, Type loadableType)
Parameters
| Type | Name | Description |
|---|---|---|
| T | source | The asset source. |
| Type | loadableType | The loadable type. |
Returns
| Type | Description |
|---|---|
| K | The loadable element. |
Convert<TLoadable>(T)
Converts an Asset Source into a loadable of a specific type.
Declaration
public virtual TLoadable Convert<TLoadable>(T source) where TLoadable : K
Parameters
| Type | Name | Description |
|---|---|---|
| T | source | The asset source. |
Returns
| Type | Description |
|---|---|
| TLoadable | The loadable element. |
Type Parameters
| Name | Description |
|---|---|
| TLoadable | The type of ILoadable object to return. |