LootDumpProcessor/Storage/AbstractKey.cs

22 lines
484 B
C#
Raw Normal View History

using System.Text.Json.Serialization;
2023-08-12 19:08:38 +01:00
using Newtonsoft.Json;
namespace LootDumpProcessor.Storage;
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
{
get => string.Join("|", indexes);
set => indexes = value.Split("|");
2023-08-12 19:08:38 +01:00
}
public string[] GetLookupIndex()
{
return indexes;
2023-08-12 19:08:38 +01:00
}
}