DotNameLib
Loading...
Searching...
No Matches
AssetManagerFactory.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <filesystem>
6#include <memory>
7#include <string>
8
9namespace dotnamecpp::assets {
11 public:
19 static std::shared_ptr<IAssetManager> createDefault(const std::filesystem::path &executablePath,
20 const std::string &appName) {
21 return AssetManager::create(executablePath, appName);
22 }
23
30 static std::shared_ptr<IAssetManager> create(std::filesystem::path assetsPath) {
31 return std::make_shared<AssetManager>(std::move(assetsPath));
32 }
33 };
34
35} // namespace dotnamecpp::assets
Definition AssetManagerFactory.hpp:10
static std::shared_ptr< IAssetManager > create(std::filesystem::path assetsPath)
Create an Asset Manager object with a specified assets path.
Definition AssetManagerFactory.hpp:30
static std::shared_ptr< IAssetManager > createDefault(const std::filesystem::path &executablePath, const std::string &appName)
Create a Default object.
Definition AssetManagerFactory.hpp:19
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 AssetManager.cpp:4