Added Core Functionality

Added core functionality that was from the old Godot.Sharp.Extra library.  Not all functions, only functions that were considered worth porting.
This commit is contained in:
Mario Steele 2025-09-26 20:12:37 -05:00
parent 44c3d49aad
commit b4a2ce40c1
6 changed files with 132 additions and 0 deletions

View file

@ -0,0 +1,6 @@
namespace Godot.Sharp.Extended.Attributes;
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public class NodeBindAttribute : Attribute
{
}

View file

@ -0,0 +1,14 @@
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;
}
}

View file

@ -0,0 +1,11 @@
namespace Godot.Sharp.Extended.Attributes;
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public class ResourcePathAttribute : System.Attribute
{
public string Path { get; private set; }
public ResourcePathAttribute(string path) {
Path = path;
}
}