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 "../math/GaloisLFSR.hpp"
12 #include "../world/Resource.hpp"
13 #include "../world/Set.hpp"
14 #include "../world/TileType.hpp"
21 class TokenStreamReader;
28 std::string data_path;
29 std::string font_path;
30 std::string skin_path;
31 std::string tile_path;
33 math::GaloisLFSR random;
36 world::Set<world::Resource> resources;
37 world::Set<world::TileType> tile_types;
42 graphics::Font medium;
47 graphics::ArrayTexture tiles;
48 graphics::ArrayTexture skins;
52 graphics::AlphaSprite alpha_sprite;
53 graphics::Canvas canvas;
54 graphics::PlanetSurface planet_surface;
55 graphics::SunSurface sun_surface;
56 graphics::CreatureSkin creature_skin;
62 Assets(const Assets &) = delete;
63 Assets &operator =(const Assets &) = delete;
65 Assets(Assets &&) = delete;
66 Assets &operator =(Assets &&) = delete;
68 void ReadResources(io::TokenStreamReader &);
69 void ReadTileTypes(io::TokenStreamReader &);
71 void LoadTileTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
72 void LoadSkinTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;