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:
parent
44c3d49aad
commit
b4a2ce40c1
6 changed files with 132 additions and 0 deletions
6
Core/Attributes/NodeBindAttribute.cs
Normal file
6
Core/Attributes/NodeBindAttribute.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace Godot.Sharp.Extended.Attributes;
|
||||
|
||||
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
|
||||
public class NodeBindAttribute : Attribute
|
||||
{
|
||||
}
|
||||
14
Core/Attributes/NodeBindPropAttribute.cs
Normal file
14
Core/Attributes/NodeBindPropAttribute.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
11
Core/Attributes/ResourcePathAttribute.cs
Normal file
11
Core/Attributes/ResourcePathAttribute.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue