2021-04-11 12:27:32 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Dalamud.Configuration;
|
2021-02-23 01:22:40 +00:00
|
|
|
|
using ExpandedSearchInfo.Configs;
|
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
namespace ExpandedSearchInfo;
|
2021-02-23 01:22:40 +00:00
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class PluginConfiguration : IPluginConfiguration {
|
|
|
|
|
private Plugin Plugin { get; set; } = null!;
|
2021-02-23 01:22:40 +00:00
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
public int Version { get; set; } = 1;
|
2021-02-23 01:22:40 +00:00
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
public ProviderConfigs Configs { get; set; } = new();
|
2021-02-23 01:22:40 +00:00
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
internal void Initialise(Plugin plugin) {
|
|
|
|
|
this.Plugin = plugin;
|
2021-02-23 01:22:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-29 01:09:50 +00:00
|
|
|
|
internal void Save() {
|
|
|
|
|
this.Plugin.Interface.SavePluginConfig(this);
|
2021-02-23 01:22:40 +00:00
|
|
|
|
}
|
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();
|
|
|
|
|
}
|