Add ISave interface
							parent
							
								
									c0424444b9
								
							
						
					
					
						commit
						28a408de1b
					
				|  | @ -3,7 +3,7 @@ using SupaLidlGame.Utils; | |||
| 
 | ||||
| namespace SupaLidlGame.State.Global; | ||||
| 
 | ||||
| public partial class GlobalState : Node | ||||
| public partial class GlobalState : Node, ISave | ||||
| { | ||||
|     [Export] | ||||
|     public Progression Progression { get; set; } | ||||
|  |  | |||
|  | @ -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; } | ||||
| } | ||||
|  | @ -2,7 +2,7 @@ using Godot; | |||
| 
 | ||||
| namespace SupaLidlGame.Utils; | ||||
| 
 | ||||
| public partial class Save : Resource | ||||
| public partial class Save : Resource, ISave | ||||
| { | ||||
|     [Export] | ||||
|     public State.Global.Progression Progression { get; set; } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue