14 : mockPath_(std::move(mockPath)), mockExists_(true), mockValid_(true) {}
22 std::filesystem::path
resolveAsset(
const std::filesystem::path &relativePath)
const override {
23 return mockPath_ / relativePath;
27 bool assetExists(
const std::filesystem::path & )
const override {
42 std::filesystem::path mockPath_;
MockAssetManager(std::filesystem::path mockPath)
Definition MockAssetManager.hpp:13
const std::filesystem::path & getAssetsPath() const override
Get the Assets Path object.
Definition MockAssetManager.hpp:17
void setMockValid(bool valid)
Definition MockAssetManager.hpp:39
bool validate() const override
Validate the asset manager configuration.
Definition MockAssetManager.hpp:32
std::filesystem::path resolveAsset(const std::filesystem::path &relativePath) const override
Resolve the full path of an asset given its relative path.
Definition MockAssetManager.hpp:22
void setMockExists(bool exists)
Definition MockAssetManager.hpp:37
bool assetExists(const std::filesystem::path &) const override
Check if an asset exists given its relative path.
Definition MockAssetManager.hpp:27
Definition IAssetManager.hpp:6