Class AssetExporter<TAsset, TProfile>
The asset Exporter class.
Implements
Inherited Members
Namespace: Evergine.Assets.Exporters
Assembly: Evergine.Assets.dll
Syntax
public abstract class AssetExporter<TAsset, TProfile> : BaseAssetExporter<TAsset, TProfile>, IAssetExporter where TAsset : IAssetMetaFile where TProfile : AssetProfile
Type Parameters
Name | Description |
---|---|
TAsset | The asset generic type. |
TProfile | The profile generic type. |
Methods
ExportOutputFile(TAsset, TProfile, ExportContext)
Exports the assets.
Declaration
protected override Task<ExportResult> ExportOutputFile(TAsset asset, TProfile profile, ExportContext exportContext)
Parameters
Type | Name | Description |
---|---|---|
TAsset | asset | The asset meta file. |
TProfile | profile | The profile object. |
ExportContext | exportContext | The export context. |
Returns
Type | Description |
---|---|
Task<ExportResult> | Awaitable task of the operation with the result of the export process. |
Overrides
GenerateAssetParts(TAsset, TProfile, ExportContext)
Exports the asset.
Declaration
protected abstract Task<List<AssetPart>> GenerateAssetParts(TAsset metafile, TProfile profile, ExportContext exportContext)
Parameters
Type | Name | Description |
---|---|---|
TAsset | metafile | The meta file. |
TProfile | profile | The profile. |
ExportContext | exportContext | The export context. |
Returns
Type | Description |
---|---|
Task<List<AssetPart>> | The export result. |
GetExportFilePath(TAsset, TProfile, ExportContext)
Gets the export file path.
Declaration
public override string GetExportFilePath(TAsset asset, TProfile profile, ExportContext exportContext)
Parameters
Type | Name | Description |
---|---|---|
TAsset | asset | The asset. |
TProfile | profile | The profile. |
ExportContext | exportContext | The export context. |
Returns
Type | Description |
---|---|
string | The export file path. |