summaryrefslogtreecommitdiff
path: root/game/gamestate.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 18:04:00 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 18:04:00 +0000
commitc2421c3ac2018faf5d47205ee979acec181d9672 (patch)
tree53651bfd3e5839c8334862f311466041da5f4d91 /game/gamestate.h
parentUse Cache system to persist font rendering for Text (diff)
downloadilt-c2421c3ac2018faf5d47205ee979acec181d9672.tar.bz2
ilt-c2421c3ac2018faf5d47205ee979acec181d9672.tar.xz
ilt-c2421c3ac2018faf5d47205ee979acec181d9672.zip
Separate geographic data (GeoData) from its visual representation(s) (Terrain)
Diffstat (limited to 'game/gamestate.h')
-rw-r--r--game/gamestate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/gamestate.h b/game/gamestate.h
index b8dfa61..536c420 100644
--- a/game/gamestate.h
+++ b/game/gamestate.h
@@ -2,9 +2,11 @@
#define GAMESTATE_H
#include <collection.hpp>
+#include <memory>
#include <special_members.hpp>
class WorldObject;
+class GeoData;
class GameState {
public:
@@ -14,6 +16,7 @@ public:
NO_COPY(GameState);
Collection<WorldObject> world;
+ std::shared_ptr<GeoData> geoData;
};
extern GameState * gameState;