|
wren
Vulkan-based game engine
|
#include <event.hpp>
Public Member Functions | |
| template<typename T> | |
| void | dispatch (T &&value) const |
| template<typename T> | |
| void | on (std::function< void(const T &t)> cb) |
| template<typename Type> | |
| void | dispatch (Type &&value) const |
| template<typename Type> | |
| void | on (std::function< void(const Type &)> func) |
Private Attributes | |
| std::unordered_map< size_t, std::vector< std::function< void(void *)> > > | handlers_ |
| void wren::event::Dispatcher::dispatch | ( | T && | value | ) | const |

| void wren::event::Dispatcher::dispatch | ( | Type && | value | ) | const |
| void wren::event::Dispatcher::on | ( | std::function< void(const T &t)> | cb | ) |

| void wren::event::Dispatcher::on | ( | std::function< void(const Type &)> | func | ) |
|
private |