@@ -1,4 +1,5 @@
|
||||
using Core.Controllers;
|
||||
using Core.Annotations;
|
||||
using Core.Controllers;
|
||||
using Core.Models.Eft.Common;
|
||||
using Core.Models.Eft.HttpResponse;
|
||||
using Core.Models.Eft.Profile;
|
||||
@@ -6,6 +7,7 @@ using Core.Utils;
|
||||
|
||||
namespace Core.Callbacks;
|
||||
|
||||
[Injectable(InjectableTypeOverride = typeof(AchievementCallbacks))]
|
||||
public class AchievementCallbacks
|
||||
{
|
||||
protected AchievementController _achievementController;
|
||||
|
||||
@@ -9,6 +9,7 @@ using Core.Utils;
|
||||
namespace Core.Callbacks;
|
||||
|
||||
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.DialogCallbacks)]
|
||||
[Injectable(InjectableTypeOverride = typeof(DialogueCallbacks))]
|
||||
public class DialogueCallbacks : OnUpdate
|
||||
{
|
||||
protected HashUtil _hashUtil;
|
||||
|
||||
@@ -14,6 +14,7 @@ using Core.Utils;
|
||||
namespace Core.Callbacks;
|
||||
|
||||
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.InsuranceCallbacks)]
|
||||
[Injectable(InjectableTypeOverride = typeof(InsuranceCallbacks))]
|
||||
public class InsuranceCallbacks : OnUpdate
|
||||
{
|
||||
protected InsuranceController _insuranceController;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace Core.Callbacks;
|
||||
|
||||
[Injectable(InjectableTypeOverride = typeof(OnLoad), TypePriority = OnLoadOrder.RagfairCallbacks)]
|
||||
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.RagfairCallbacks)]
|
||||
[Injectable(InjectableTypeOverride = typeof(RagfairCallbacks))]
|
||||
public class RagfairCallbacks : OnLoad, OnUpdate
|
||||
{
|
||||
protected HttpResponseUtil _httpResponseUtil;
|
||||
|
||||
@@ -7,6 +7,7 @@ using Core.Models.Spt.Config;
|
||||
using Core.Models.Spt.Weather;
|
||||
using Core.Servers;
|
||||
using Core.Services;
|
||||
using ILogger = Core.Models.Utils.ILogger;
|
||||
|
||||
namespace Core.Controllers;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Core.Annotations;
|
||||
using Core.Annotations;
|
||||
using Core.Helpers;
|
||||
using Core.Models.Eft.Weather;
|
||||
using Core.Models.Enums;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Core.Annotations;
|
||||
using Core.Annotations;
|
||||
using Core.Models.Spt.Helper;
|
||||
using ILogger = Core.Models.Utils.ILogger;
|
||||
|
||||
namespace Core.Helpers;
|
||||
|
||||
@@ -42,17 +43,17 @@ public class WeightedRandomHelper
|
||||
{
|
||||
if (items.Count == 0)
|
||||
{
|
||||
_logger.LogError("Items must not be empty");
|
||||
_logger.Error("Items must not be empty");
|
||||
}
|
||||
|
||||
if (weights.Count == 0)
|
||||
{
|
||||
_logger.LogError("Item weights must not be empty");
|
||||
_logger.Error("Item weights must not be empty");
|
||||
}
|
||||
|
||||
if (items.Count != weights.Count)
|
||||
{
|
||||
_logger.LogError("Items and weight inputs must be of the same length");
|
||||
_logger.Error("Items and weight inputs must be of the same length");
|
||||
}
|
||||
|
||||
// Preparing the cumulative weights list.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
using Core.Models.Common;
|
||||
using Core.Models.Enums;
|
||||
using Core.Utils.Json.Converters;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Core.Annotations;
|
||||
using Core.Annotations;
|
||||
using Core.Generators;
|
||||
using Core.Helpers;
|
||||
using Core.Models.Eft.Weather;
|
||||
@@ -6,6 +6,7 @@ using Core.Models.Enums;
|
||||
using Core.Models.Spt.Config;
|
||||
using Core.Servers;
|
||||
using Core.Utils;
|
||||
using ILogger = Core.Models.Utils.ILogger;
|
||||
|
||||
namespace Core.Services;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Core.Annotations;
|
||||
using Core.Annotations;
|
||||
|
||||
namespace Core.Utils;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user