Contents

SushiEngine::Database::AssetRegistry

ensure_id

std::optional< AssetId > ensure_id(const std::string &path) const

Parameters

NameType
pathconst std::string &

Returns

std::optional< AssetId >

Description

Ensures a tracked file has a valid .meta and returns its id.

Precondition

No other thread calls this registry at the same time.

See also

database/README.md