]> 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 3abe8f3b83c11f4b5fb57d2b8304bf46d83eab2c..3798d707ca03ea0cd38ffba2268c4e7de21bcac8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "../math/glm.hpp"
 
+#include <map>
 #include <string>
 
 
@@ -15,6 +16,8 @@ struct Resource {
        std::string label = "";
 
        double density = 1.0;
+       double energy = 1.0;
+       double inverse_energy = 1.0;
 
        int id = -1;
 
@@ -26,10 +29,12 @@ 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;
+
 };
 
 }