Godot.Sharp.Extended/Core/Attributes/NodeBindPropAttribute.cs

14 lines
499 B
C#
Raw Normal View History

namespace Godot.Sharp.Extended.Attributes;
[System.AttributeUsage(System.AttributeTargets.Field)]
public class NodePropBindAttribute : System.Attribute
{
public string TargetNodeName { get; private set; }
public string GodotPropertyName { get; private set; }
public NodePropBindAttribute(string targetNodeName, string godotPropertyName)
{
TargetNodeName = targetNodeName;
GodotPropertyName = godotPropertyName;
}
}