]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Assets.hpp
first draft for client/server architecture
[blank.git] / src / app / Assets.hpp
index 65c72fe04d73ad30a1fcf9d215244ad3dfe4ec66..d1a4ae710d0cc832fbcb155b2756eebcc9718cba 100644 (file)
@@ -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 &);
+
 };
 
 }