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