summaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files
diff options
context:
space:
mode:
authorPieter-Jan Briers <pieterjan.briers@gmail.com>2018-07-20 08:27:47 +0200
committerPieter-Jan Briers <pieterjan.briers@gmail.com>2018-07-20 13:55:13 +0200
commita8c97eb0944d89df9ba686f22c8241dfc2425a46 (patch)
treeeed14cfa37bf05f42d3c026da315a6001960f1ef /modules/mono/glue/cs_files
parent76bfe14e00ee5c8b65275d8b8e0c4cdc25b4b899 (diff)
Makes Mono bindings partial & adds GetNode<T>.
Diffstat (limited to 'modules/mono/glue/cs_files')
-rw-r--r--modules/mono/glue/cs_files/NodeExtensions.cs10
-rwxr-xr-xmodules/mono/glue/cs_files/VERSION.txt2
2 files changed, 11 insertions, 1 deletions
diff --git a/modules/mono/glue/cs_files/NodeExtensions.cs b/modules/mono/glue/cs_files/NodeExtensions.cs
new file mode 100644
index 0000000000..a099b0e400
--- /dev/null
+++ b/modules/mono/glue/cs_files/NodeExtensions.cs
@@ -0,0 +1,10 @@
+namespace Godot
+{
+ public partial class Node
+ {
+ public T GetNode<T>(NodePath path) where T : Godot.Node
+ {
+ return (T)GetNode(path);
+ }
+ }
+}
diff --git a/modules/mono/glue/cs_files/VERSION.txt b/modules/mono/glue/cs_files/VERSION.txt
index b8626c4cff..7ed6ff82de 100755
--- a/modules/mono/glue/cs_files/VERSION.txt
+++ b/modules/mono/glue/cs_files/VERSION.txt
@@ -1 +1 @@
-4
+5