Interned more strings

This commit is contained in:
Chomp
2025-02-09 19:14:48 +00:00
parent 88893ac7be
commit c8dadd106c
3 changed files with 29 additions and 6 deletions
@@ -1519,11 +1519,19 @@ public record SpawnPointParam
public record ColliderParams
{
private string? _parent;
[JsonPropertyName("_parent")]
public string? Parent
{
get;
set;
get
{
return _parent;
}
set
{
_parent = string.Intern(value);
}
}
[JsonPropertyName("_props")]
@@ -221,10 +221,17 @@ public record LooseLootItemDistribution
public record ComposedKey
{
private string? _key;
[JsonPropertyName("key")]
public string? Key
{
get;
set;
get
{
return _key;
}
set
{
_key = string.Intern(value);
}
}
}
@@ -5,6 +5,8 @@ namespace Core.Models.Eft.Common.Tables;
public record Item
{
private string? _id;
private string? _parentId;
private string? _SlotId;
@@ -15,8 +17,14 @@ public record Item
[JsonPropertyName("_id")]
public string? Id
{
get;
set;
get
{
return _id;
}
set
{
_id = string.Intern(value);
}
}
[JsonPropertyName("_tpl")]