Table of Contents

Method Fill

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

Fill(ImmutableArray<SpeechFragment>, Func<string, string>)

Fills every hole with what the world said, and leaves the rest standing.

public static ImmutableArray<SpeechFragment> Fill(ImmutableArray<SpeechFragment> speech, Func<string, string> answer)

Parameters

speech ImmutableArray<SpeechFragment>

The speech to fill.

answer Func<string, string>

What a key is worth. Asked once per hole, repeats included.

Returns

ImmutableArray<SpeechFragment>

The speech, with each query replaced by the words that answered it.

Remarks

A query answered with no words leaves nothing in its place, and emphasis left with nothing inside it goes too. A link or an image stays, with no words to show, because it is also somewhere to go or a picture to draw.