Skip to main content

Module dialogue

Module dialogue 

Source
Expand description

Dialogue system — typewriter effect, choice trees, speaker portraits.

A DialogueTree is a directed graph of DialogueNodes connected by Choices. The DialoguePlayer renders the current node character-by-character with a configurable typewriter effect and waits for player input to advance.

Structs§

Choice
A selectable choice in the dialogue.
DialogueNode
A single node in the dialogue tree.
DialoguePlayer
Drives a DialogueTree.
DialogueTree
A collection of nodes forming a branching conversation.
NodeBuilder
Fluent builder for DialogueNode.
TypewriterState
Typewriter render state for a line of text.

Enums§

DialogueEmotion
Speaker emotion — affects text color and portrait expression.
DialogueEvent
Events emitted by the dialogue player.
DialogueNext
How to advance after a node.
DialogueState