Make SaveableVariableNodes and a simple cheat to count up days

This commit is contained in:
2025-11-26 18:00:45 +01:00
parent f32033cb5f
commit 684131f495
7 changed files with 117 additions and 2 deletions
@@ -0,0 +1,19 @@
using Babushka.scripts.CSharp.Low_Code.Variables;
using Godot;
namespace Babushka.scripts.CSharp.Common.DayAndNight;
public partial class CalendarController : Node
{
[Export] private SaveableVariableNode _dayCounter;
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed("NextDayCheat"))
{
int days = _dayCounter.Payload.AsInt32();
days++;
_dayCounter.Payload = days;
}
}
}
@@ -0,0 +1 @@
uid://du5facslfvg77