]> git.localhorst.tv Git - blobs.git/blob - src/world/TileType.hpp
b5561fffa7a014875975c1325b96f84a456883a2
[blobs.git] / src / world / TileType.hpp
1 #ifndef BLOBS_WORLD_TILETYPE_HPP_
2 #define BLOBS_WORLD_TILETYPE_HPP_
3
4 #include <string>
5 #include <vector>
6
7
8 namespace blobs {
9 namespace world {
10
11 struct TileType {
12
13         std::string name;
14         std::string label;
15
16         int id;
17         int texture;
18
19         struct Yield {
20                 int resource;
21                 double ubiquity;
22         };
23         std::vector<Yield> resources;
24
25         std::vector<Yield>::const_iterator FindResource(int) const;
26
27 };
28
29 }
30 }
31
32 #endif