Method Of
- Namespace
- DialogueDown.Playbook.Speech
- Assembly
- DialogueDown.Playbook.dll
Of(ImmutableArray<SpeechFragment>)
Reads speech as one line of plain text, naming each query rather than
saying what it is worth.
public static string Of(ImmutableArray<SpeechFragment> speech)
Parameters
speechImmutableArray<SpeechFragment>The run of speech to read.
Returns
- string
The words, in order, exactly as they compose. Empty when nothing is said.
Of(ImmutableArray<SpeechFragment>, Func<string, string>)
Reads speech as one line of plain text, asking
answerQuery what each query is worth.
public static string Of(ImmutableArray<SpeechFragment> speech, Func<string, string> answerQuery)
Parameters
speechImmutableArray<SpeechFragment>The run of speech to read.
answerQueryFunc<string, string>What the world says a query key is worth. A reader that knows some keys and not others can hand the rest to PlaceholderFor(string).
Returns
- string
The words, in order, exactly as they compose. Empty when nothing is said.