X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FAssets.hpp;fp=src%2Fapp%2FAssets.hpp;h=d1a4ae710d0cc832fbcb155b2756eebcc9718cba;hb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;hp=65c72fe04d73ad30a1fcf9d215244ad3dfe4ec66;hpb=f27b8bb27fa87487bb5d29a1456e610255287b04;p=blank.git diff --git a/src/app/Assets.hpp b/src/app/Assets.hpp index 65c72fe..d1a4ae7 100644 --- a/src/app/Assets.hpp +++ b/src/app/Assets.hpp @@ -14,10 +14,10 @@ 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; @@ -32,11 +32,15 @@ private: std::string textures; std::string data; -public: - // common assets shared by may states +}; + +struct Assets { + Font large_ui_font; Font small_ui_font; + Assets(const AssetLoader &); + }; }