use prim ctor and fixed warnings: healthCallbacks, healthController partial

This commit is contained in:
CWX
2025-01-18 12:57:32 +00:00
parent 8e97901a65
commit e205c572b3
2 changed files with 6 additions and 18 deletions
+5 -17
View File
@@ -3,30 +3,18 @@ using Core.Controllers;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Health;
using Core.Models.Eft.HttpResponse;
using Core.Models.Eft.ItemEvent;
using Core.Utils;
namespace Core.Callbacks;
[Injectable]
public class HealthCallbacks
{
protected HttpResponseUtil _httpResponseUtil;
protected ProfileHelper _profileHelper;
protected HealthController _healthController;
public HealthCallbacks
(
HttpResponseUtil httpResponseUtil,
ProfileHelper profileHelper,
HealthController healthController
public class HealthCallbacks(
HttpResponseUtil _httpResponseUtil,
ProfileHelper _profileHelper,
HealthController _healthController
)
{
_httpResponseUtil = httpResponseUtil;
_profileHelper = profileHelper;
_healthController = healthController;
}
{
/// <summary>
/// Custom spt server request found in modules/QTEPatch.cs
+1 -1
View File
@@ -62,7 +62,7 @@ public class HealthController
/// <param name="info">Request data</param>
/// <param name="sessionId">session id</param>
public void ApplyWorkoutChanges(
PmcData pmcData,
PmcData? pmcData,
WorkoutData info,
string sessionId)
{