diff options
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); + } +} |
