Add ISave interface

master
John Montagu, the 4th Earl of Sandvich 2024-10-17 13:29:47 -07:00
parent c0424444b9
commit 28a408de1b
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
3 changed files with 14 additions and 2 deletions

View File

@ -3,7 +3,7 @@ using SupaLidlGame.Utils;
namespace SupaLidlGame.State.Global; namespace SupaLidlGame.State.Global;
public partial class GlobalState : Node public partial class GlobalState : Node, ISave
{ {
[Export] [Export]
public Progression Progression { get; set; } public Progression Progression { get; set; }

12
Utils/ISave.cs 100644
View File

@ -0,0 +1,12 @@
using Godot;
namespace SupaLidlGame.Utils;
public interface ISave
{
public State.Global.Progression Progression { get; set; }
public State.Global.MapState MapState { get; set; }
public State.Global.Stats Stats { get; set; }
}

View File

@ -2,7 +2,7 @@ using Godot;
namespace SupaLidlGame.Utils; namespace SupaLidlGame.Utils;
public partial class Save : Resource public partial class Save : Resource, ISave
{ {
[Export] [Export]
public State.Global.Progression Progression { get; set; } public State.Global.Progression Progression { get; set; }