1 #ifndef BLOBS_APP_ASSETS_HPP_
2 #define BLOBS_APP_ASSETS_HPP_
4 #include "../graphics/AlphaSprite.hpp"
5 #include "../graphics/ArrayTexture.hpp"
6 #include "../graphics/Canvas.hpp"
7 #include "../graphics/CreatureSkin.hpp"
8 #include "../graphics/Font.hpp"
9 #include "../graphics/PlanetSurface.hpp"
10 #include "../graphics/SunSurface.hpp"
11 #include "../world/Resource.hpp"
12 #include "../world/Set.hpp"
13 #include "../world/TileType.hpp"
20 class TokenStreamReader;
27 std::string data_path;
28 std::string font_path;
29 std::string skin_path;
30 std::string tile_path;
33 world::Set<world::Resource> resources;
34 world::Set<world::TileType> tile_types;
39 graphics::Font medium;
44 graphics::ArrayTexture tiles;
45 graphics::ArrayTexture skins;
49 graphics::AlphaSprite alpha_sprite;
50 graphics::Canvas canvas;
51 graphics::PlanetSurface planet_surface;
52 graphics::SunSurface sun_surface;
53 graphics::CreatureSkin creature_skin;
59 Assets(const Assets &) = delete;
60 Assets &operator =(const Assets &) = delete;
62 Assets(Assets &&) = delete;
63 Assets &operator =(Assets &&) = delete;
65 void ReadResources(io::TokenStreamReader &);
66 void ReadTileTypes(io::TokenStreamReader &);
68 void LoadTileTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
69 void LoadSkinTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;