SupaLidlGame/Debug/PropertyPointer.cs

21 lines
396 B
C#
Raw Normal View History

2023-09-29 11:32:15 -07:00
using Godot;
namespace SupaLidlGame.Debug;
public struct PropertyPointer
{
public Node Node { get; set; }
public string Property { get; set; }
public PropertyPointer(Node node, string property)
{
Node = node;
Property = property;
}
public Variant Dereferenced => Node.Get(Property);
public void Set(Variant value) => Node.Set(Property, value);
}