A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
IDlgDialogueEditorAccess.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5
6#if WITH_EDITOR
7class UEdGraph;
8class UDlgDialogue;
9class UEdGraphNode;
10class UDlgNode;
11
16class DLGSYSTEM_API IDlgDialogueEditorAccess
17{
18public:
19 virtual ~IDlgDialogueEditorAccess() {}
20
21 // Updates the graph node edges data to match the dialogue data
22 virtual void UpdateGraphNodeEdges(UEdGraphNode* GraphNode) = 0;
23
24 // Creates a new dialogue graph.
25 virtual UEdGraph* CreateNewDialogueGraph(UDlgDialogue* Dialogue) const = 0;
26
27 // Compiles the dialogue nodes from the graph nodes. Meaning it transforms the graph data -> (into) dialogue data.
28 virtual void CompileDialogueNodesFromGraphNodes(UDlgDialogue* Dialogue) const = 0;
29
30 // Removes all nodes from the graph.
31 virtual void RemoveAllGraphNodes(UDlgDialogue* Dialogue) const = 0;
32
33 // Tells us if the number of dialogue nodes matches with the number of graph nodes (corresponding to dialogues).
34 virtual bool AreDialogueNodesInSyncWithGraphNodes(UDlgDialogue* Dialogue) const = 0;
35
36 // Updates the Dialogue to match the version UseOnlyOneOutputAndInputPin
38
39 // Tries to set the new outer for Object to the closes UDlgNode from UEdGraphNode
40 virtual void SetNewOuterForObjectFromGraphNode(UObject* Object, UEdGraphNode* GraphNode) const = 0;
41};
42#endif
void UpdateDialogueToVersion_UseOnlyOneOutputAndInputPin(UDlgDialogue *Dialogue)
UCLASS(BlueprintType, Meta = (DisplayThumbnail = "true"))
Definition DlgDialogue.h:85
UCLASS(BlueprintType, Abstract, EditInlineNew, ClassGroup = "Dialogue")
Definition DlgNode.h:40