示例#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);
     }
 }