]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Resource.hpp
load resource colors
[blobs.git] / src / world / Resource.hpp
index 5dd383442952b53e7ee9783288840c1ad1d534dd..3abe8f3b83c11f4b5fb57d2b8304bf46d83eab2c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BLOBS_WORLD_RESOURCE_HPP_
 #define BLOBS_WORLD_RESOURCE_HPP_
 
+#include "../math/glm.hpp"
+
 #include <string>
 
 
@@ -9,10 +11,24 @@ namespace world {
 
 struct Resource {
 
-       std::string name;
-       std::string label;
+       std::string name = "";
+       std::string label = "";
+
+       double density = 1.0;
+
+       int id = -1;
+
+       enum State {
+               SOLID = 0,
+               LIQUID = 1,
+               GAS = 2,
+               PLASMA = 3,
+       };
+       // the resource's natural state
+       // TODO: something about temperature and pressure and stuff
+       int state = SOLID;
 
-       int id;
+       glm::dvec3 base_color = glm::dvec3(1.0);
 
 };