]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/eventbus.h
Decorate things which constitute the public API of the library
[libs/game.git] / source / game / eventbus.h
index a4de18f2bb24c699fb73aea61794b73578cdba77..95fc068254ebd297dc2103a4e15a6eed08fea9ba 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <functional>
 #include <vector>
+#include <msp/core/noncopyable.h>
+#include "mspgame_api.h"
 
 namespace Msp::Game {
 
@@ -30,7 +32,7 @@ struct EventDispatcher
 };
 
 
-class EventBus
+class MSPGAME_API EventBus: public NonCopyable
 {
 private:
        using DeleteFunc = void(void *);
@@ -45,6 +47,10 @@ private:
 
        std::vector<Dispatcher> dispatchers;
 
+public:
+       ~EventBus();
+
+private:
        static unsigned get_next_id();
 
 public: