diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-23 21:01:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-23 21:01:09 +0000 |
commit | 5edabac3544f2d270044a6bfe4f0e9709b3799a4 (patch) | |
tree | deaac147a2e3ed3bcfb2180157fca3d5fb251383 /game | |
parent | Support using typed collections for subclass filtering (diff) | |
download | ilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.tar.bz2 ilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.tar.xz ilt-5edabac3544f2d270044a6bfe4f0e9709b3799a4.zip |
Add Renderable typed collection to GameState worldObjects
Diffstat (limited to 'game')
-rw-r--r-- | game/gamestate.h | 3 |
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; |