Exemple #1
0
 public Conversation(IPlugin plugin, IConversable forWhom, IPrompt firstPrompt, Dictionary <Object, Object> initialSessionData)
 {
     this.firstPrompt      = firstPrompt;
     this.context          = new ConversationContext(plugin, forWhom, initialSessionData);
     this.modal            = true;
     this.localEchoEnabled = true;
     this.prefix           = new NullConversationPrefix();
     this.cancellers       = new List <IConversationCanceller>();
 }
 public ConversationFactory(IPlugin plugin)
 {
     this.plugin        = plugin;
     isModal            = true;
     localEchoEnabled   = true;
     prefix             = new NullConversationPrefix();
     firstPrompt        = null;
     initialSessionData = new Dictionary <object, object>();
     playerOnlyMessage  = null;
     cancellers         = new List <IConversationCanceller>();
 }
 public ConversationFactory WithPrefix(IConversationPrefix prefix)
 {
     this.prefix = prefix;
     return(this);
 }