Ejemplo n.º 1
0
 public SettingsProvider(string ownerId, Func <ExplorationSettings> getSettings, ProviderPriority priority)
 {
     OwnerId     = ownerId;
     GetSettings = getSettings;
     Priority    = priority;
 }
Ejemplo n.º 2
0
 public static bool AddSettingsProvider(string ownerId, Func <ExplorationSettings> getSettings, ProviderPriority priority)
 {
     if (!SettingsProviders.Exists(s => s.OwnerId == ownerId))
     {
         SettingsProviders.Add(new SettingsProvider(ownerId, getSettings, priority));
         GlobalLog.Info($"[ComplexExplorer] {ownerId} settings provider has been added.");
         return(true);
     }
     return(false);
 }