Contents

SushiEngine::Simulation::IMaterialSource

asset_revision

virtual std::uint64_t asset_revision(const Database::AssetId &asset) const

Parameters

NameTypeDescription
assetconst Database::AssetId &

The bound slot's asset id.

Returns

std::uint64_t

The asset's revision, or UNTRACKED_MATERIAL_REVISION when this source does not track one.

Description

Returns how many times one asset has changed underneath the slots bound to it.

See also

engine/world/simulation/include/DRAWING.md