A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
ApexReportingManager.h
Go to the documentation of this file.
1//Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "ApexAPI.h"
9#include "ApexReportingManager.generated.h"
10
14UCLASS(Blueprintable, meta=(ShowWorldContextPin))
15class PIXOCORE_API UApexReportingManager : public UBaseManager
16{
19public:
20 //Manager event declaration
27public:
29
35 UFUNCTION(BlueprintCallable)
36 void CompleteApexSession(bool Completed, bool Success);
37
41 UFUNCTION(BlueprintNativeEvent)
42 FXAPIStatement GetStatementData();
43
44 UFUNCTION(BlueprintImplementableEvent)
45 void OnInitialized();
46
50 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Setup")
51 bool UseDefaultSessionStart = true;
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Setup")
56 bool UseReportingEachStep = true;
60 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Setup")
61 bool UseDefaultSessionEnd = true;
65 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Setup")
66 int32 ScoreFactor = 1;
68protected:
69 int32 GetAmountOfCompletedSteps(const TArray<FPassedExperiences> PassedExperiences) const;
74 int32 GetApexSessionDuration();
75
76 UPROPERTY(BlueprintReadOnly)
77 UApexAPI* ApexSubSystem;
78 UPROPERTY(BlueprintReadOnly)
79 FText CurrentStep;
80
81 FDateTime ApexStartTime;
82 TArray<int32> LoadedStoryIndexesHistory;
83};
#define DECLARE_EVENT_HANDLER(TEvent)
Definition BaseManager.h:11
UCLASS(BlueprintType, Blueprintable)
Definition ApexAPI.h:68
Manager for automatic Apex session reporting using UApexAPI.
DECLARE_EVENT_HANDLER(UStepCompletedEvent)
UApexAPI * ApexSubSystem
UPROPERTY(BlueprintReadOnly)
DECLARE_EVENT_HANDLER(UNewStepLoadedEvent)
FXAPIStatement GetStatementData()
This function can be implemented in blueprint to send custom FXAPIStatement.
DECLARE_EVENT_HANDLER(UEndOfStoryReached)
void OnInitialized()
UFUNCTION(BlueprintImplementableEvent)
DECLARE_EVENT_HANDLER(UNewStoryLoadedEvent)
FText CurrentStep
UPROPERTY(BlueprintReadOnly)
TArray< int32 > LoadedStoryIndexesHistory
Array storing the history of loaded story indexes.
DECLARE_EVENT_HANDLER(UInitializationEvent)
It provides functionalities for handling events, sending events, and managing a private owner....
Definition BaseManager.h:32
Event called when we complete last step.
Event called when we on init experience.
Event called when new step is loaded.
Event called when new story is loaded.
Event called when step is completed.
USTRUCT(BlueprintType)
USTRUCT(BlueprintType)
Definition XAPITypes.h:1156