SupaLidlGame/Utils/Values/IntValue.cs

23 lines
406 B
C#

using Godot;
namespace SupaLidlGame;
public partial class IntValue : Node, IValue<int>
{
[Signal]
public delegate void ChangedEventHandler(int oldValue, int newValue);
protected int _value = default;
[Export]
public int Value
{
get => _value;
set
{
EmitSignal(SignalName.Changed, _value, value);
_value = value;
}
}
}