예제 #1
0
 internal IAdaPluginConfig GetConfig(IAdaPlugin plugin)
 {
     if (this.DeclaredConfigs.ContainsKey(plugin.ConfigType))
     {
         return(this.DeclaredConfigs[plugin.ConfigType]);
     }
     return(null);
 }
예제 #2
0
 public void UpdateConfig(IAdaPlugin plugin)
 {
     this.DeclaredConfigs[plugin.ConfigType] = plugin.Config;
     this.WriteConfigs();
 }