Class ReferenceChecker
- Namespace
- DialogueDown.Playbook.Checking
- Assembly
- DialogueDown.Playbook.dll
Refuses a playbook that points somewhere it does not have.
public sealed class ReferenceChecker : IPlaybookChecker
- Inheritance
-
ReferenceChecker
- Implements
- Inherited Members
Remarks
Every address in a playbook is a plain index — into the nodes, or into the speakers — so a reference is sound exactly when it lands. These are the rules a schema cannot state, because each relates a value to something else in the same document.
Only the upper bound is checked here. A negative index is refused when the value is built, so by the time a document exists there is no such thing.
Methods
- Check(PlaybookDocument)
Checks a playbook, and says nothing when it passes.