#include <assets.h>
The base interface of AssetBaseInterface and AssetLinkInterface. It contains their common methods to obtain type, identifier and version.
◆ MAXON_INTERFACE()
◆ GetTypeId()
Returns the identifier of the AssetType of this asset.
- Returns
- Identifier of the AssetType of this asset.
◆ GetIdAndVersion()
Returns the identifier and version of this asset as a tuple.
- Returns
- (identifier, version) of this asset.
◆ GetId()
Returns the identifier of this asset. Asset identifiers have to be globally unique.
- Returns
- Asset identifier (empty for an Asset which doesn't belong to a repository).
◆ GetVersion()
Returns the version of this asset. Version identifiers are assigned by repositories when assets are stored, typically this is a hash value derived from the asset content or a UUID. In general two assets should have equal version identifiers only if they have equal content.
- Returns
- Asset version identifier (empty for an Asset which doesn't belong to a repository).
◆ VIRTUAL
VIRTUAL is used as version identifier for assets which can't be re-obtained from a repository by their identifier. The typical use case is for dynamically created assets which get an identifier just for clarity, but not to actually identify them. References to virtual assets can't be serialized.