1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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_