Globetrotter/Globetrotter/Configuration.cs

24 lines
649 B
C#
Raw Normal View History

2020-08-01 07:43:23 +00:00
using Dalamud.Configuration;
using Dalamud.Plugin;
using System;
namespace Globetrotter {
[Serializable]
2021-03-19 20:06:45 +00:00
internal class Configuration : IPluginConfiguration {
private DalamudPluginInterface _pi;
2020-08-01 07:43:23 +00:00
public int Version { get; set; } = 1;
public bool ShowOnHover { get; set; } = true;
public bool ShowOnOpen { get; set; } = true;
public void Initialize(DalamudPluginInterface pi) {
2021-03-19 20:06:45 +00:00
this._pi = pi ?? throw new ArgumentNullException(nameof(pi), "DalamudPluginInterface cannot be null");
2020-08-01 07:43:23 +00:00
}
public void Save() {
2021-03-19 20:06:45 +00:00
this._pi.SavePluginConfig(this);
2020-08-01 07:43:23 +00:00
}
}
}