]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Assets.hpp
load block types from data file
[blank.git] / src / app / Assets.hpp
index 40623a21af6bdeb483e1f480eccdd3b3a3036a75..e6c209effdd7745b6c0d9ad6e798b47a131f1e9f 100644 (file)
@@ -9,6 +9,7 @@
 namespace blank {
 
 class ArrayTexture;
+class BlockTypeRegistry;
 class Sound;
 class Texture;
 
@@ -17,6 +18,7 @@ class Assets {
 public:
        explicit Assets(const std::string &base);
 
+       void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &) const;
        Font LoadFont(const std::string &name, int size) const;
        Sound LoadSound(const std::string &name) const;
        Texture LoadTexture(const std::string &name) const;
@@ -26,6 +28,7 @@ private:
        std::string fonts;
        std::string sounds;
        std::string textures;
+       std::string data;
 
 public:
        // common assets shared by may states