Exemplo n.º 1
0
 /// <summary>
 /// Remove a default answer from a question
 /// </summary>
 /// <param name="question">Question to remove the answer from</param>
 /// <param name="answer">Information about the answer to remove</param>
 public static void RemoveDefaultAnswer(string question, DialogueAnswerRemovalInformation answer)
 {
     if (answerRemovals.ContainsKey(question))
     {
         answerRemovals[question].Add(answer);
     }
     else
     {
         List <DialogueAnswerRemovalInformation> answerList = new List <DialogueAnswerRemovalInformation>();
         answerList.Add(answer);
         answerRemovals.Add(question, answerList);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Remove a default answer from a question
 /// </summary>
 /// <param name="question">Question to remove the answer from</param>
 /// <param name="answer">Information about the answer to remove</param>
 public static void RemoveDefaultAnswer(Questions question, DialogueAnswerRemovalInformation answer)
 {
     RemoveDefaultAnswer(QuestionsKey(question), answer);
 }