/// <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; }
/// <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(); }