X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FResource.hpp;h=3798d707ca03ea0cd38ffba2268c4e7de21bcac8;hb=HEAD;hp=6250fc67ac4a9424cb305dc7e66b14f12538dfb5;hpb=b795a1df619349d45c3b0ca73e61e68ff483221c;p=blobs.git diff --git a/src/world/Resource.hpp b/src/world/Resource.hpp index 6250fc6..3798d70 100644 --- a/src/world/Resource.hpp +++ b/src/world/Resource.hpp @@ -1,6 +1,9 @@ #ifndef BLOBS_WORLD_RESOURCE_HPP_ #define BLOBS_WORLD_RESOURCE_HPP_ +#include "../math/glm.hpp" + +#include #include @@ -9,10 +12,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 +29,11 @@ struct Resource { }; // the resource's natural state // TODO: something about temperature and pressure and stuff - int state; + State state = SOLID; + + glm::dvec3 base_color = glm::dvec3(1.0); + + std::map compatibility; };