Exemplo n.º 1
0
 /// <summary>
 /// Sets the current conversation based on the name of it.
 /// </summary>
 /// <param name="name">The name of the conversation.</param>
 public void SetConversation(string name)
 {
     currentConversationIndex = dialogue.GetConversationIndex(name);
     if (currentConversationIndex < 0 || currentConversationIndex >= dialogue.Conversations.Count)
     {
         return;
     }
     currentConversation = dialogue.Conversations[currentConversationIndex];
     currentMessageInfo  = new QD_MessageInfo(currentConversation.FirstMessage, GetNextID(currentConversation.FirstMessage), QD_NodeType.Message);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets a conversation with the given id.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="conversation"></param>
 /// <returns></returns>
 public void SetConversation(int id, QD_Conversation conversation)
 {
     Conversations[GetConversationIndex(id)] = conversation;
 }