This Class store a Specific Event type first and Dispatch a event handle function to it. More...
#include <Event.h>
Public Member Functions | |
| EventDispatcher (Event &event) | |
| Constructor Function. | |
| template<typename T > | |
| bool | Dispatch (EventFn< T > func) |
| Dispatch the specific Event handle function pointer to Event Class. | |
Private Types | |
| template<typename T > | |
| using | EventFn = std::function<bool(T&)> |
| Helper type of the function pointer to handle specific event. | |
Private Attributes | |
| Event & | m_Event |
| Store the specific Event reference. | |
This Class store a Specific Event type first and Dispatch a event handle function to it.