AssetBaseWithUpdateInterface Class Reference

#include <assets.h>

Inheritance diagram for AssetBaseWithUpdateInterface:

Detailed Description

The base interface of AssetInterface and AssetReferenceInterface. It inherits from AssetBaseInterface and adds a methods to obtain the update counter.

Public Member Functions

MAXON_METHOD Int GetUpdate () const
 

Private Member Functions

 MAXON_INTERFACE (AssetBaseWithUpdateInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.assetbasewithupdate")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AssetBaseWithUpdateInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.interface.assetbasewithupdate"   
)
private

◆ GetUpdate()

MAXON_METHOD Int GetUpdate ( ) const

Returns the update counter of the asset. The update counter is incremented whenever an asset is updated because one of its references to other assets is updated to a newer version of the referenced asset. This does not lead to a newer repository version of the asset itself because the asset definition isn't changed. Therefore the version identifier stays the same, just the update counter changes.

The update counter is 0 for the asset which exacly matches the original version (returned by AssetDescriptionInterface::Load when it is called with a nullptr argument).

Returns
Update counter of the asset.