Registry for storing assets.
More...
#include <AssetRegistry.h>
Registry for storing assets.
Definition at line 35 of file AssetRegistry.h.
◆ AssetRegistry()
| hellfire::AssetRegistry::AssetRegistry |
( |
const std::filesystem::path & |
registry_file, |
|
|
const std::filesystem::path & |
project_root |
|
) |
| |
|
explicit |
◆ ~AssetRegistry()
| hellfire::AssetRegistry::~AssetRegistry |
( |
| ) |
|
◆ asset_exists()
| bool hellfire::AssetRegistry::asset_exists |
( |
AssetID |
uuid | ) |
const |
◆ clear()
| void hellfire::AssetRegistry::clear |
( |
| ) |
|
◆ generate_uuid()
| AssetID hellfire::AssetRegistry::generate_uuid |
( |
const std::filesystem::path & |
filepath | ) |
|
|
private |
◆ get_absolute_path()
| std::filesystem::path hellfire::AssetRegistry::get_absolute_path |
( |
AssetID |
uuid | ) |
|
◆ get_all_assets()
| std::vector< AssetMetadata > hellfire::AssetRegistry::get_all_assets |
( |
| ) |
const |
◆ get_asset()
◆ get_asset_count()
| size_t hellfire::AssetRegistry::get_asset_count |
( |
| ) |
const |
|
inline |
◆ get_assets_by_type()
◆ get_file_last_modified()
| AssetID hellfire::AssetRegistry::get_file_last_modified |
( |
const std::filesystem::path & |
filepath | ) |
const |
|
private |
◆ get_modified_assets()
| std::vector< AssetID > hellfire::AssetRegistry::get_modified_assets |
( |
| ) |
const |
◆ get_project_root()
| const std::filesystem::path & hellfire::AssetRegistry::get_project_root |
( |
| ) |
|
|
inline |
◆ get_relative_path()
| std::filesystem::path hellfire::AssetRegistry::get_relative_path |
( |
AssetID |
uuid | ) |
|
◆ get_type_from_extension()
| AssetType hellfire::AssetRegistry::get_type_from_extension |
( |
const std::filesystem::path & |
filepath | ) |
|
|
static |
◆ get_uuid_by_path()
| std::optional< uint64_t > hellfire::AssetRegistry::get_uuid_by_path |
( |
const std::filesystem::path & |
filepath | ) |
|
◆ has_asset_changed()
| bool hellfire::AssetRegistry::has_asset_changed |
( |
AssetID |
uuid | ) |
const |
◆ load()
| bool hellfire::AssetRegistry::load |
( |
| ) |
|
◆ rebuild_path_map()
| void hellfire::AssetRegistry::rebuild_path_map |
( |
| ) |
|
|
private |
◆ refresh_assets()
| void hellfire::AssetRegistry::refresh_assets |
( |
| ) |
|
◆ register_asset() [1/2]
| AssetID hellfire::AssetRegistry::register_asset |
( |
const std::filesystem::path & |
filepath | ) |
|
◆ register_asset() [2/2]
| AssetID hellfire::AssetRegistry::register_asset |
( |
const std::filesystem::path & |
filepath, |
|
|
AssetType |
type |
|
) |
| |
◆ register_directory()
| std::vector< AssetID > hellfire::AssetRegistry::register_directory |
( |
const std::filesystem::path & |
directory_path, |
|
|
bool |
recursive |
|
) |
| |
◆ save()
| void hellfire::AssetRegistry::save |
( |
| ) |
|
◆ set_project_root()
| void hellfire::AssetRegistry::set_project_root |
( |
const std::filesystem::path & |
project_root | ) |
|
◆ to_absolute_path()
| std::filesystem::path hellfire::AssetRegistry::to_absolute_path |
( |
const std::filesystem::path & |
relative_path | ) |
const |
|
private |
◆ to_relative_path()
| std::filesystem::path hellfire::AssetRegistry::to_relative_path |
( |
const std::filesystem::path & |
absolute_path | ) |
const |
|
private |
◆ unregister_asset()
| void hellfire::AssetRegistry::unregister_asset |
( |
AssetID |
uuid | ) |
|
◆ assets_
◆ path_to_uuid_
| std::unordered_map<std::filesystem::path, AssetID> hellfire::AssetRegistry::path_to_uuid_ |
|
private |
◆ project_root_
| std::filesystem::path hellfire::AssetRegistry::project_root_ |
|
private |
◆ registry_file_
| std::filesystem::path hellfire::AssetRegistry::registry_file_ |
|
private |
The documentation for this class was generated from the following files: