]> 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 ad729c80160d8c84973a4a751d62458f1a397437..3798d707ca03ea0cd38ffba2268c4e7de21bcac8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "../math/glm.hpp"
 
+#include <map>
 #include <string>
 
 
@@ -28,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;
+
 };
 
 }