#include <AssetManager.hpp>
|
| | AssetManager (std::filesystem::path assetsPath) |
| | Construct a new Asset Manager object.
|
| const std::filesystem::path & | getAssetsPath () const override |
| | Get the Assets Path object.
|
| std::filesystem::path | resolveAsset (const std::filesystem::path &relativePath) const override |
| | Resolve the full path of an asset given its relative path.
|
| bool | assetExists (const std::filesystem::path &relativePath) const override |
| | Check if an asset exists given its relative path.
|
| bool | validate () const override |
| | Validate the asset manager configuration.
|
| virtual | ~IAssetManager ()=default |
|
| static std::unique_ptr< IAssetManager > | create (const std::filesystem::path &executablePath, const std::string &appName) |
| | Create a new Asset Manager instance.
|
◆ AssetManager()
| dotnamecpp::assets::AssetManager::AssetManager |
( |
std::filesystem::path | assetsPath | ) |
|
|
explicit |
Construct a new Asset Manager object.
- Parameters
-
◆ assetExists()
| bool dotnamecpp::assets::AssetManager::assetExists |
( |
const std::filesystem::path & | relativePath | ) |
const |
|
nodiscardoverridevirtual |
◆ create()
| std::unique_ptr< IAssetManager > dotnamecpp::assets::AssetManager::create |
( |
const std::filesystem::path & | executablePath, |
|
|
const std::string & | appName ) |
|
static |
Create a new Asset Manager instance.
- Parameters
-
- Returns
- std::unique_ptr<IAssetManager>
◆ getAssetsPath()
| const std::filesystem::path & dotnamecpp::assets::AssetManager::getAssetsPath |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ resolveAsset()
| std::filesystem::path dotnamecpp::assets::AssetManager::resolveAsset |
( |
const std::filesystem::path & | relativePath | ) |
const |
|
nodiscardoverridevirtual |
◆ validate()
| bool dotnamecpp::assets::AssetManager::validate |
( |
| ) |
const |
|
nodiscardoverridevirtual |
The documentation for this class was generated from the following files: