implement HideoutHelper

This commit is contained in:
CWX
2025-01-24 19:34:50 +00:00
parent 7d95368411
commit 2ad2540b53
3 changed files with 1006 additions and 97 deletions
@@ -666,7 +666,7 @@ public class HideoutController(
continue;
}
if (_hideoutHelper.IsProductionType(production.Value))
if (production.Value.GetType() == typeof(HideoutProduction))
{
// Production or ScavCase
if (production.Value.RecipeId == request.RecipeId)
@@ -922,7 +922,7 @@ public class HideoutController(
string? prodId = null;
foreach (var production in ongoingProductions)
{
if (_hideoutHelper.IsProductionType(production.Value))
if (production.Value.GetType() == typeof(HideoutProduction))
{
// Production or ScavCase
if ((production.Value).RecipeId == request.RecipeId)
File diff suppressed because it is too large Load Diff
@@ -11,3 +11,10 @@ public record HideoutContinuousProductionStartRequestData : BaseInteractionReque
[JsonPropertyName("timestamp")]
public double? Timestamp { get; set; }
}
public record HideoutProperties
{
public int? BtcFarmGcs { get; set; }
public bool IsGeneratorOn { get; set; }
public bool WaterCollectorHasFilter { get; set; }
}