示例#1
0
 public Dialogue GetDialogue(string name) =>
 Dialogues.FirstOrDefault(d => d.Name == name);
示例#2
0
 public Dialogue GetResponse(string triggerText)
 {
     return(Dialogues.FirstOrDefault(x => x.TriggerText.Equals(triggerText, StringComparison.CurrentCultureIgnoreCase)));
 }
示例#3
0
 /// <summary>
 /// Get dialogue by name
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public Dialogue GetDialogue(string name)
 {
     return(Dialogues.FirstOrDefault(d => d.Name == name));
 }