diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2024-08-26 00:57:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 00:57:05 -0700 |
| commit | b8c43fbe717d794284c6c4578c9c00ae8e26d711 (patch) | |
| tree | db3e449a3fd039b4935359eafb1f3ee9f61f5df7 /SamplePlugin/Configuration.cs | |
Initial commit
Diffstat (limited to 'SamplePlugin/Configuration.cs')
| -rw-r--r-- | SamplePlugin/Configuration.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/SamplePlugin/Configuration.cs b/SamplePlugin/Configuration.cs new file mode 100644 index 0000000..4cdc476 --- /dev/null +++ b/SamplePlugin/Configuration.cs @@ -0,0 +1,20 @@ +using Dalamud.Configuration; +using Dalamud.Plugin; +using System; + +namespace SamplePlugin; + +[Serializable] +public class Configuration : IPluginConfiguration +{ + public int Version { get; set; } = 0; + + public bool IsConfigWindowMovable { get; set; } = true; + public bool SomePropertyToBeSavedAndWithADefault { get; set; } = true; + + // the below exist just to make saving less cumbersome + public void Save() + { + Plugin.PluginInterface.SavePluginConfig(this); + } +} |
