CurrencyAlertClassic/SamplePlugin/Configuration.cs

33 lines
882 B
C#
Raw Normal View History

using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
2021-12-11 13:27:58 +00:00
namespace CurrencyAlert
{
[Serializable]
public class Configuration : IPluginConfiguration
{
2021-12-11 13:27:58 +00:00
public int Version { get; set; } = 1;
public bool PoeticsThresholdEnabled { get; set; } = true;
2021-12-11 00:28:51 +00:00
public int PoeticsThreshold { get; set; } = 1500;
2021-12-11 13:27:58 +00:00
public bool StormSealsThresholdEnabled { get; set; } = true;
public int StormSealsThreshold { get; set; } = 40000;
// the below exist just to make saving less cumbersome
[NonSerialized]
2021-08-26 14:11:18 +00:00
private DalamudPluginInterface? pluginInterface;
public void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
2021-08-26 14:11:18 +00:00
this.pluginInterface!.SavePluginConfig(this);
}
}
}