A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UBaseManager Class Reference

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>

Inheritance diagram for UBaseManager:
[legend]

Classes

struct  THandlerComp
 
struct  THandlerHash
 

Public Member Functions

 UBaseManager ()
 
APlayerControllerGetPrivateOwner () 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

APlayerControllerPrivateOwner
 UPROPERTY()
 

Detailed Description

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.

Member Typedef Documentation

◆ THandler

using UBaseManager::THandler = TFunction<void(UBaseEvent*)>
private

Definition at line 56 of file BaseManager.h.

◆ THandlerKey

using UBaseManager::THandlerKey = UClass*
private

Definition at line 55 of file BaseManager.h.

◆ THandlers

using UBaseManager::THandlers = std::unordered_map<THandlerKey, THandler, THandlerHash, THandlerComp>
private

Definition at line 74 of file BaseManager.h.

Constructor & Destructor Documentation

◆ UBaseManager()

UBaseManager::UBaseManager ( )

Definition at line 6 of file BaseManager.cpp.

Member Function Documentation

◆ GENERATED_BODY()

UBaseManager::GENERATED_BODY ( )
private

◆ GetPrivateOwner()

APlayerController * UBaseManager::GetPrivateOwner ( ) const
inline

Definition at line 47 of file BaseManager.h.

Here is the caller graph for this function:

◆ HandleEvent()

void UBaseManager::HandleEvent ( UBaseEvent * Event)

Definition at line 11 of file BaseManager.cpp.

◆ HandleEvent_Impl()

void UBaseManager::HandleEvent_Impl ( class UBaseEvent * Event)
protected

Definition at line 24 of file BaseManager.cpp.

◆ SendEvent()

template<typename TEventType , typename... TInitializeArgs>
void UBaseManager::SendEvent ( TInitializeArgs... Arguments)
inline

Definition at line 40 of file BaseManager.h.

◆ SetPrivateOwner()

void UBaseManager::SetPrivateOwner ( APlayerController * Owner)
inline

Definition at line 46 of file BaseManager.h.

Member Data Documentation

◆ Handlers

THandlers UBaseManager::Handlers
protected

Definition at line 77 of file BaseManager.h.

◆ PrivateOwner

APlayerController* UBaseManager::PrivateOwner
private

UPROPERTY()

Definition at line 53 of file BaseManager.h.


The documentation for this class was generated from the following files: