示例#1
0
 protected DialogToken([NotNull] DialogBuilder builder, DialogToken inputToken, [NotNull] string tokenName)
 {
     _builder    = builder;
     InputToken  = inputToken;
     TokenName   = tokenName;
     OutputToken = TokenName;
     Builder.AddToken(this);
 }
示例#2
0
 public InputDialogToken([NotNull] DialogBuilder builder, [NotNull] string tokenName = "start") : base(
         builder, null, tokenName)
 {
 }
示例#3
0
 public BarterResultToken([NotNull] DialogBuilder builder, [NotNull] PlayerDialogToken inputToken,
                          [CanBeNull] AcquireBarterablesCallback acquireBarterables) : base(builder, inputToken,
                                                                                            inputToken.TokenName + "_barter")
 {
     _context = new BarterContext(acquireBarterables);
 }
示例#4
0
            //[NotNull] private readonly List<IPlayerDialogToken> _variants;

            public DecisionToken([NotNull] DialogBuilder builder, [NotNull] PartnerDialogToken inputToken)
                : base(builder, inputToken, inputToken.TokenName + "_decision")
            {
                //_variants = new List<IPlayerDialogToken>();
            }
示例#5
0
 internal PlayerDialogToken([NotNull] DialogBuilder builder, DialogToken inputToken,
                            [NotNull] string tokenName)
     : base(builder, inputToken, tokenName)
 {
 }
示例#6
0
 public PartnerDialogToken([NotNull] DialogBuilder builder, DialogToken inputTokenToken,
                           [NotNull] string tokenName)
     : base(builder, inputTokenToken, tokenName)
 {
 }