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

28 lines
635 B
C#

namespace LootDumpProcessor.Storage.Implementations.File;
public class FileDataStorage : IDataStorage
{
public void Setup()
{
}
public void Store<T>(T t) where T : IKeyable
{
StoreHandlerFactory.GetInstance(t.GetKey().GetKeyType()).Store(t);
}
public bool Exists(IKey t)
{
return StoreHandlerFactory.GetInstance(t.GetKeyType()).Exists(t);
}
public T GetItem<T>(IKey key) where T : IKeyable
{
return StoreHandlerFactory.GetInstance(key.GetKeyType()).Retrieve<T>(key);
}
public List<T> GetAll<T>()
{
throw new NotImplementedException();
}
}