29 lines
707 B
C#
29 lines
707 B
C#
|
using Dalamud.Configuration;
|
|||
|
using Dalamud.Plugin;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace FFXIV_Plugin_Vibe
|
|||
|
{
|
|||
|
[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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|