Added VariableGetter functionality and some Variable setting components. Also added them to test scene.

This commit is contained in:
2025-10-28 13:09:36 +01:00
parent 8c1157c26e
commit 3fe79f2fd8
11 changed files with 125 additions and 1 deletions
@@ -0,0 +1,22 @@
using Godot;
namespace Babushka.scripts.CSharp.Low_Code.Variables.VariantValueChanger;
public partial class VariantIncrementor : Node
{
[Export] private VariableResource _resource;
public void Increment()
{
int integerValue = _resource.Payload.AsInt32();
integerValue++;
_resource.Payload = integerValue;
}
public void Decrement()
{
int integerValue = _resource.Payload.AsInt32();
integerValue--;
_resource.Payload = integerValue;
}
}