Files
ProjectEleri/Source/ProjectEleri/DialogueSystem/Speech.h
2026-07-11 10:43:52 +02:00

60 lines
1.1 KiB
C++

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "Speech.generated.h"
UENUM(BlueprintType)
enum class EDialogueEmotion: uint8
{
NEUTRAL,
HAPPY,
ANGRY,
SAD,
SURPRISED,
MAX UMETA(Hidden)
};
USTRUCT(BlueprintType)
struct FLineData
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadOnly)
EDialogueEmotion DialogueEmotion;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
FText SpeakerName;
UPROPERTY(EditAnywhere, BlueprintReadOnly, meta=(MultiLine = true))
FText DialogueLine;
UPROPERTY(EditAnywhere, BlueprintReadOnly, meta=(MetaClass="/Script/ProjectEleri.GameEventDataAsset"))
FSoftObjectPath TriggerEventStart;
};
/**
*
*/
UCLASS(Abstract, BlueprintType, Blueprintable, EditInLineNew, DefaultToInstanced)
class PROJECTELERI_API USpeech : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadOnly)
bool bSkipSpeakerPositioning;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
TArray<FText> Lines;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
bool RandomizeLines;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
TArray<FLineData> DialogueLines;
};