Interface IAssetImporter
This interface represents an asset importer.
Namespace: Evergine.Framework.Assets.Importers
Assembly: Evergine.Framework.dll
Syntax
public interface IAssetImporter
Properties
Extensions
Gets the extensions.
Declaration
string[] Extensions { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Methods
ApplySettings(ProjectParameters)
Apply the project settings to the importer.
Declaration
void ApplySettings(ProjectParameters projectSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectParameters | projectSettings | The project settings. |
GenerateAdditionalAssets(Stream, IAssetSource)
Indicates if this asset requires additional assets.
Declaration
bool GenerateAdditionalAssets(Stream stream, IAssetSource resource)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The asset stream. |
| IAssetSource | resource | The asset resource. |
Returns
| Type | Description |
|---|---|
| bool | True if this asset needs additional assets. |
ImportData(Stream, IAssetSource)
Imports this asset data.
Declaration
void ImportData(Stream stream, IAssetSource resource)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| IAssetSource | resource | The asset source. |
ImportSource(Stream, bool, bool)
Gets the asset source.
Declaration
IAssetSource ImportSource(Stream stream, bool preprocess, bool rawAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The asset stream. |
| bool | preprocess | Indicates if the assets need to be preprocessed. |
| bool | rawAsset | The asset is loaded as a raw asset. |
Returns
| Type | Description |
|---|---|
| IAssetSource | The asset importer. |