initial commit based on sampleplugin

This commit is contained in:
Stanley Dimant
2022-06-09 21:49:55 +02:00
parent 8679361341
commit 3f737df71f
7 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
namespace SamplePlugin
{
[Serializable]
public class Configuration : IPluginConfiguration
{
public int Version { get; set; } = 0;
public bool SomePropertyToBeSavedAndWithADefault { get; set; } = true;
// the below exist just to make saving less cumbersome
[NonSerialized]
private DalamudPluginInterface? pluginInterface;
public void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
this.pluginInterface!.SavePluginConfig(this);
}
}
}