X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=examples%2Fbassteroids%2Fsource%2Fphysics.cpp;h=158b745ca83f6e0af19597e7fc7e4df9876e8365;hb=423b49f2857f8e1597b652bfd41dbf3ae45f7ec5;hp=73d858295db7df316f55a7e8396c9312e09c5c81;hpb=338031de484ee117762d80449d9ca472a6918c92;p=libs%2Fgame.git diff --git a/examples/bassteroids/source/physics.cpp b/examples/bassteroids/source/physics.cpp index 73d8582..158b745 100644 --- a/examples/bassteroids/source/physics.cpp +++ b/examples/bassteroids/source/physics.cpp @@ -11,6 +11,10 @@ Physics::Physics(Game::Stage &s): event_source(stage.get_event_bus()), observer(stage.get_event_bus()) { + declare_dependency(UPDATE); + declare_dependency(UPDATE); + declare_dependency(READ_OLD); + observer.observe([this](auto &e){ entity_added(e); }); observer.observe([this](auto &e){ entity_removed(e); });