changed classes to records

This commit is contained in:
Alex
2025-01-17 18:13:37 +00:00
parent 7d9afa3cb4
commit c94408c596
322 changed files with 1201 additions and 1201 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
namespace Core.Models.Spt.Config;
public class InRaidConfig : BaseConfig
public record InRaidConfig : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind { get; set; } = "spt-inraid";
@@ -52,7 +52,7 @@ public class InRaidConfig : BaseConfig
public double PlayerScavHostileChancePercent { get; set; }
}
public class RaidMenuSettings
public record RaidMenuSettings
{
[JsonPropertyName("aiAmount")]
public string AiAmount { get; set; }
@@ -79,9 +79,9 @@ public class RaidMenuSettings
public bool RandomTime { get; set; }
}
public class RaidSave
public record RaidSave
{
/** Should loot gained from raid be saved */
[JsonPropertyName("loot")]
public bool Loot { get; set; }
}
}