Improved logging with exceptions and remove config enum parameter
This commit is contained in:
@@ -76,8 +76,8 @@ public class BotController
|
||||
_applicationContext = applicationContext;
|
||||
_randomUtil = randomUtil;
|
||||
_cloner = cloner;
|
||||
_botConfig = _configServer.GetConfig<BotConfig>(ConfigTypes.BOT);
|
||||
_pmcConfig = _configServer.GetConfig<PmcConfig>(ConfigTypes.PMC);
|
||||
_botConfig = _configServer.GetConfig<BotConfig>();
|
||||
_pmcConfig = _configServer.GetConfig<PmcConfig>();
|
||||
}
|
||||
|
||||
public int GetBotPresetGenerationLimit(string type)
|
||||
|
||||
@@ -96,11 +96,11 @@ public class GameController
|
||||
_applicationContext = applicationContext;
|
||||
_cloner = cloner;
|
||||
|
||||
_coreConfig = configServer.GetConfig<CoreConfig>(ConfigTypes.CORE);
|
||||
_httpConfig = configServer.GetConfig<HttpConfig>(ConfigTypes.HTTP);
|
||||
_ragfairConfig = configServer.GetConfig<RagfairConfig>(ConfigTypes.RAGFAIR);
|
||||
_hideoutConfig = configServer.GetConfig<HideoutConfig>(ConfigTypes.HIDEOUT);
|
||||
_botConfig = configServer.GetConfig<BotConfig>(ConfigTypes.BOT);
|
||||
_coreConfig = configServer.GetConfig<CoreConfig>();
|
||||
_httpConfig = configServer.GetConfig<HttpConfig>();
|
||||
_ragfairConfig = configServer.GetConfig<RagfairConfig>();
|
||||
_hideoutConfig = configServer.GetConfig<HideoutConfig>();
|
||||
_botConfig = configServer.GetConfig<BotConfig>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -39,8 +39,8 @@ public class InRaidController
|
||||
_localisationService = localisationService;
|
||||
_applicationContext = applicationContext;
|
||||
_configServer = configServer;
|
||||
_inRaidConfig = configServer.GetConfig<InRaidConfig>(ConfigTypes.IN_RAID);
|
||||
_botConfig = configServer.GetConfig<BotConfig>(ConfigTypes.BOT);
|
||||
_inRaidConfig = configServer.GetConfig<InRaidConfig>();
|
||||
_botConfig = configServer.GetConfig<BotConfig>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -54,7 +54,7 @@ public class LauncherController
|
||||
_profileHelper = profileHelper;
|
||||
_databaseService = databaseService;
|
||||
_localisationService = localisationService;
|
||||
_coreConfig = configServer.GetConfig<CoreConfig>(ConfigTypes.CORE);
|
||||
_coreConfig = configServer.GetConfig<CoreConfig>();
|
||||
}
|
||||
|
||||
public ConnectResponse Connect()
|
||||
|
||||
@@ -71,8 +71,8 @@ public class TradeController
|
||||
_ragfairPriceService = ragfairPriceService;
|
||||
_configServer = configServer;
|
||||
|
||||
_ragfairConfig = _configServer.GetConfig<RagfairConfig>(ConfigTypes.RAGFAIR);
|
||||
_traderConfig = _configServer.GetConfig<TraderConfig>(ConfigTypes.TRADER);
|
||||
_ragfairConfig = _configServer.GetConfig<RagfairConfig>();
|
||||
_traderConfig = _configServer.GetConfig<TraderConfig>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,7 +67,7 @@ public class TraderController
|
||||
_configServer = configServer;
|
||||
_cloner = cloner;
|
||||
|
||||
_traderConfig = configServer.GetConfig<TraderConfig>(ConfigTypes.TRADER);
|
||||
_traderConfig = configServer.GetConfig<TraderConfig>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -39,7 +39,7 @@ public class WeatherController
|
||||
_weatherHelper = weatherHelper;
|
||||
_configServer = configServer;
|
||||
|
||||
_weatherConfig = _configServer.GetConfig<WeatherConfig>(ConfigTypes.WEATHER);
|
||||
_weatherConfig = _configServer.GetConfig<WeatherConfig>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user