public DialogueOption CreateDialogueOption(StoryPhase target) { DialogueOption opt = new DialogueOption(); opt.Target = target; dopts.Add(opt); return opt; }
public DialogueOption CreateDialogueOption(StoryPhase target) { DialogueOption opt = new DialogueOption(); opt.Target = target; dopts.Add(opt); return(opt); }
public StoryPhase VisitNext(int index) { DialogueOption opt = current.DialogueOptions[index]; opt.OnOptionChosen(); current = opt.Target; return(current); }
/// <summary> /// Constructor which lets you provide a dialogue option and relationship to automatically bind to. /// </summary> /// <param name="option"> /// The dialogue option which, when triggered by a visitor, will apply the batch. /// </param> /// <param name="relationship">The relationship that will be modified.</param> /// <param name="applyMultiple"> /// Whether the batch may be applied more than once for the same dialogue option. /// </param> public RelationshipChange(DialogueOption option, Relationship relationship, bool applyMultiple = false) { rel = relationship; opt = option; applymulti = applyMultiple; chooseevent = new EventHandler<EventArgs>(opt_OptionChosen); opt.OptionChosen += chooseevent; }
public StoryPhase VisitNext(DialogueOption opt) { return VisitNext(current.DialogueOptions.IndexOf(opt)); }
public StoryPhase VisitNext(DialogueOption opt) { return(VisitNext(current.DialogueOptions.IndexOf(opt))); }