fixed configs missing types

This commit is contained in:
Alex
2025-01-07 09:19:59 +00:00
parent 8b696945f9
commit 127e023213
13 changed files with 159 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
namespace Core.Models.Enums;
public enum AirdropTypeEnum
{
Common,
Supply,
Medical,
Weapon
}
public enum SptAirdropTypeEnum
{
mixed,
barter,
foodMedical,
weaponArmor,
radar
}
+8
View File
@@ -0,0 +1,8 @@
namespace Core.Models.Enums;
public enum GiftSenderType
{
System,
Trader,
User
}
+11
View File
@@ -0,0 +1,11 @@
namespace Core.Models.Enums;
public enum Season {
SUMMER = 0,
AUTUMN = 1,
WINTER = 2,
SPRING = 3,
AUTUMN_LATE = 4,
SPRING_EARLY = 5,
STORM = 6,
}
+11
View File
@@ -0,0 +1,11 @@
namespace Core.Models.Enums;
public enum SeasonalEventType
{
None,
Christmas,
Halloween,
NewYears,
Promo,
AprilFools
}
+12
View File
@@ -0,0 +1,12 @@
namespace Core.Models.Enums;
public enum WindDirection {
EAST = 1,
NORTH = 2,
WEST = 3,
SOUTH = 4,
SE = 5,
SW = 6,
NW = 7,
NE = 8,
}
+1
View File
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Core.Models.Common;
using Core.Models.Enums;
namespace Core.Models.Spt.Config;
+1
View File
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Game;
namespace Core.Models.Spt.Config;
+1 -1
View File
@@ -42,7 +42,7 @@ public class Gift
/// Optional - supply a trader type to send from, not necessary when sending from SYSTEM or USER
/// </summary>
[JsonPropertyName("trader")]
public Traders? Trader { get; set; }
public string? Trader { get; set; }
[JsonPropertyName("messageText")]
public string MessageText { get; set; }
+1
View File
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Common;
namespace Core.Models.Spt.Config;
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Common;
using Core.Models.Enums;
namespace Core.Models.Spt.Config;
+1
View File
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Core.Models.Common;
using Core.Models.Spt.Services;
namespace Core.Models.Spt.Config;
+1
View File
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Core.Models.Common;
using Core.Models.Enums;
namespace Core.Models.Spt.Config;
+92
View File
@@ -0,0 +1,92 @@
using System.Text.Json.Serialization;
using Core.Models.Common;
using Core.Models.Enums;
namespace Core.Models.Spt.Services;
public class LootRequest
{
/// <summary>
/// Count of weapons to generate
/// </summary>
[JsonPropertyName("weaponPresetCount")]
public MinMax WeaponPresetCount { get; set; }
/// <summary>
/// Count of armor to generate
/// </summary>
[JsonPropertyName("armorPresetCount")]
public MinMax ArmorPresetCount { get; set; }
/// <summary>
/// Count of items to generate
/// </summary>
[JsonPropertyName("itemCount")]
public MinMax ItemCount { get; set; }
/// <summary>
/// Count of sealed weapon crates to generate
/// </summary>
[JsonPropertyName("weaponCrateCount")]
public MinMax WeaponCrateCount { get; set; }
/// <summary>
/// Item tpl blacklist to exclude
/// </summary>
[JsonPropertyName("itemBlacklist")]
public List<string> ItemBlacklist { get; set; }
/// <summary>
/// Item tpl whitelist to pick from
/// </summary>
[JsonPropertyName("itemTypeWhitelist")]
public List<string> ItemTypeWhitelist { get; set; }
/// <summary>
/// key: item base type: value: max count
/// </summary>
[JsonPropertyName("itemLimits")]
public Dictionary<string, int> ItemLimits { get; set; }
[JsonPropertyName("itemStackLimits")]
public Dictionary<string, MinMax> ItemStackLimits { get; set; }
/// <summary>
/// Allowed armor plate levels 2/3/4/5/6 for armor generated
/// </summary>
[JsonPropertyName("armorLevelWhitelist")]
public List<int> ArmorLevelWhitelist { get; set; }
/// <summary>
/// Should boss items be included in allowed items
/// </summary>
[JsonPropertyName("allowBossItems")]
public bool AllowBossItems { get; set; }
/// <summary>
/// Should item.json item reward blacklist be used
/// </summary>
[JsonPropertyName("useRewardItemBlacklist")]
public bool? UseRewardItemBlacklist { get; set; }
/// <summary>
/// Should forced loot be used instead of randomised loot
/// </summary>
[JsonPropertyName("useForcedLoot")]
public bool? UseForcedLoot { get; set; }
/// <summary>
/// Item tpls + count of items to force include
/// </summary>
[JsonPropertyName("forcedLoot")]
public Dictionary<string, MinMax> ForcedLoot { get; set; }
}
public class AirdropLootRequest : LootRequest
{
/// <summary>
/// Airdrop icon used by client to show crate type
/// </summary>
[JsonPropertyName("icon")]
public AirdropTypeEnum? Icon { get; set; }
}