Class SpeechSegment
- Namespace
- DialogueDown.Playbook.Speech
- Assembly
- DialogueDown.Playbook.dll
A run of words, and the command that comes after them.
[Equatable]
public sealed record SpeechSegment : IEquatable<SpeechSegment>
- Inheritance
-
SpeechSegment
- Implements
- Inherited Members
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. is also one segment, this time with both,
which says the words are spoken and then the quest is given.GiveQuest("EmberCrown")
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.
Constructors
- SpeechSegment(ImmutableArray<SpeechFragment>, SpeechFragment?)
A run of words, and the command that comes after them.
Properties
- SaysSomething
Gets whether these words say something: anything more than whitespace and line breaks.
- Words
Gets what is said here.
Methods
- Equals(SpeechSegment?)
Indicates whether the current object is equal to another object of the same type.
- GetHashCode()
Serves as the default hash function.