watering can fillstate is saving and loading

This commit is contained in:
2025-12-03 17:04:38 +01:00
parent c288af296c
commit 0ecae5a4d9
6 changed files with 109 additions and 34 deletions
@@ -1,4 +1,3 @@
using Babushka.scripts.CSharp.Common.Inventory;
using Babushka.scripts.CSharp.Common.Savegame;
using Godot;
using Godot.Collections;
@@ -9,6 +8,9 @@ public partial class SaveableVariableNode : VariableNode, ISaveable
{
[Export] private bool _debug;
[Signal]
public delegate void OnLoadingCompleteEventHandler();
public override void _EnterTree()
{
LoadFromSaveData();
@@ -60,5 +62,7 @@ public partial class SaveableVariableNode : VariableNode, ISaveable
GD.Print($"SaveableVariable {Name} loaded payload: {Payload}.");
}
}
EmitSignal(SignalName.OnLoadingComplete);
}
}