Update controllers sessionIds

This commit is contained in:
Cj
2025-07-07 05:50:28 -04:00
parent 39e4a6e676
commit 1de6a75cbf
34 changed files with 1079 additions and 1178 deletions
@@ -13,14 +13,14 @@ namespace SPTarkov.Server.Core.Controllers;
[Injectable]
public class WeatherController(
ISptLogger<WeatherController> _logger,
WeatherGenerator _weatherGenerator,
SeasonalEventService _seasonalEventService,
RaidWeatherService _raidWeatherService,
ConfigServer _configServer
ISptLogger<WeatherController> logger,
WeatherGenerator weatherGenerator,
SeasonalEventService seasonalEventService,
RaidWeatherService raidWeatherService,
ConfigServer configServer
)
{
protected WeatherConfig _weatherConfig = _configServer.GetConfig<WeatherConfig>();
protected WeatherConfig _weatherConfig = configServer.GetConfig<WeatherConfig>();
/// <summary>
/// Handle client/weather
@@ -37,8 +37,8 @@ public class WeatherController(
Season = Season.AUTUMN,
};
_weatherGenerator.CalculateGameTime(result);
result.Weather = _weatherGenerator.GenerateWeather(result.Season.Value);
weatherGenerator.CalculateGameTime(result);
result.Weather = weatherGenerator.GenerateWeather(result.Season.Value);
return result;
}
@@ -52,11 +52,11 @@ public class WeatherController(
{
var result = new GetLocalWeatherResponseData
{
Season = _seasonalEventService.GetActiveWeatherSeason(),
Season = seasonalEventService.GetActiveWeatherSeason(),
Weather = [],
};
result.Weather.AddRange(_raidWeatherService.GetUpcomingWeather());
result.Weather.AddRange(raidWeatherService.GetUpcomingWeather());
return result;
}