Table of Contents

Constructor SpeechSegment

Namespace
DialogueDown.Playbook.Speech
Assembly
DialogueDown.Playbook.dll

SpeechSegment(ImmutableArray<SpeechFragment>, SpeechFragment?)

A run of words, and the command that comes after them.

public SpeechSegment(ImmutableArray<SpeechFragment> Words, SpeechFragment? Command)

Parameters

Words ImmutableArray<SpeechFragment>

What is said here. Empty when a command opens the line or follows another.

Command SpeechFragment

What the host performs once those words are said, or null when none does.

Remarks

A line is a list of these, in the order the writer wrote them. A line with no commands is one segment carrying every word and no command; a line such as Alice: Here you go. GiveQuest("EmberCrown") is also one segment, this time with both, which says the words are spoken and then the quest is given.

Either half may be missing. A command opening a line gives a first segment with no words at all, and the last segment of any line that ends in words has no command.