// Courtesy of @eumario
// Original file : https://github.com/eumario/GodotSharpExtras/blob/master/lib/Classes/NodePathAttribute.cs
using System;
namespace TerraBrush;
///
/// Sets the value of a field to the node at the given path.
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class NodePathAttribute : Attribute {
public string NodePath { get;set; }
///
/// Constructs a
///
/// The path to the node, relative to the current node.
public NodePathAttribute(string path = "") {
this.NodePath = path;
}
}