Exemple #1
0
        /// <summary>
        /// Adds a Conversation to the database.
        /// </summary>
        /// <param name='conversation'>
        /// The conversation to add.
        /// </param>
        public void AddConversation(Conversation conversation)
        {
            SetupCaches();
            var title = conversation.Title;

            //--- Removed for speed: if (DialogueDebug.logInfo) Debug.Log("Dialogue System: Add Conversation: " + title);
            if (!conversationTitleCache.ContainsKey(title))
            {
                conversationTitleCache.Add(title, conversation);
            }
            conversations.Add(conversation);
            LinkUtility.SortOutgoingLinks(this, conversation);
        }
Exemple #2
0
 /// <summary>
 /// Adds a Conversation to the database.
 /// </summary>
 /// <param name='conversation'>
 /// The conversation to add.
 /// </param>
 public void AddConversation(Conversation conversation)
 {
     conversations.Add(conversation);
     LinkUtility.SortOutgoingLinks(this, conversation);
 }