aboutsummaryrefslogtreecommitdiffstats
path: root/include/engine.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/engine.hpp')
-rw-r--r--include/engine.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/engine.hpp b/include/engine.hpp
new file mode 100644
index 0000000..0fabdb3
--- /dev/null
+++ b/include/engine.hpp
@@ -0,0 +1,17 @@
+#ifndef ENGINE_HPP_
+#define ENGINE_HPP_
+
+#include <entityx/entityx.h>
+
+#include <events.hpp>
+
+namespace game {
+ extern entityx::EventManager events;
+ extern entityx::EntityManager entities;
+
+ inline void endGame(void) {
+ events.emit<GameEndEvent>();
+ }
+}
+
+#endif // ENGINE_HPP_