Class AssetSourceLoadableConverter<T, K>
Converts an Asset Source into a loadable.
Inheritance
AssetSourceLoadableConverter<T, K>
Implements
Inherited Members
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.
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 the ILoadable object to return. |