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
@@ -7,7 +7,7 @@ using Babushka.scripts.CSharp.Common.Savegame;
namespace Babushka.scripts.CSharp.Common.Inventory;
public partial class InventoryInstance : Node
public partial class InventoryInstance : Node, ISaveable
{
private List<InventorySlot> _slots = new();
public IReadOnlyList<InventorySlot> Slots => _slots;