1#ifndef UTIL_ASSET_STORE_HPP
2#define UTIL_ASSET_STORE_HPP
40 void Load(
const std::string &filepath);
52 T
Get(
const std::string &filepath);
64 void Remove(
const std::string &filepath);
67 std::function<T(
const std::string &)> m_Loader;
69 std::unordered_map<std::string, T> m_Map;
73#include "Util/AssetStore.inl"
A class template for managing assets.
Definition: AssetStore.hpp:20
AssetStore(std::function< T(const std::string &)> loader)
Constructs an AssetStore object with the specified loader function.
Definition: AssetStore.hpp:29
void Remove(const std::string &filepath)
Removes the asset associated with the specified filepath from the store.
Definition: AssetStore.inl:22
void Load(const std::string &filepath)
Preload resources for future use.
Definition: AssetStore.inl:5
T Get(const std::string &filepath)
Retrieves the asset associated with the specified filepath.
Definition: AssetStore.inl:10
Useful tools for development.
Definition: Animation.hpp:12