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