]> git.localhorst.tv Git - blobs.git/blob - src/world/Resource.hpp
492a7f81f1d21a5a4cb90cbf89cfefed02a2760f
[blobs.git] / src / world / Resource.hpp
1 #ifndef BLOBS_WORLD_RESOURCE_HPP_
2 #define BLOBS_WORLD_RESOURCE_HPP_
3
4 #include <string>
5
6
7 namespace blobs {
8 namespace world {
9
10 struct Resource {
11
12         std::string name;
13         std::string label;
14
15         double density = 1.0;
16
17         int id = -1;
18
19         enum State {
20                 SOLID = 0,
21                 LIQUID = 1,
22                 GAS = 2,
23                 PLASMA = 3,
24         };
25         // the resource's natural state
26         // TODO: something about temperature and pressure and stuff
27         int state = SOLID;
28
29 };
30
31 }
32 }
33
34 #endif