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 generic asset type. |
TProfile | The generic profile 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> | An awaitable task representing 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 metafile. |
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. |