diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-20 20:17:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-20 20:17:44 +0100 |
commit | 489fa7f930689dc9ff271138e613a8d68d88ee45 (patch) | |
tree | f4f4b3c8ca55e08f797dc04e0ba3d745133fba13 /game/gamestate.cpp | |
parent | Update getSunPos to use a standard time_t (diff) | |
download | ilt-489fa7f930689dc9ff271138e613a8d68d88ee45.tar.bz2 ilt-489fa7f930689dc9ff271138e613a8d68d88ee45.tar.xz ilt-489fa7f930689dc9ff271138e613a8d68d88ee45.zip |
Add basic environment object
Will hold world time/date, weather, location etc
Diffstat (limited to 'game/gamestate.cpp')
-rw-r--r-- | game/gamestate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/gamestate.cpp b/game/gamestate.cpp index fcd4248..910e8a7 100644 --- a/game/gamestate.cpp +++ b/game/gamestate.cpp @@ -1,4 +1,5 @@ #include "gamestate.h" +#include "environment.h" #include <cassert> GameState * gameState {nullptr}; @@ -7,6 +8,8 @@ GameState::GameState() { assert(!gameState); gameState = this; + + environment = world.create<Environment>(); } GameState::~GameState() |