X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fworld%2FResource.hpp;h=492a7f81f1d21a5a4cb90cbf89cfefed02a2760f;hp=6250fc67ac4a9424cb305dc7e66b14f12538dfb5;hb=8f6530c75730f901efd6708e4fde7e68a178adf1;hpb=c51b3bbef5c9b8ab52f55d46f08c5992fe574f70 diff --git a/src/world/Resource.hpp b/src/world/Resource.hpp index 6250fc6..492a7f8 100644 --- a/src/world/Resource.hpp +++ b/src/world/Resource.hpp @@ -12,7 +12,9 @@ struct Resource { std::string name; std::string label; - int id; + double density = 1.0; + + int id = -1; enum State { SOLID = 0, @@ -22,7 +24,7 @@ struct Resource { }; // the resource's natural state // TODO: something about temperature and pressure and stuff - int state; + int state = SOLID; };