![]() |
A Demo Project for the UnrealEngineSDK
|
Manager for managing player experience, accepts various events such as player teleportation, and can be expanded with properties that allow access to actors on the level. More...
#include <GameManager.h>
Public Member Functions | |
UGameManager () | |
DECLARE_EVENT_HANDLER (UInitializationEvent) | |
DECLARE_EVENT_HANDLER (UNewStepLoadedEvent) | |
DECLARE_EVENT_HANDLER (UNewStoryLoadedEvent) | |
APlayerController * | GetPrivateOwner () const |
void | HandleEvent (UBaseEvent *Event) |
void | OnNewStepLoaded (const FText &StepName) |
Function for overriding. Called when a new step is loaded. | |
void | OnNewStoryLoaded (const FText &StepName) |
Function for overriding. Called when a new story is loaded. | |
void | OnTeleportActivatedRaw (EControllerHand Hand, bool InActivate) |
Function for overriding. Called when teleportation is activated. | |
template<typename TEventType , typename... TInitializeArgs> | |
void | SendEvent (TInitializeArgs... Arguments) |
void | SetPrivateOwner (APlayerController *Owner) |
Public Attributes | |
FText | CurrentStep |
UPROPERTY(BlueprintReadWrite, Category = "GameManager") | |
AGameModeBase * | GameModeBaseRef |
UPROPERTY(BlueprintReadWrite, Category = "GameManager") | |
bool | IsUsingStoryScriptData = false |
UPROPERTY(EditDefaultsOnly, Category = "GameManager|Script") | |
APixoVRCharacter * | PlayerPawnRef |
UPROPERTY(BlueprintReadWrite, Category = "GameManager") | |
TArray< FScriptInstanceData > | ScriptInstancesData |
UPROPERTY(BlueprintReadOnly, Category = "GamaManager|Script") | |
USoundManager * | SoundManagerRef |
UPROPERTY(BlueprintReadWrite, Category = "GameManager") | |
UStoryManager * | StoryManagerRef |
UPROPERTY(BlueprintReadWrite, Category = "GameManager") | |
UStoryScriptClassData * | StoryScriptClassData |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "GameManager|Script") | |
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() | |
Manager for managing player experience, accepts various events such as player teleportation, and can be expanded with properties that allow access to actors on the level.
UCLASS(Blueprintable)
Definition at line 20 of file GameManager.h.
|
privateinherited |
Definition at line 56 of file BaseManager.h.
|
privateinherited |
Definition at line 55 of file BaseManager.h.
|
privateinherited |
Definition at line 74 of file BaseManager.h.
UGameManager::UGameManager | ( | ) |
Definition at line 12 of file GameManager.cpp.
UGameManager::DECLARE_EVENT_HANDLER | ( | UInitializationEvent | ) |
UGameManager::DECLARE_EVENT_HANDLER | ( | UNewStepLoadedEvent | ) |
UGameManager::DECLARE_EVENT_HANDLER | ( | UNewStoryLoadedEvent | ) |
|
private |
|
inlineinherited |
|
inherited |
Definition at line 11 of file BaseManager.cpp.
|
protectedinherited |
Definition at line 24 of file BaseManager.cpp.
|
BlueprintImplementableEvent |
Function for overriding. Called when a new step is loaded.
StepName | The name of the newly loaded step. |
UFUNCTION(BlueprintImplementableEvent, Category = "GameManager")
|
BlueprintImplementableEvent |
Function for overriding. Called when a new story is loaded.
StepName | The name of the first loaded step in this story. |
UFUNCTION(BlueprintImplementableEvent, Category = "GameManager")
|
BlueprintNativeEvent |
Function for overriding. Called when teleportation is activated.
Hand | Hand by which teleport was executed |
InActivate | Indicates whether the teleportation is being activated (true when showing teleport circle, false when executing teleport). |
UFUNCTION(BlueprintNativeEvent, Category = "GameManager")
|
inlineinherited |
Definition at line 40 of file BaseManager.h.
|
inlineinherited |
Definition at line 46 of file BaseManager.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "GameManager")
The current step name.
Definition at line 68 of file GameManager.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "GameManager")
Reference to the GameModeBase.
Definition at line 92 of file GameManager.h.
|
protectedinherited |
Definition at line 77 of file BaseManager.h.
|
EditDefaultsOnly |
UPROPERTY(EditDefaultsOnly, Category = "GameManager|Script")
Flag indicating whether the StoryScriptClassData is being used.
Definition at line 106 of file GameManager.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "GameManager")
Reference to the PixoVRCharacter.
Definition at line 86 of file GameManager.h.
|
privateinherited |
UPROPERTY()
Definition at line 53 of file BaseManager.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Category = "GamaManager|Script")
Array of script instance data.
Definition at line 112 of file GameManager.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "GameManager")
Reference to the StoryManager/
Definition at line 74 of file GameManager.h.
|
BlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Category = "GameManager")
Reference to the StoryManager.
Definition at line 80 of file GameManager.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "GameManager|Script")
The data asset containing the script class data. Setup this if you are using story scripts
Definition at line 99 of file GameManager.h.