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
@@ -13,7 +13,7 @@ namespace Babushka.scripts.CSharp.Common.Farming;
/// Defines the behaviour of the field, i.e. interactions, states and effects.
/// </summary>
[GlobalClass]
public partial class FieldBehaviour2D : Sprite2D
public partial class FieldBehaviour2D : Sprite2D, ISaveable
{
[ExportGroup("Persistence")]
[Export] public string SaveId = "";