X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fstage.h;h=dbffc9960bedb4fd89c55a232dd6dd91f0fb68c5;hb=6a93721ab67315e916f6c649b1f7bc5447d611a4;hp=47ca47d9a572b6c5742e5a5279877d5af983584c;hpb=b644c89c81d89f60a0d82fe208fc76ce1c278a4c;p=libs%2Fgame.git diff --git a/source/game/stage.h b/source/game/stage.h index 47ca47d..dbffc99 100644 --- a/source/game/stage.h +++ b/source/game/stage.h @@ -3,6 +3,7 @@ #include #include +#include "eventbus.h" #include "handle.h" namespace Msp::Game { @@ -14,6 +15,7 @@ class Stage { private: PoolPool pools; + EventBus event_bus; /* Use unique_ptr because there's only one root per stage so it's pointless to put it in a pool. */ std::unique_ptr root; @@ -24,6 +26,7 @@ public: ~Stage(); PoolPool &get_pools() { return pools; } + EventBus &get_event_bus() { return event_bus; } Handle get_root() { return Handle::from_object(root.get()); } template