]> git.localhorst.tv Git - blank.git/blob - src/app/Assets.hpp
load block types from data file
[blank.git] / src / app / Assets.hpp
1 #ifndef BLANK_APP_ASSETS_HPP_
2 #define BLANK_APP_ASSETS_HPP_
3
4 #include "../graphics/Font.hpp"
5
6 #include <string>
7
8
9 namespace blank {
10
11 class ArrayTexture;
12 class BlockTypeRegistry;
13 class Sound;
14 class Texture;
15
16 class Assets {
17
18 public:
19         explicit Assets(const std::string &base);
20
21         void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &) const;
22         Font LoadFont(const std::string &name, int size) const;
23         Sound LoadSound(const std::string &name) const;
24         Texture LoadTexture(const std::string &name) const;
25         void LoadTexture(const std::string &name, ArrayTexture &, int layer) const;
26
27 private:
28         std::string fonts;
29         std::string sounds;
30         std::string textures;
31         std::string data;
32
33 public:
34         // common assets shared by may states
35         Font large_ui_font;
36         Font small_ui_font;
37
38 };
39
40 }
41
42 #endif