public IBarterResultToken BarterResult(string tokenName, BarterOfferTokenCallback callback) { var token = new PartnerDialogToken(Builder, this, tokenName); callback(token); return(this); }
public IBarterResultToken BarterReject(string tokenName, BarterOfferTokenCallback callback) { var token = new PartnerDialogToken(Builder, this, tokenName).SetCondition(_context.IsRejected); callback(token); return(this); }
public IPartnerDialogToken AddDialogLine(string tokenName, ConversationSentence.OnConditionDelegate condition = null) { var result = new PartnerDialogToken(Builder, this, tokenName); if (condition != null) { result.SetCondition(condition); } return(result); }
//[NotNull] private readonly List<IPlayerDialogToken> _variants; public DecisionToken([NotNull] DialogBuilder builder, [NotNull] PartnerDialogToken inputToken) : base(builder, inputToken, inputToken.TokenName + "_decision") { //_variants = new List<IPlayerDialogToken>(); }
public IPartnerDialogToken Response(string tokenName) { var result = new PartnerDialogToken(Builder, this, tokenName); return(result); }