Esempio n. 1
0
 /// <summary>
 /// Adds a database to the master database, and updates the Lua environment.
 /// </summary>
 /// <param name='database'>
 /// The database to add.
 /// </param>
 public void Add(DialogueDatabase database)
 {
     if ((database != null) && !m_loadedDatabases.Contains(database))
     {
         if (m_loadedDatabases.Count == 0) DialogueLua.InitializeChatMapperVariables();
         m_masterDatabase.Add(database);
         DialogueLua.AddChatMapperVariables(m_masterDatabase, m_loadedDatabases);
         m_loadedDatabases.Add(database);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes all loaded databases from the master database and clears the Lua environment.
 /// </summary>
 public void Clear()
 {
     DialogueLua.InitializeChatMapperVariables();
     m_masterDatabase.Clear();
     m_loadedDatabases.Clear();
 }