void SaveConfig(ConfigData config) => Config.WriteObject(config, true);
 protected override void LoadDefaultConfig()
 {
     Config.Clear();
     LoadVariables();
 }
Beispiel #3
0
 private void LoadConfigVariables()
 {
     configData = Config.ReadObject <ConfigData>();
     SaveConfig(configData);
 }
 private void LoadConfigVariables() => configData = Config.ReadObject <ConfigData>();
Beispiel #5
0
 protected override void SaveConfig()
 {
     LogWarning($"Configuration changes saved to {Name}.json");
     Config.WriteObject(config, true);
 }
Beispiel #6
0
 private void SaveConfig <T>(T data)
 {
     Config.WriteObject(data, true);
     SaveConfig();
 }
Beispiel #7
0
 private void LoadConfig <T>(ref T data) => data = Config.ReadObject <T>();
Beispiel #8
0
 protected override void LoadDefaultConfig()
 {
     Puts("Creating a new config file");
     Config.Clear();
     LoadVariables();
 }
 protected override void SaveConfig() => Config.WriteObject(config);