]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Resource.hpp
scale compatibility to same state resources only
[blobs.git] / src / world / Resource.hpp
index 492a7f81f1d21a5a4cb90cbf89cfefed02a2760f..3798d707ca03ea0cd38ffba2268c4e7de21bcac8 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef BLOBS_WORLD_RESOURCE_HPP_
 #define BLOBS_WORLD_RESOURCE_HPP_
 
+#include "../math/glm.hpp"
+
+#include <map>
 #include <string>
 
 
@@ -9,10 +12,12 @@ namespace world {
 
 struct Resource {
 
-       std::string name;
-       std::string label;
+       std::string name = "";
+       std::string label = "";
 
        double density = 1.0;
+       double energy = 1.0;
+       double inverse_energy = 1.0;
 
        int id = -1;
 
@@ -24,7 +29,11 @@ struct Resource {
        };
        // the resource's natural state
        // TODO: something about temperature and pressure and stuff
-       int state = SOLID;
+       State state = SOLID;
+
+       glm::dvec3 base_color = glm::dvec3(1.0);
+
+       std::map<int, double> compatibility;
 
 };