[keel] Make AssetTypeManager(Loader) move loader
All checks were successful
Build / build (push) Successful in 3m23s
All checks were successful
Build / build (push) Successful in 3m23s
This commit is contained in:
parent
f50367f7d5
commit
ede2c8ca37
@ -202,7 +202,7 @@ class AssetManager {
|
|||||||
ox::HashMap<ox::String, ox::UPtr<AssetContainer<T>>> m_cache;
|
ox::HashMap<ox::String, ox::UPtr<AssetContainer<T>>> m_cache;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AssetTypeManager(Loader loader) noexcept: m_loader(loader) {}
|
AssetTypeManager(Loader &&loader) noexcept: m_loader(std::move(loader)) {}
|
||||||
|
|
||||||
ox::Result<AssetRef<T>> getAsset(ox::StringView const assetId) const noexcept {
|
ox::Result<AssetRef<T>> getAsset(ox::StringView const assetId) const noexcept {
|
||||||
OX_REQUIRE(out, m_cache.at(assetId));
|
OX_REQUIRE(out, m_cache.at(assetId));
|
||||||
|
Loading…
Reference in New Issue
Block a user