Class RandomOptionEdge
- Namespace
- DialogueDown.Playbook.Edges
- Assembly
- DialogueDown.Playbook.dll
One arm of a random choice, carrying the odds the engine draws against.
public sealed record RandomOptionEdge : Edge, IEquatable<Edge>, IConditional, IEquatable<RandomOptionEdge>
- Inheritance
-
RandomOptionEdge
- Implements
- Inherited Members
- Extension Methods
Remarks
It has no label: the engine picks this arm, so nobody is shown a menu.
Constructors
- RandomOptionEdge(int, ChoiceWeight, Condition?)
One arm of a random choice, carrying the odds the engine draws against.
Properties
- Condition
Gets what must hold for the option to be in the pool, or
nullwhen it always is.
- Weight
Gets how likely this option is to be drawn.