summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-23 21:01:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-23 21:01:09 +0000
commit5edabac3544f2d270044a6bfe4f0e9709b3799a4 (patch)
treedeaac147a2e3ed3bcfb2180157fca3d5fb251383
parentSupport using typed collections for subclass filtering (diff)
downloadilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.tar.bz2
ilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.tar.xz
ilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.zip
Add Renderable typed collection to GameState worldObjects
-rw-r--r--game/gamestate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/gamestate.h b/game/gamestate.h
index c5ad239..85cb5db 100644
--- a/game/gamestate.h
+++ b/game/gamestate.h
@@ -8,6 +8,7 @@
class WorldObject;
class Terrain;
class Environment;
+class Renderable;
class GameState {
public:
@@ -16,7 +17,7 @@ public:
NO_MOVE(GameState);
NO_COPY(GameState);
- SharedCollection<WorldObject> world;
+ SharedCollection<WorldObject, Renderable> world;
std::shared_ptr<Terrain> terrain;
std::shared_ptr<Environment> environment;
AssetFactory::Assets assets;