]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Resource.hpp
lose weight through exercise
[blobs.git] / src / world / Resource.hpp
index 6250fc67ac4a9424cb305dc7e66b14f12538dfb5..ad729c80160d8c84973a4a751d62458f1a397437 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,14 @@ 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;
+       int id = -1;
 
        enum State {
                SOLID = 0,
@@ -22,7 +28,9 @@ struct Resource {
        };
        // the resource's natural state
        // TODO: something about temperature and pressure and stuff
-       int state;
+       int state = SOLID;
+
+       glm::dvec3 base_color = glm::dvec3(1.0);
 
 };