A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgGameplayDebuggerCategory.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3#if WITH_GAMEPLAY_DEBUGGER
4
5#include "CoreMinimal.h"
6#include "GameplayDebuggerCategory.h"
7
8class AActor;
10class FGameplayDebuggerCanvasContext;
11
12// The data we're going to print inside the viewport
13struct DLGSYSTEM_API FDlgDataToPrint
14{
15 int32 NumLoadedDialogues = 0;
16};
17
18class DLGSYSTEM_API FDlgGameplayDebuggerCategory : public FGameplayDebuggerCategory
19{
20private:
21 typedef FDlgGameplayDebuggerCategory Self;
22
23public:
24 FDlgGameplayDebuggerCategory();
25
27 static TSharedRef<FGameplayDebuggerCategory> MakeInstance() { return MakeShared<Self>(); }
28
29 // Begin FGameplayDebuggerCategory Interface
30
32 void CollectData(APlayerController* OwnerPC, AActor* DebugActor) override;
33
35 void DrawData(APlayerController* OwnerPC, FGameplayDebuggerCanvasContext& CanvasContext) override;
36
37protected:
38 // The data that we're going to print
39 FDlgDataToPrint Data;
40};
41
42#endif // WITH_GAMEPLAY_DEBUGGER