Remove AppContext, store profile related data in ProfileActivityService
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using SPTarkov.DI.Annotations;
|
||||
using SPTarkov.Server.Core.Context;
|
||||
using SPTarkov.Server.Core.Helpers;
|
||||
using SPTarkov.Server.Core.Models.Eft.Match;
|
||||
using SPTarkov.Server.Core.Models.Spt.Config;
|
||||
@@ -17,8 +16,8 @@ public class MatchController(
|
||||
SaveServer _saveServer,
|
||||
MatchLocationService _matchLocationService,
|
||||
ConfigServer _configServer,
|
||||
ApplicationContext _applicationContext,
|
||||
LocationLifecycleService _locationLifecycleService,
|
||||
ProfileActivityService _profileActivityService,
|
||||
WeatherHelper _weatherHelper,
|
||||
ICloner _cloner
|
||||
)
|
||||
@@ -104,7 +103,7 @@ public class MatchController(
|
||||
request.IsNightRaid = _weatherHelper.IsNightTime(request.TimeVariant, request.Location);
|
||||
|
||||
// Store request data for access during bot generation
|
||||
_applicationContext.AddValue(ContextVariableType.RAID_CONFIGURATION, request);
|
||||
_profileActivityService.GetProfileActivityRaidData(sessionId).RaidConfiguration = request;
|
||||
|
||||
// TODO: add code to strip PMC of equipment now they've started the raid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user