예제 #1
0
 /// <summary>
 /// Called when a config file is updated.
 /// </summary>
 /// <param name="configuration">The config updated.</param>
 private void ConfigUpdated(ConfigData configuration)
 {
     if (!(configuration is SavesConfiguration newConfig))
     {
         return;
     }
     config = newConfig;
 }
예제 #2
0
 /// <summary>
 /// Called when the config manager is ready.
 /// </summary>
 /// <param name="manager">Reference to the manager.</param>
 private void ConfigManagerReady(ConfigurationManager manager)
 {
     config = manager.GetConfig <SavesConfiguration>();
     manager.ConfigurationUpdated += ConfigUpdated;
     Ready();
 }