#include <base_preset_asset.h>
Helper class to pass additional data into asset creation functions.
Public Member Functions | |
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) | |
Private Attributes | |
HashSet< AssetDependencyStruct > | _dependencies |
Additional Inherited Members | |
Public Attributes inherited from StoreAssetStruct | |
Id | _parentCategory |
AssetRepositoryRef | _saveRepository |
AssetRepositoryRef | _lookupRepository |
AddAssetDepencendyStruct | ( | const Id & | parentCategory, |
const AssetRepositoryRef & | saveRepository, | ||
const AssetRepositoryRef & | lookupRepository | ||
) |
|
default |
MAXON_OPERATOR_MOVE_ASSIGNMENT | ( | AddAssetDepencendyStruct | ) |
maxon::Result<void> CopyFrom | ( | const AddAssetDepencendyStruct & | src | ) |
Result<void> AddDependency | ( | AssetDependencyStruct && | assetDependency | ) |
AddDependency adds a dependency using the AssetDependencyStruct.
[in] | assetDependency | Dependencies to add. |
Result<void> AddDependency | ( | const AssetDescription & | depAsset | ) |
AddDependency adds the given asset as dependency.
[in] | depAsset | Asset to add. |
AddDependency description.
[in] | depAssetId | ? |
const HashSet<AssetDependencyStruct>& GetDependencies | ( | ) | const |
GetDependencies returns the collected dependencies.
|
private |