]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Assets.hpp
group entity updates in as few packets as possible
[blank.git] / src / app / Assets.hpp
index 6e1698a6fc94105d0893b2f1ee0259f80bf608dc..d1a4ae710d0cc832fbcb155b2756eebcc9718cba 100644 (file)
@@ -1,30 +1,45 @@
 #ifndef BLANK_APP_ASSETS_HPP_
 #define BLANK_APP_ASSETS_HPP_
 
+#include "../graphics/Font.hpp"
+
 #include <string>
 
 
 namespace blank {
 
 class ArrayTexture;
-class Font;
+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 {
+
+       Font large_ui_font;
+       Font small_ui_font;
+
+       Assets(const AssetLoader &);
 
 };