コード例 #1
0
ファイル: StoryPhase.cs プロジェクト: eropple/sharplike
 public DialogueOption CreateDialogueOption(StoryPhase target)
 {
     DialogueOption opt = new DialogueOption();
     opt.Target = target;
     dopts.Add(opt);
     return opt;
 }
コード例 #2
0
ファイル: StoryPhase.cs プロジェクト: mattiascibien/sharplike
        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
ファイル: StoryVisitor.cs プロジェクト: eropple/sharplike
 public StoryPhase VisitNext(DialogueOption opt)
 {
     return VisitNext(current.DialogueOptions.IndexOf(opt));
 }
コード例 #6
0
 public StoryPhase VisitNext(DialogueOption opt)
 {
     return(VisitNext(current.DialogueOptions.IndexOf(opt)));
 }