#pragma once #include #include #include #include namespace crepe::api { class AssetManager { private: std::unordered_map asset_cache; private: AssetManager(); virtual ~AssetManager(); public: AssetManager(const AssetManager &) = delete; AssetManager(AssetManager &&) = delete; AssetManager & operator=(const AssetManager &) = delete; AssetManager & operator=(AssetManager &&) = delete; static AssetManager & get_instance(); public: template std::shared_ptr cache(const std::string & file_path, bool reload = false); }; } // namespace crepe::api #include "AssetManager.hpp"