14 lines
499 B
C#
14 lines
499 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|