You are viewing documentation for v1.1. Switch to current version โ†’

๐Ÿ’ฌ Conversation Helper

Short Description

Lightweight helpers used by conversation-related systems. Includes small template helpers for enum/string conversion that are useful when reading or writing conversation data.

Long Description

The header currently exposes two tiny, header-only template helpers that are commonly used when serializing conversation data or mapping textual values to engine enums. They rely on UE reflection (StaticEnum) and are usable from any translation unit that includes the header.

๐Ÿš€ Features

  • Convert enum name strings to enum values (template).
  • Convert enum values to their name strings (template).

GorgeousStringToEnum<Enumeration>

Converts a human-readable enum name into the requested Enumeration using Unreal's StaticEnum<>() reflection helpers. Useful when loading textual enum values from data files or conversation scripts.

Parameter Name Type Description
InValue FString Enum name string to convert (case-sensitive to Unreal enum name rules).
EMyConversationState State = GorgeousStringToEnum<EMyConversationState>(TEXT("Greeting"));

GorgeousEnumToString<Enumeration>

Returns the name string for a given enum value using StaticEnum<Enumeration>()->GetNameStringByValue. Use this when writing enum values into human-readable files or debug output.

Parameter Name Type Description
InValue Enumeration Enum value to stringify.
FString Name = GorgeousEnumToString<EMyConversationState>(EMyConversationState::Greeting);