2024-04-16 18:29:40 +00:00
|
|
|
using LootDumpProcessor.Utils;
|
|
|
|
|
|
|
|
namespace LootDumpProcessor.Storage.Collections;
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
public class FlatKeyableList<T> : List<T>, IKeyable
|
|
|
|
{
|
2024-04-16 18:29:40 +00:00
|
|
|
public string __ID { get; } = KeyGenerator.GetNextKey();
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
public IKey GetKey()
|
|
|
|
{
|
2024-04-16 18:29:40 +00:00
|
|
|
return new FlatUniqueKey([__ID]);
|
2023-08-12 19:08:38 +01:00
|
|
|
}
|
|
|
|
}
|