- public int SoundVolume { get; set; }\r
- public string MissionSoundFile { get; set; }\r
- public string NDockSoundFile { get; set; }\r
- public string KDockSoundFile { get; set; }\r
- public string MaxShipsSoundFile { get; set; }\r
- public string MaxEquipsSoundFile { get; set; }\r
- public string DamagedShipSoundFile { get; set; }\r
- public string Akashi20MinSoundFile { get; set; }\r
- public string AkashiProgressSoundFile { get; set; }\r
- public string ConditionSoundFile { get; set; }\r
- public bool Logging { get; set; }\r
- public string LogFile { get; set; }\r
- public ProxyConfig Proxy { get; set; }\r
- public ShipListConfig ShipList { get; set; }\r
+ public Spoiler Spoilers { get; set; }\r
+ public bool UsePresetAkashi { get; set; }\r
+ public bool WarnBadDamageWithDameCon { get; set; }\r
+ public SoundConfig Sounds { get; set; } = new SoundConfig();\r
+ public bool DebugLogging { get; set; }\r
+ public string DebugLogFile { get; set; } = "log.txt";\r
+ public ProxyConfig Proxy { get; set; } = new ProxyConfig();\r
+ public ShipListConfig ShipList { get; set; } = new ShipListConfig();\r
+ public List<ShipListConfig> ListFormGroup { get; set; } = new List<ShipListConfig>();\r
+ public LogConfig Log { get; set; } = new LogConfig();\r
+ public PushbulletConfig Pushbullet { get; set; } = new PushbulletConfig();\r
+ public PushoverConfig Pushover { get; set; } = new PushoverConfig();\r
+\r
+ public static readonly string[] NotificationNames =\r
+ {\r
+ "遠征終了", "入渠終了", "建造完了", "艦娘数超過", "装備数超過",\r
+ "大破警告", "泊地修理20分経過", "泊地修理進行", "泊地修理完了", "疲労回復", "任務達成"\r
+ };\r
+\r
+ public static readonly Dictionary<string, int> NotificationIndex =\r
+ NotificationNames.Select((name, i) => new {name, i}).ToDictionary(entry => entry.name, entry => entry.i);\r
+\r
+\r
+ private const string FileName = "config.xml";\r
+ public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;\r
+ private static readonly string ConfigFile = Path.Combine(BaseDir, FileName);\r