79 lines
2.1 KiB
C#
79 lines
2.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPTarkov.Server.Core.Models.Spt.Config;
|
|
|
|
public record LostOnDeathConfig : BaseConfig
|
|
{
|
|
[JsonPropertyName("kind")]
|
|
public override string Kind { get; set; } = "spt-lostondeath";
|
|
|
|
/// <summary>
|
|
/// What equipment in each slot should be lost on death
|
|
/// </summary>
|
|
[JsonPropertyName("equipment")]
|
|
public required LostEquipment Equipment { get; set; }
|
|
|
|
/// <summary>
|
|
/// Should special slot items be removed from quest inventory on death e.g. wifi camera/markers
|
|
/// </summary>
|
|
[JsonPropertyName("specialSlotItems")]
|
|
public bool SpecialSlotItems { get; set; }
|
|
|
|
/// <summary>
|
|
/// Should quest items be removed from quest inventory on death
|
|
/// </summary>
|
|
[JsonPropertyName("questItems")]
|
|
public bool QuestItems { get; set; }
|
|
|
|
[JsonPropertyName("wipeOnRaidStart")]
|
|
public bool WipeOnRaidStart { get; set; }
|
|
}
|
|
|
|
public record LostEquipment
|
|
{
|
|
[JsonPropertyName("ArmBand")]
|
|
public bool ArmBand { get; set; }
|
|
|
|
[JsonPropertyName("Headwear")]
|
|
public bool Headwear { get; set; }
|
|
|
|
[JsonPropertyName("Earpiece")]
|
|
public bool Earpiece { get; set; }
|
|
|
|
[JsonPropertyName("FaceCover")]
|
|
public bool FaceCover { get; set; }
|
|
|
|
[JsonPropertyName("ArmorVest")]
|
|
public bool ArmorVest { get; set; }
|
|
|
|
[JsonPropertyName("Eyewear")]
|
|
public bool Eyewear { get; set; }
|
|
|
|
[JsonPropertyName("TacticalVest")]
|
|
public bool TacticalVest { get; set; }
|
|
|
|
[JsonPropertyName("PocketItems")]
|
|
public bool PocketItems { get; set; }
|
|
|
|
[JsonPropertyName("Backpack")]
|
|
public bool Backpack { get; set; }
|
|
|
|
[JsonPropertyName("Holster")]
|
|
public bool Holster { get; set; }
|
|
|
|
[JsonPropertyName("FirstPrimaryWeapon")]
|
|
public bool FirstPrimaryWeapon { get; set; }
|
|
|
|
[JsonPropertyName("SecondPrimaryWeapon")]
|
|
public bool SecondPrimaryWeapon { get; set; }
|
|
|
|
[JsonPropertyName("Scabbard")]
|
|
public bool Scabbard { get; set; }
|
|
|
|
[JsonPropertyName("Compass")]
|
|
public bool Compass { get; set; }
|
|
|
|
[JsonPropertyName("SecuredContainer")]
|
|
public bool SecuredContainer { get; set; }
|
|
}
|