0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-13 09:50:44 -05:00
bluextx 465ad95cb5 Refactored code to use System.Text.Json and improved code style
The changes include:
- Replaced Newtonsoft.Json with System.Text.Json for serialization
- Removed redundant JsonProperty attributes and simplified model classes
- Converted static fields to constants where appropriate
- Improved code formatting and readability
- Simplified method bodies and expressions
- Removed unused imports and cleaned up namespaces
2025-01-11 10:52:23 +03:00

35 lines
1.1 KiB
C#

using System.Text.Json.Serialization;
namespace LootDumpProcessor.Model.Tarkov;
public class Props
{
public string Name { get; set; }
public string ShortName { get; set; }
public string Description { get; set; }
public double? MaxDurability { get; set; }
public string? Caliber { get; set; }
public string? AmmoCaliber { get; set; }
public bool QuestItem { get; set; }
public int SpawnChance { get; set; }
public List<string> SpawnFilter { get; set; }
public List<Grid> Grids { get; set; }
public string Rarity { get; set; }
public int ExtraSizeLeft { get; set; }
public int ExtraSizeRight { get; set; }
public int ExtraSizeUp { get; set; }
public int ExtraSizeDown { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public int? StackMinRandom { get; set; }
public int? StackMaxRandom { get; set; }
public List<Chamber> Chambers { get; set; }
public List<Slot> Slots { get; set; }
[JsonPropertyName("defAmmo")] public string DefaultAmmo { get; set; }
}