A Demo Project for the UnrealEngineSDK
|
UCLASS() More...
#include <DlgManager.h>
Static Public Member Functions | |
static bool | CanStartDialogue (UDlgDialogue *Dialogue, UPARAM(ref) const TArray< UObject * > &Participants) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static void | ClearDialogueHistory () |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Memory") | |
static void | ClearDialoguePersistentWorldContextObject () |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence") | |
static bool | DoesObjectImplementDialogueParticipantInterface (const UObject *Object) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper") | |
static void | GetAllDialoguesBoolNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesConditionNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesEventNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesFloatNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static TArray< UDlgDialogue * > | GetAllDialoguesForParticipantName (FName ParticipantName) |
static TArray< UDlgDialogue * > | GetAllDialoguesFromMemory () |
static TMap< FGuid, UDlgDialogue * > | GetAllDialoguesGUIDsMap () |
static void | GetAllDialoguesIntNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesNameNames (FName ParticipantName, TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesParticipantNames (TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static void | GetAllDialoguesSpeakerStates (TArray< FName > &OutArray) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data") | |
static TMap< FName, FDlgObjectsArray > | GetAllObjectsMapWithDialogueParticipantInterface (UObject *WorldContextObject) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", meta = (WorldContext = "WorldContextObject")) | |
static TArray< UObject * > | GetAllObjectsWithDialogueParticipantInterface (UObject *WorldContextObject) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", meta = (WorldContext = "WorldContextObject")) | |
static TArray< TWeakObjectPtr< AActor > > | GetAllWeakActorsWithDialogueParticipantInterface (UWorld *World) |
static const TMap< FGuid, FDlgHistory > & | GetDialogueHistory () |
UFUNCTION(BlueprintPure, Category = "Dialogue|Memory") | |
static TArray< UDlgDialogue * > | GetDialoguesWithDuplicateGUIDs () |
static UWorld * | GetDialogueWorld () |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence") | |
static bool | IsObjectACustomCondition (const UObject *Object) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Condition") | |
static bool | IsObjectACustomEvent (const UObject *Object) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Event") | |
static bool | IsObjectACustomTextArgument (const UObject *Object) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Text Argument") | |
static bool | IsObjectANodeData (const UObject *Object) |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Node Data") | |
static int32 | LoadAllDialoguesIntoMemory (bool bAsync=false) |
static bool | RegisterDialogueConsoleCommands () |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Console") | |
static UDlgContext * | ResumeDialogueFromNodeGUID (UDlgDialogue *Dialogue, UPARAM(ref) const TArray< UObject * > &Participants, const FGuid &StartNodeGUID, const TSet< FGuid > &AlreadyVisitedNodes, bool bFireEnterEvents) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static UDlgContext * | ResumeDialogueFromNodeIndex (UDlgDialogue *Dialogue, UPARAM(ref) const TArray< UObject * > &Participants, UPARAM(DisplayName="Start Node Index") int32 StartIndex, const TSet< int32 > &AlreadyVisitedNodes, bool bFireEnterEvents) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static void | SetDialogueHistory (const TMap< FGuid, FDlgHistory > &DlgHistory) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Memory") | |
static void | SetDialoguePersistentWorldContextObject (const UObject *WorldContextObject) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence") | |
static UDlgContext * | StartDialogue (UDlgDialogue *Dialogue, UPARAM(ref) const TArray< UObject * > &Participants) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static UDlgContext * | StartDialogue2 (UDlgDialogue *Dialogue, UObject *Participant0, UObject *Participant1) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static UDlgContext * | StartDialogue3 (UDlgDialogue *Dialogue, UObject *Participant0, UObject *Participant1, UObject *Participant2) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static UDlgContext * | StartDialogue4 (UDlgDialogue *Dialogue, UObject *Participant0, UObject *Participant1, UObject *Participant2, UObject *Participant3) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static UDlgContext * | StartDialogueWithContext (const FString &ContextString, UDlgDialogue *Dialogue, const TArray< UObject * > &Participants) |
static UDlgContext * | StartDialogueWithDefaultParticipants (UObject *WorldContextObject, UDlgDialogue *Dialogue) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch", meta = (WorldContext = "WorldContextObject")) | |
static UDlgContext * | StartMonologue (UDlgDialogue *Dialogue, UObject *Participant) |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch") | |
static bool | UnregisterDialogueConsoleCommands () |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Console") | |
Private Member Functions | |
GENERATED_BODY () | |
Static Private Member Functions | |
static void | GatherParticipantsRecursive (UObject *Object, TArray< UObject * > &Array, TSet< UObject * > &AlreadyVisited) |
Static Private Attributes | |
static bool | bCalledLoadAllDialoguesIntoMemory = false |
static TWeakObjectPtr< const UObject > | UserWorldContextObjectPtr = nullptr |
UCLASS()
Class providing a collection of static functions to start a conversation and work with Dialogues.
Definition at line 39 of file DlgManager.h.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Checks if there is any child of the start node which can be enterred based on the conditions
Definition at line 124 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Memory")
Definition at line 405 of file DlgManager.cpp.
|
inlinestaticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence")
Definition at line 388 of file DlgManager.h.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper")
Definition at line 410 of file DlgManager.cpp.
|
staticprivate |
Definition at line 561 of file DlgManager.cpp.
|
private |
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 493 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 515 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 526 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 482 of file DlgManager.cpp.
|
static |
|
static |
Definition at line 251 of file DlgManager.cpp.
|
static |
Definition at line 373 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 471 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 504 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 449 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Data")
Definition at line 460 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", meta = (WorldContext = "WorldContextObject"))
Definition at line 325 of file DlgManager.cpp.
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", meta = (WorldContext = "WorldContextObject"))
Definition at line 288 of file DlgManager.cpp.
|
static |
|
staticBlueprintPure |
UFUNCTION(BlueprintPure, Category = "Dialogue|Memory")
Definition at line 395 of file DlgManager.cpp.
|
static |
Definition at line 349 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence")
Definition at line 586 of file DlgManager.cpp.
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Condition")
Definition at line 420 of file DlgManager.cpp.
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Event")
Definition at line 415 of file DlgManager.cpp.
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Custom Text Argument")
Definition at line 425 of file DlgManager.cpp.
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper", DisplayName = "Is Object A Node Data")
Definition at line 430 of file DlgManager.cpp.
|
static |
Loads all dialogues from the filesystem into memory
Definition at line 222 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Console")
Definition at line 537 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Starts a Dialogue with the provided Dialogue and Participants array, at the given entry point
This method can fail in the following situations:
Dialogue | - The dialogue asset to start |
Participants | - Array of participants, has to match with the expected input for the Dialogue |
StartNodeGUID | - GUID of the node the dialogue is resumed at |
AlreadyVisitedNodes | - Set of nodes already visited in the context the last time this Dialogue was going on. Can be acquired via GetVisitedNodeGUIDs() on the context |
bFireEnterEvents | - decides if the enter events should be fired on the resumed node or not |
Definition at line 161 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Starts a Dialogue with the provided Dialogue and Participants array, at the given entry point
NOTE: You should most likely use ResumeDialogueFromNodeGUID
This method can fail in the following situations:
Dialogue | - The dialogue asset to start |
Participants | - Array of participants, has to match with the expected input for the Dialogue |
StartIndex | - Index of the node the dialogue is resumed at |
AlreadyVisitedNodes | - Set of nodes already visited in the context the last time this Dialogue was going on. Can be acquired via GetVisitedNodeIndices() on the context |
bFireEnterEvents | - decides if the enter events should be fired on the resumed node or not |
Definition at line 135 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Memory")
Definition at line 400 of file DlgManager.cpp.
|
inlinestaticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Persistence")
Definition at line 379 of file DlgManager.h.
|
inlinestaticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Starts a Dialogue with the provided Dialogue and Participants array This method can fail in the following situations:
Definition at line 78 of file DlgManager.h.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Definition at line 194 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Definition at line 202 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Definition at line 211 of file DlgManager.cpp.
|
static |
Definition at line 103 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch", meta = (WorldContext = "WorldContextObject"))
Starts a Dialogue with the provided Dialogue The function checks all the objects in the world to gather the participants This method can fail in the following situations:
NOTE: If this fails because it can't find the unique participants you should use the StartDialogue* functions
Definition at line 25 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Launch")
Definition at line 187 of file DlgManager.cpp.
|
staticBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Dialogue|Console")
Definition at line 549 of file DlgManager.cpp.
|
staticprivate |
Definition at line 399 of file DlgManager.h.
|
staticprivate |
Definition at line 397 of file DlgManager.h.