Make more properties immutable
This commit is contained in:
@@ -6,10 +6,10 @@ namespace SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
public record HandbookBase
|
||||
{
|
||||
[JsonPropertyName("Categories")]
|
||||
public List<HandbookCategory> Categories { get; set; }
|
||||
public required List<HandbookCategory> Categories { get; init; }
|
||||
|
||||
[JsonPropertyName("Items")]
|
||||
public List<HandbookItem> Items { get; set; }
|
||||
public required List<HandbookItem> Items { get; init; }
|
||||
}
|
||||
|
||||
public record HandbookCategory
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
public record Prestige
|
||||
{
|
||||
[JsonPropertyName("elements")]
|
||||
public List<PrestigeElement> Elements { get; set; }
|
||||
public required List<PrestigeElement> Elements { get; init; }
|
||||
}
|
||||
|
||||
public record PrestigeElement
|
||||
|
||||
@@ -6,10 +6,10 @@ namespace SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
public record TraderDialogs
|
||||
{
|
||||
[JsonPropertyName("elements")]
|
||||
public required List<TraderDialogElements> Elements;
|
||||
public required List<TraderDialogElement> Elements { get; init; }
|
||||
}
|
||||
|
||||
public record TraderDialogElements
|
||||
public record TraderDialogElement
|
||||
{
|
||||
[JsonPropertyName("CanBeFirstDialogue")]
|
||||
public bool CanBeFirstDialog { get; set; } = true;
|
||||
|
||||
Reference in New Issue
Block a user