Engine → Assets → asset_importer.h
sub_asset_table
| Type | Class |
| Namespace | conjure::assets |
| Include File Path | engine/include/conjure/assets/asset_importer.h |
| Source File Path | engine/src/assets/asset_importer.cpp |
| API ↗ | Database, importers and hot reload, Assets |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | sub_asset_table(); | |
| public | explicit sub_asset_table(
std::vector<sub_asset_entry> existing); |
Important
Copy constructor and assignment has been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~sub_asset_table(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mChanged | bool | false | |
| private | mEntries | std:: | {} | |
| private | mMutex | mutable std::mutex | {} |
Functions
Public
changed
changed[[nodiscard]] bool changed() const;True when id_for allocated at least one new uuid.
entries
entries[[nodiscard]] std::vector<sub_asset_entry> entries() const;Every entry, sorted by sub path.
id_for
id_for[[nodiscard]] asset_id id_for(
std::string_view subPath);The uuid for a sub path, allocating a new one on first use.