Class AssetMetaFileWithSource<TSource, TProfile, TExporter>
An asset with a source element.
Inheritance
AssetMetafile<TProfile, TExporter>
AssetMetaFileWithSource<TSource, TProfile, TExporter>
Inherited Members
Namespace: Evergine.Assets.Exporters
Assembly: Evergine.Assets.dll
Syntax
public abstract class AssetMetaFileWithSource<TSource, TProfile, TExporter> : AssetMetafile<TProfile, TExporter>, IAssetWithSource, IAssetMetaFile where TSource : AssetSource where TProfile : AssetProfile where TExporter : IAssetExporter
Type Parameters
Name | Description |
---|---|
TSource | The source asset. |
TProfile | The profile class. |
TExporter | The exporter class. |
Constructors
AssetMetaFileWithSource(TSource, TProfile)
Initializes a new instance of the AssetMetaFileWithSource<TSource, TProfile, TExporter> class.
Declaration
public AssetMetaFileWithSource(TSource resource, TProfile defaultProfile)
Parameters
Type | Name | Description |
---|---|---|
TSource | resource | The resource. |
TProfile | defaultProfile | The default profile. |
Properties
NeedsToImportData
Gets a value indicating whether the source data needs to be imported during export.
Declaration
public virtual bool NeedsToImportData { get; }
Property Value
Type | Description |
---|---|
bool |
Source
Gets or sets the asset resource.
Declaration
public TSource Source { get; set; }
Property Value
Type | Description |
---|---|
TSource |
SourceFile
Gets or sets the resource file.
Declaration
public ContentFile SourceFile { get; set; }
Property Value
Type | Description |
---|---|
ContentFile |