protected virtual void OnChangeNodeEvent(DialogNode <TContent> nextNode) { EventHandler <DialogNode <TContent> > handler = ChangeNodeEvent; handler?.Invoke(this, nextNode); }
private void OptionSelectEvent(object sender, DialogNode <TContent> nextNode) { OnChangeNodeEvent(nextNode); }
public static Dialog <TContent> CreateNew(DialogNode <TContent> startNode) { return(new Dialog <TContent>(startNode)); }
private void ChangeNodeEvent(object sender, DialogNode <TContent> nextNode) { this.CurrentNode = nextNode; this.SubscribeToCurrentNodeEvent(); }
private Dialog(DialogNode <TContent> startNode) { this.CurrentNode = startNode; this.SubscribeToCurrentNodeEvent(); }