A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
BaseManager.cpp
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
5
10
12{
13 if (ensure(Event))
14 {
15 auto HandlerIter = Handlers.find(Event->GetClass());
16 if (HandlerIter != Handlers.end())
17 {
18 // std::pair<THadnlerKey, THandler>
19 (*HandlerIter).second(Event);
20 }
21 }
22}
23
25{
26 LowLevelFatalError(TEXT("Valid DEFINE_EVENT_HANDLER(%s) was not found. Add proper call to the Manager class."), *Event->GetClass()->GetName())
27}
#define DEFINE_EVENT_HANDLER(TEventType)
Definition BaseManager.h:13
The UBaseEvent class serves as the base class for all events for our event-managers system....
Definition BaseEvent.h:83
void HandleEvent_Impl(class UBaseEvent *Event)
void HandleEvent(UBaseEvent *Event)
THandlers Handlers
Definition BaseManager.h:77