24 static std::unique_ptr<IAssetManager>
create(
const std::filesystem::path &executablePath,
25 const std::string &appName);
31 std::filesystem::path
resolveAsset(
const std::filesystem::path &relativePath)
const override;
34 bool assetExists(
const std::filesystem::path &relativePath)
const override;
40 std::filesystem::path assetsPath_;
41 mutable std::mutex mutex_;
42 static std::filesystem::path findAssetsPath(
const std::filesystem::path &executablePath,
43 const std::string &appName);
bool assetExists(const std::filesystem::path &relativePath) const override
Check if an asset exists given its relative path.
Definition AssetManager.cpp:26
bool validate() const override
Validate the asset manager configuration.
Definition AssetManager.cpp:31
std::filesystem::path resolveAsset(const std::filesystem::path &relativePath) const override
Resolve the full path of an asset given its relative path.
Definition AssetManager.cpp:21
const std::filesystem::path & getAssetsPath() const override
Get the Assets Path object.
Definition AssetManager.cpp:15
AssetManager(std::filesystem::path assetsPath)
Construct a new Asset Manager object.
Definition AssetManager.cpp:6
static std::unique_ptr< IAssetManager > create(const std::filesystem::path &executablePath, const std::string &appName)
Create a new Asset Manager instance.
Definition AssetManager.cpp:9
Definition IAssetManager.hpp:6
Definition AssetManager.cpp:4