Move save logic out of Game
This commit is contained in:
10
Zennysoft.Game.Abstractions/Save/ISaveFileManager.cs
Normal file
10
Zennysoft.Game.Abstractions/Save/ISaveFileManager.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Zennysoft.Game.Abstractions;
|
||||
|
||||
public interface ISaveFileManager<T>
|
||||
{
|
||||
public Task WriteToFile(T gameData);
|
||||
|
||||
public Task<T> ReadFromFile();
|
||||
}
|
||||
Reference in New Issue
Block a user