aboutsummaryrefslogtreecommitdiffstats
path: root/include/engine.hpp
blob: 0fabdb34fa6f38f4ae2ad6f9bf6fe24aa50bec3a (plain)
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_