Interface IAssetSourceLoadableConverter
Converts an Asset Source into a loadable.
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public interface IAssetSourceLoadableConverter
Properties
ExportedExtension
Gets the exported extension of the source.
Declaration
string ExportedExtension { get; }
Property Value
Type | Description |
---|---|
string |
LoadableType
Gets the loadable type.
Declaration
Type LoadableType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
Convert(IAssetSource)
Converts an Asset Source into a loadable.
Declaration
ILoadable Convert(IAssetSource source)
Parameters
Type | Name | Description |
---|---|---|
IAssetSource | source | The asset source. |
Returns
Type | Description |
---|---|
ILoadable | The loadable element. |
Convert(IAssetSource, Type)
Converts an Asset Source into a loadable.
Declaration
ILoadable Convert(IAssetSource source, Type loadableType)
Parameters
Type | Name | Description |
---|---|---|
IAssetSource | source | The asset source. |
Type | loadableType | The loadable type. |
Returns
Type | Description |
---|---|
ILoadable | The loadable element. |
Convert<T>(IAssetSource)
Converts an Asset Source into a loadable.
Declaration
T Convert<T>(IAssetSource source) where T : ILoadable
Parameters
Type | Name | Description |
---|---|---|
IAssetSource | source | The asset source. |
Returns
Type | Description |
---|---|
T | The loadable element. |
Type Parameters
Name | Description |
---|---|
T | The type of the loadable to be loaded. |