A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
IDlgSystemModule.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3
4#include "Modules/ModuleManager.h"
5#include "Modules/ModuleInterface.h"
6
7// The name of the Dialogue System plugin as defined in the .uplugin file
8const FName DIALOGUE_SYSTEM_PLUGIN_NAME(TEXT("DlgSystem"));
9
10class AActor;
11class SWidget;
12class SDockTab;
13struct FTabSpawnerEntry;
14
18class DLGSYSTEM_API IDlgSystemModule : public IModuleInterface
19{
20public:
21
29 {
30 return FModuleManager::LoadModuleChecked<IDlgSystemModule>(DIALOGUE_SYSTEM_PLUGIN_NAME);
31 }
32
38 static bool IsAvailable()
39 {
40 return FModuleManager::Get().IsModuleLoaded(DIALOGUE_SYSTEM_PLUGIN_NAME);
41 }
42
43public:
44 virtual ~IDlgSystemModule() {}
45
50 virtual void RegisterConsoleCommands(const TWeakObjectPtr<const UObject>& WorldContextObjectPtr) = 0;
51
52 // Unregister all the console commands
53 virtual void UnregisterConsoleCommands() = 0;
54
55 // Gets the debug Dialogue Data Display Window.
56 virtual TSharedRef<SWidget> GetDialogueDataDisplayWindow() = 0;
57
58 // Gets the tab entry for the Window
59 virtual FTabSpawnerEntry* GetDialogueDataDisplaySpawnEntry() = 0;
60
61 // Display the debug Dialogue Data Window on the screen
62 virtual void DisplayDialogueDataWindow() = 0;
63};
const FName DIALOGUE_SYSTEM_PLUGIN_NAME(TEXT("DlgSystem"))
virtual TSharedRef< SWidget > GetDialogueDataDisplayWindow()=0
virtual void RegisterConsoleCommands(const TWeakObjectPtr< const UObject > &WorldContextObjectPtr)=0
virtual ~IDlgSystemModule()
virtual void UnregisterConsoleCommands()=0
virtual void DisplayDialogueDataWindow()=0
static IDlgSystemModule & Get()
static bool IsAvailable()
virtual FTabSpawnerEntry * GetDialogueDataDisplaySpawnEntry()=0