DotNameLib
Loading...
Searching...
No Matches
IAssetManager.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
5namespace dotnamecpp::assets {
7 public:
8 virtual ~IAssetManager() = default;
9
15 [[nodiscard]]
16 virtual const std::filesystem::path &getAssetsPath() const = 0;
17
24 [[nodiscard]]
25 virtual std::filesystem::path resolveAsset(const std::filesystem::path &relativePath) const = 0;
26
34 [[nodiscard]]
35 virtual bool assetExists(const std::filesystem::path &relativePath) const = 0;
36
43 [[nodiscard]]
44 virtual bool validate() const = 0;
45 };
46
47} // namespace dotnamecpp::assets
Definition IAssetManager.hpp:6
virtual bool validate() const =0
Validate the asset manager configuration.
virtual const std::filesystem::path & getAssetsPath() const =0
Get the Assets Path object.
virtual std::filesystem::path resolveAsset(const std::filesystem::path &relativePath) const =0
Resolve the full path of an asset given its relative path.
virtual bool assetExists(const std::filesystem::path &relativePath) const =0
Check if an asset exists given its relative path.
Definition AssetManager.cpp:4