Config change event (#1301)

* Add events for config changes

* Update ConfigChangeEvent.cs

* change event names

---------

Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
This commit is contained in:
Cara 2023-07-06 13:26:26 +09:30 committed by GitHub
parent e52f7696ba
commit 7109f21387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 131 additions and 5 deletions

View file

@ -1,6 +1,8 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using Dalamud.Game.Config;
using FFXIVClientStructs.FFXIV.Common.Configuration;
namespace Dalamud.Plugin.Services;
@ -9,6 +11,11 @@ namespace Dalamud.Plugin.Services;
/// </summary>
public interface IGameConfig
{
/// <summary>
/// Event which is fired when a game config option is changed.
/// </summary>
public event EventHandler<ConfigChangeEvent> Changed;
/// <summary>
/// Gets the collection of config options that persist between characters.
/// </summary>