mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-15 19:13:27 +08:00
WIP
This commit is contained in:
@@ -7,11 +7,11 @@ namespace CruiseAssist.Commons;
|
||||
|
||||
internal abstract class ConfigManager
|
||||
{
|
||||
public static ConfigFile Config { get; private set; }
|
||||
|
||||
protected ConfigManager(ConfigFile config)
|
||||
private static ConfigFile Config { get; set; }
|
||||
|
||||
protected static void Init<T>(ConfigFile config) where T: ConfigManager, new()
|
||||
{
|
||||
_instance = this;
|
||||
_instance = new T();
|
||||
Config = config;
|
||||
Config.SaveOnConfigSet = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user