SettingChangedEventArgs.cs 472 B

12345678910111213141516171819202122
  1. using System;
  2. namespace BepInEx.Configuration
  3. {
  4. /// <summary>
  5. /// Arguments for events concerning a change of a setting.
  6. /// </summary>
  7. /// <inheritdoc />
  8. public sealed class SettingChangedEventArgs : EventArgs
  9. {
  10. /// <inheritdoc />
  11. public SettingChangedEventArgs(ConfigEntryBase changedSetting)
  12. {
  13. ChangedSetting = changedSetting;
  14. }
  15. /// <summary>
  16. /// Setting that was changed
  17. /// </summary>
  18. public ConfigEntryBase ChangedSetting { get; }
  19. }
  20. }