private void SetupDatabases(IGameObjectOverride[] gameObjectOverrides)
        {
#pragma warning disable 618
            LocalDatabase.Clear();
#pragma warning restore 618

            if (LocalDatabaseExtended == null)
            {
                return;
            }
            LocalDatabaseExtended.ClearGameObjects();

            if (gameObjectOverrides == null)
            {
                return;
            }
            foreach (var goOverride in gameObjectOverrides)
            {
                LocalDatabaseExtended.GameObjects.Set(goOverride.Definition.Key, goOverride.Value);
            }
        }
예제 #2
0
 private void ClearData(object sender, EventArgs e)
 {
     LocalDatabase.Clear();
 }