SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::EventDispatcher Class Reference

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

Eventm_Event
 Store the specific Event reference.
 

Detailed Description

This Class store a Specific Event type first and Dispatch a event handle function to it.

Definition at line 155 of file Event.h.


The documentation for this class was generated from the following file: