#include <base_preset_asset.h>
Helper class to create a new preset asset.
Public Member Functions | |
CreatePresetAssetStruct (const String &name, const PresetSaveArgs &sourceData, ResolveAssetDependenciesStruct::ResolveDelegate &&resolveDependenciesDelegate, const Id &parentCategory, const AssetRepositoryRef &saveRepository, const AssetRepositoryRef &lookupRepository) | |
Result< void > | StoreMetaData (const InternedId &attr, ForwardingDataPtr &&data, AssetMetaDataInterface::KIND kind) |
template<typename ATTR > | |
MAXON_FUNCTION Result< void > | StoreMetaData (const ATTR &attr, typename ATTR::ValueType &&data, AssetMetaDataInterface::KIND kind) |
template<typename ATTR > | |
MAXON_FUNCTION Result< void > | StoreMetaData (const ATTR &attr, const typename ATTR::ValueType &data, AssetMetaDataInterface::KIND kind) |
Public Member Functions inherited from AddAssetDepencendyStruct | |
AddAssetDepencendyStruct () | |
AddAssetDepencendyStruct (const Id &parentCategory, const AssetRepositoryRef &saveRepository, const AssetRepositoryRef &lookupRepository) | |
AddAssetDepencendyStruct (AddAssetDepencendyStruct &&src)=default | |
MAXON_OPERATOR_MOVE_ASSIGNMENT (AddAssetDepencendyStruct) | |
maxon::Result< void > | CopyFrom (const AddAssetDepencendyStruct &src) |
Result< void > | AddDependency (AssetDependencyStruct &&assetDependency) |
Result< void > | AddDependency (const AssetDescription &depAsset) |
Result< AssetDescription > | AddDependency (const Id &depAssetId) |
const HashSet< AssetDependencyStruct > & | GetDependencies () const |
Public Member Functions inherited from StoreAssetStruct | |
StoreAssetStruct () | |
StoreAssetStruct (const Id &parentCategory, const AssetRepositoryRef &saveRepository, const AssetRepositoryRef &lookupRepository) | |
Public Attributes | |
String | _name |
PresetSaveArgs | _sourceData |
ResolveAssetDependenciesStruct | _resolveAssets |
BasePresetAsset | _resAsset |
Url | _resPreviewUrl |
AddAssetMetaData | _resMetaData |
Public Attributes inherited from StoreAssetStruct | |
Id | _parentCategory |
AssetRepositoryRef | _saveRepository |
AssetRepositoryRef | _lookupRepository |
CreatePresetAssetStruct | ( | const String & | name, |
const PresetSaveArgs & | sourceData, | ||
ResolveAssetDependenciesStruct::ResolveDelegate && | resolveDependenciesDelegate, | ||
const Id & | parentCategory, | ||
const AssetRepositoryRef & | saveRepository, | ||
const AssetRepositoryRef & | lookupRepository | ||
) |
CreatePresetAssetStruct description.
[in] | name | Name of the asset/preset. |
[in] | sourceData | Source data to copy into the asset. |
[in] | resolveDependenciesDelegate | helper delegate to resolve dependencies. |
[in] | parentCategory | Parent category to set. |
[in] | saveRepository | Repository to save the asset in. |
[in] | lookupRepository | Repository to search for dependencies. |
Result<void> StoreMetaData | ( | const InternedId & | attr, |
ForwardingDataPtr && | data, | ||
AssetMetaDataInterface::KIND | kind | ||
) |
MAXON_FUNCTION Result<void> StoreMetaData | ( | const ATTR & | attr, |
typename ATTR::ValueType && | data, | ||
AssetMetaDataInterface::KIND | kind | ||
) |
MAXON_FUNCTION Result<void> StoreMetaData | ( | const ATTR & | attr, |
const typename ATTR::ValueType & | data, | ||
AssetMetaDataInterface::KIND | kind | ||
) |
String _name |
PresetSaveArgs _sourceData |
ResolveAssetDependenciesStruct _resolveAssets |
BasePresetAsset _resAsset |
Url _resPreviewUrl |
AddAssetMetaData _resMetaData |