ExpandedSearchInfo/ExpandedSearchInfo/PluginConfiguration.cs

31 lines
838 B
C#
Raw Permalink Normal View History

2021-04-11 12:27:32 +00:00
using System;
using Dalamud.Configuration;
using ExpandedSearchInfo.Configs;
2023-09-29 01:09:50 +00:00
namespace ExpandedSearchInfo;
2023-09-29 01:09:50 +00:00
[Serializable]
public class PluginConfiguration : IPluginConfiguration {
private Plugin Plugin { get; set; } = null!;
2023-09-29 01:09:50 +00:00
public int Version { get; set; } = 1;
2023-09-29 01:09:50 +00:00
public ProviderConfigs Configs { get; set; } = new();
2023-09-29 01:09:50 +00:00
internal void Initialise(Plugin plugin) {
this.Plugin = plugin;
}
2023-09-29 01:09:50 +00:00
internal void Save() {
this.Plugin.Interface.SavePluginConfig(this);
}
2021-04-11 12:27:32 +00:00
}
2023-09-29 01:09:50 +00:00
[Serializable]
public class ProviderConfigs {
public CarrdConfig Carrd { get; set; } = new();
public FListConfig FList { get; set; } = new();
public PastebinConfig Pastebin { get; set; } = new();
public PlainTextConfig PlainText { get; set; } = new();
public RefsheetConfig Refsheet { get; set; } = new();
}