A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgConditionCustom.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3#include "DlgObject.h"
4
5#include "DlgConditionCustom.generated.h"
6
7class UDlgContext;
8
9// Abstract base class for a custom condition
10// Extend this class to define additional data you want to store
11//
12// 1. Override IsConditionMet
13// 2. Return true if you want the condition to succeed or false otherwise
14UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew)
15class DLGSYSTEM_API UDlgConditionCustom : public UDlgObject
16{
18public:
19 // Checks if the condition is met
20 UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Dialogue")
21 bool IsConditionMet(const UDlgContext* Context, const UObject* Participant);
22 virtual bool IsConditionMet_Implementation(const UDlgContext* Context, const UObject* Participant)
23 {
24 return false;
25 }
26};
27
28// This is the same as UDlgConditionCustom but it does NOT show the categories
29UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew, CollapseCategories)
UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew, CollapseCategories)
UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew)
virtual bool IsConditionMet_Implementation(const UDlgContext *Context, const UObject *Participant)
bool IsConditionMet(const UDlgContext *Context, const UObject *Participant)
UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Dialogue")
UCLASS(BlueprintType)
Definition DlgContext.h:96
UCLASS(Abstract, ClassGroup = "Dialogue", HideCategories = ("DoNotShow"), AutoExpandCategories = ("De...
Definition DlgObject.h:13