A Demo Project for the UnrealEngineSDK
|
It provides functionalities for handling events, sending events, and managing a private owner. It includes a Handlers map to store event handlers for different event types. More...
#include <BaseManager.h>
Classes | |
struct | THandlerComp |
struct | THandlerHash |
Public Member Functions | |
UBaseManager () | |
APlayerController * | GetPrivateOwner () const |
void | HandleEvent (UBaseEvent *Event) |
template<typename TEventType , typename... TInitializeArgs> | |
void | SendEvent (TInitializeArgs... Arguments) |
void | SetPrivateOwner (APlayerController *Owner) |
Protected Member Functions | |
void | HandleEvent_Impl (class UBaseEvent *Event) |
Protected Attributes | |
THandlers | Handlers |
Private Types | |
using | THandler = TFunction<void(UBaseEvent*)> |
using | THandlerKey = UClass* |
using | THandlers = std::unordered_map<THandlerKey, THandler, THandlerHash, THandlerComp> |
Private Member Functions | |
GENERATED_BODY () | |
Private Attributes | |
APlayerController * | PrivateOwner |
UPROPERTY() | |
It provides functionalities for handling events, sending events, and managing a private owner. It includes a Handlers map to store event handlers for different event types.
UCLASS()
Definition at line 31 of file BaseManager.h.
|
private |
Definition at line 56 of file BaseManager.h.
|
private |
Definition at line 55 of file BaseManager.h.
|
private |
Definition at line 74 of file BaseManager.h.
UBaseManager::UBaseManager | ( | ) |
Definition at line 6 of file BaseManager.cpp.
|
private |
|
inline |
void UBaseManager::HandleEvent | ( | UBaseEvent * | Event | ) |
Definition at line 11 of file BaseManager.cpp.
|
protected |
Definition at line 24 of file BaseManager.cpp.
|
inline |
Definition at line 40 of file BaseManager.h.
|
inline |
Definition at line 46 of file BaseManager.h.
|
protected |
Definition at line 77 of file BaseManager.h.
|
private |
UPROPERTY()
Definition at line 53 of file BaseManager.h.