示例#1
0
 public DialogueOption CreateDialogueOption(StoryPhase target)
 {
     DialogueOption opt = new DialogueOption();
     opt.Target = target;
     dopts.Add(opt);
     return opt;
 }
示例#2
0
        public DialogueOption CreateDialogueOption(StoryPhase target)
        {
            DialogueOption opt = new DialogueOption();

            opt.Target = target;
            dopts.Add(opt);
            return(opt);
        }
示例#3
0
        public StoryPhase VisitNext(int index)
        {
            DialogueOption opt = current.DialogueOptions[index];

            opt.OnOptionChosen();
            current = opt.Target;
            return(current);
        }
示例#4
0
 /// <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;
 }
示例#5
0
 public StoryPhase VisitNext(DialogueOption opt)
 {
     return VisitNext(current.DialogueOptions.IndexOf(opt));
 }
示例#6
0
 public StoryPhase VisitNext(DialogueOption opt)
 {
     return(VisitNext(current.DialogueOptions.IndexOf(opt)));
 }