Пример #1
0
 void OwerwriteConfig()
 {
     base.Config.Clear();
     pluginConfig = PluginConfig.DefaultConfig();
     Config.WriteObject(pluginConfig);
     pluginConfig = Config.ReadObject <PluginConfig>();
     Debug.LogWarning("------------\n--CUSTOMAI--\n------------\n--------------------------\n--Config was overwritten--\n--------------------------");
 }
Пример #2
0
        private void UpdateConfigValues()
        {
            PluginConfig baseConfig = PluginConfig.DefaultConfig();

            if (config.PluginVersion < Version)
            {
                PrintWarning("Config update detected! Updating config values...");
                PrintWarning("Config update completed!");
            }
            config.PluginVersion = Version;
        }
Пример #3
0
 protected override void LoadDefaultConfig() => _config = PluginConfig.DefaultConfig();
Пример #4
0
 protected override void LoadDefaultConfig()
 {
     Debug.LogWarning("------------\n--CUSTOMAI--\n------------\n-------------------------------------\n--Creating a new configuration file--\n-------------------------------------");
     pluginConfig = PluginConfig.DefaultConfig();
 }
Пример #5
0
 protected override void LoadDefaultConfig()
 {
     PrintWarning("New configuration file created, Block Start now and will remain for 30 hours. You can change it into the config.");
     config = PluginConfig.DefaultConfig();
 }
Пример #6
0
 protected override void LoadDefaultConfig()
 {
     PrintWarning("Thank you for purchasing the plugin on the chaoscode website. If you transfer this plugin to third parties, be aware that it will deprive you of guaranteed updates!");
     config = PluginConfig.DefaultConfig();
 }
 protected override void LoadDefaultConfig()
 {
     PrintWarning("New configuration file created!!");
     config = PluginConfig.DefaultConfig();
 }