X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FResource.hpp;h=ad729c80160d8c84973a4a751d62458f1a397437;hb=a1b5d6dbc13d185b9ac459e421ae44b3ef8ce133;hp=492a7f81f1d21a5a4cb90cbf89cfefed02a2760f;hpb=8f6530c75730f901efd6708e4fde7e68a178adf1;p=blobs.git diff --git a/src/world/Resource.hpp b/src/world/Resource.hpp index 492a7f8..ad729c8 100644 --- a/src/world/Resource.hpp +++ b/src/world/Resource.hpp @@ -1,6 +1,8 @@ #ifndef BLOBS_WORLD_RESOURCE_HPP_ #define BLOBS_WORLD_RESOURCE_HPP_ +#include "../math/glm.hpp" + #include @@ -9,10 +11,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; @@ -26,6 +30,8 @@ struct Resource { // TODO: something about temperature and pressure and stuff int state = SOLID; + glm::dvec3 base_color = glm::dvec3(1.0); + }; }