0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-13 09:50:44 -05:00

11 lines
344 B
C#
Raw Normal View History

using System.Text.Json.Serialization;
using LootDumpProcessor.Utils;
2023-08-12 19:08:38 +01:00
namespace LootDumpProcessor.Storage.Collections;
public class FlatKeyableDictionary<K, V> : Dictionary<K, V>, IKeyable
{
[JsonPropertyName("__id__")] public string __ID { get; set; } = KeyGenerator.GetNextKey();
2023-08-12 19:08:38 +01:00
public IKey GetKey() => new FlatUniqueKey([__ID]);
2023-08-12 19:08:38 +01:00
}