chomp
6e4c7abf73
Co-authored-by: Alex <alex@dm-me-for-questions.com> Reviewed-on: SPT-AKI/LootDumpProcessor#6
28 lines
635 B
C#
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();
|
|
}
|
|
} |