2024-04-16 18:29:40 +00:00
|
|
|
using System.Text.Json.Serialization;
|
2023-08-12 19:08:38 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace LootDumpProcessor.Storage;
|
|
|
|
|
2024-04-16 18:29:40 +00:00
|
|
|
public abstract class AbstractKey(string[] indexes) : IKey
|
2023-08-12 19:08:38 +01:00
|
|
|
{
|
|
|
|
public abstract KeyType GetKeyType();
|
|
|
|
|
|
|
|
[JsonProperty("serializedKey")]
|
|
|
|
[JsonPropertyName("serializedKey")]
|
|
|
|
public string SerializedKey
|
|
|
|
{
|
2024-04-16 18:29:40 +00:00
|
|
|
get => string.Join("|", indexes);
|
|
|
|
set => indexes = value.Split("|");
|
2023-08-12 19:08:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public string[] GetLookupIndex()
|
|
|
|
{
|
2024-04-16 18:29:40 +00:00
|
|
|
return indexes;
|
2023-08-12 19:08:38 +01:00
|
|
|
}
|
|
|
|
}
|