AssetDatabase class

Public functions

void Initialize(const char* contentRoot, const char* cacheDir)
contentRoot: <Project>/content (versioned). cacheDir: <Project>/Saved (local, ignored).
void Reconcile()
auto Save() const -> bool
Persist the local cache (content hashes, file stamps).
auto Load() -> bool
Load the local cache. Missing or stale caches are fine: the next scan rebuilds them.
auto GetEntries() const -> const std::vector<AssetDatabaseEntry>&
auto FindByID(AssetID id) const -> const AssetDatabaseEntry*
auto FindByPath(const std::string& relativePath) const -> const AssetDatabaseEntry*
auto Rename(AssetID id, const std::string& newName) -> bool
Rename an asset's display name. Persisted in its sidecar, so the whole team sees it.
auto Remove(AssetID id) -> bool
Remove an asset from the database, delete its sidecar, and unregister it from the runtime registry.
auto GetManifest() const -> const AssetManifest&