X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FAssets.hpp;h=d1a4ae710d0cc832fbcb155b2756eebcc9718cba;hb=38a4cffc0b6aa58e49d24c06aad7bee14cb6515d;hp=40623a21af6bdeb483e1f480eccdd3b3a3036a75;hpb=5cd73a8f2b40e59ec13aa2a6af33bc8e2a6b9a6c;p=blank.git diff --git a/src/app/Assets.hpp b/src/app/Assets.hpp index 40623a2..d1a4ae7 100644 --- a/src/app/Assets.hpp +++ b/src/app/Assets.hpp @@ -9,29 +9,38 @@ namespace blank { class ArrayTexture; +class BlockTypeRegistry; class Sound; class Texture; +class TextureIndex; -class Assets { +class AssetLoader { public: - explicit Assets(const std::string &base); + explicit AssetLoader(const std::string &base); + void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &, TextureIndex &) const; Font LoadFont(const std::string &name, int size) const; Sound LoadSound(const std::string &name) const; Texture LoadTexture(const std::string &name) const; void LoadTexture(const std::string &name, ArrayTexture &, int layer) const; + void LoadTextures(const TextureIndex &, ArrayTexture &) const; private: std::string fonts; std::string sounds; std::string textures; + std::string data; + +}; + +struct Assets { -public: - // common assets shared by may states Font large_ui_font; Font small_ui_font; + Assets(const AssetLoader &); + }; }