-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathConfiguration.cs
59 lines (49 loc) · 2.15 KB
/
Configuration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using Dalamud.Configuration;
using Dalamud.Game.Text;
namespace AutoSweep {
[Serializable]
public class Configuration : IPluginConfiguration {
// the below exist just to make saving less cumbersome
public bool Enabled { get; set; } = true;
public string OutputFormatString { get; set; } = "";
public OutputFormat OutputFormat { get; set; } = OutputFormat.Simple;
public DistrictNotifConfig Mist { get; set; } = new();
public DistrictNotifConfig LavenderBeds { get; set; } = new();
public DistrictNotifConfig Goblet { get; set; } = new();
public DistrictNotifConfig Shirogane { get; set; } = new();
public DistrictNotifConfig Empyrean { get; set; } = new();
public bool HomeworldNotifs { get; set; } = true; // receive alerts for plots on your homeworld
public bool DatacenterNotifs { get; set; } = false; // receive alerts for plots on all worlds on your data center
public bool AllNotifs { get; set; } = false; // receive alerts for all worlds
public XivChatType ChatType { get; set; } = XivChatType.Debug;
public bool ChatSweepAlert { get; set; } = true; // thank the user for contributions in chat/"began sweep"
public int Version { get; set; } = 4;
public void Save() {
Plugin.PluginInterface.SavePluginConfig(this);
}
}
[Serializable]
public class DistrictNotifConfig {
public bool Small { get; set; } = true;
public bool Medium { get; set; } = true;
public bool Large { get; set; } = true;
public bool FreeCompany { get; set; } = true;
public bool Individual { get; set; } = true;
}
public enum OutputFormat {
// Sweep for Shirogane (Diabolos)
// Shirogane 5-25 (3.187m)
// ...
Simple = 1,
// Sweep for Shirogane (Diabolos)
// @SmallShirogane 5-25 (3.187m)
// @LargeShirogane 1-1 (50.000m)
Pings = 2,
// Sweep for Shirogane (Diabolos)
// ##forsale shirogane w5 p25
// ...
// EnoBot = 3, // option removed since project abandoned
Custom = 4
}
}