LootDumpProcessor/Storage/AbstractKey.cs
chomp 6e4c7abf73 dump-processor-cleanup (#6)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
Reviewed-on: SPT-AKI/LootDumpProcessor#6
2024-04-16 18:29:40 +00:00

22 lines
484 B
C#

using System.Text.Json.Serialization;
using Newtonsoft.Json;
namespace LootDumpProcessor.Storage;
public abstract class AbstractKey(string[] indexes) : IKey
{
public abstract KeyType GetKeyType();
[JsonProperty("serializedKey")]
[JsonPropertyName("serializedKey")]
public string SerializedKey
{
get => string.Join("|", indexes);
set => indexes = value.Split("|");
}
public string[] GetLookupIndex()
{
return indexes;
}
}