#include <unordered_map>
#include "CoreMinimal.h"
#include "EventLogService.h"
#include "UObject/Object.h"
#include "BaseManager.generated.h"
Go to the source code of this file.
|
template<typename TManagerType > |
PRAGMA_ENABLE_OPTIMIZATION FUNCTION_NON_NULL_RETURN_START TManagerType * | NewManager (APlayerController *Owner, UClass *TargetManagerClass) FUNCTION_NON_NULL_RETURN_END |
|
◆ DECLARE_EVENT_HANDLER
#define DECLARE_EVENT_HANDLER |
( |
| TEvent | ) |
protected: void HandleEvent_Impl(class TEvent* Event); |
◆ DEFINE_EVENT_HANDLER
#define DEFINE_EVENT_HANDLER |
( |
| TEventType | ) |
|
Value:static_assert(std::is_base_of<UBaseEvent, TEventType>::value, "Trying to create definiton for invalid event"); \
Handlers[TEventType::StaticClass()] = [
this](
UBaseEvent* Event) ->
void \
{ \
HandleEvent_Impl(Cast<TEventType>(Event)); \
};
The UBaseEvent class serves as the base class for all events for our event-managers system....
Definition at line 13 of file BaseManager.h.
◆ NewManager()
template<typename TManagerType >
PRAGMA_ENABLE_OPTIMIZATION FUNCTION_NON_NULL_RETURN_START TManagerType * NewManager |
( |
APlayerController * | Owner, |
|
|
UClass * | TargetManagerClass ) |