Created ISaveable interface and made existing saveable classes inherit from it.

This commit is contained in:
2025-11-23 20:10:42 +01:00
parent 4ed6f4e7d9
commit 4bbaab1a2a
4 changed files with 19 additions and 3 deletions
@@ -0,0 +1,17 @@
namespace Babushka.scripts.CSharp.Common.Savegame;
/// <summary>
/// Defines the behaviour of Nodes that have fields that should save / load to disk.
/// </summary>
public interface ISaveable
{
/// <summary>
/// Adds or updates the field data that shall be stored to disk.
/// </summary>
public void UpdateSaveData();
/// <summary>
/// Loads the field data from disk.
/// </summary>
public void LoadFromSaveData();
}