Move save logic out of Game

This commit is contained in:
2025-03-07 00:32:19 -08:00
parent a09f6ec5a5
commit 3b5ee84ce2
39 changed files with 212 additions and 110 deletions

View 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();
}

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>