public
This commit is contained in:
parent
801705469d
commit
72fc594aa2
1 changed files with 4 additions and 4 deletions
|
|
@ -58,12 +58,12 @@ namespace Crafter {
|
||||||
// Base implementation for Event<T> - common functionality
|
// Base implementation for Event<T> - common functionality
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class EventBase {
|
class EventBase {
|
||||||
protected:
|
public:
|
||||||
std::map<int, std::vector<EventListener<T>*>> listeners;
|
|
||||||
|
|
||||||
#ifdef CRAFTER_TIMING
|
#ifdef CRAFTER_TIMING
|
||||||
std::map<const EventListener<T>*, std::chrono::nanoseconds> listenerTimes;
|
std::map<const EventListener<T>*, std::chrono::nanoseconds> listenerTimes;
|
||||||
#endif
|
#endif
|
||||||
|
protected:
|
||||||
|
std::map<int, std::vector<EventListener<T>*>> listeners;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EventBase() = default;
|
EventBase() = default;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue