]> git.tdb.fi Git - libs/game.git/commit
Provide a way to request events for existing entities and components
authorMikko Rasa <tdb@tdb.fi>
Sat, 12 Nov 2022 15:49:27 +0000 (17:49 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 12 Nov 2022 16:02:52 +0000 (18:02 +0200)
commitfce6e7846814e54de9d38000d2f5e2295ee2119e
tree085ffb76a08161803b4077b2fa79cf05b1a09afe
parentdb01a6ed506ea2352b20f10b2694e249d2bba6c5
Provide a way to request events for existing entities and components

The iterate_objects function does not account for derived classes, so
iterating over all Entity instances might not actually give all entities
on the stage.
source/game/entity.h
source/game/eventbus.h
source/game/eventsource.h
source/game/stage.cpp
source/game/stage.h
source/gameview/renderer.cpp