]> git.localhorst.tv Git - blobs.git/blob - src/world/Resource.hpp
load resource colors
[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
19         int id = -1;
20
21         enum State {
22                 SOLID = 0,
23                 LIQUID = 1,
24                 GAS = 2,
25                 PLASMA = 3,
26         };
27         // the resource's natural state
28         // TODO: something about temperature and pressure and stuff
29         int state = SOLID;
30
31         glm::dvec3 base_color = glm::dvec3(1.0);
32
33 };
34
35 }
36 }
37
38 #endif