summaryrefslogtreecommitdiff
path: root/modules/gdnative/gdnative_api.json
diff options
context:
space:
mode:
authortoasteater <48371905+toasteater@users.noreply.github.com>2020-01-10 11:55:49 +0000
committertoasteater <48371905+toasteater@users.noreply.github.com>2020-01-10 11:59:37 +0000
commit677e72d2f67ca13deb796d323367eb6c5a893721 (patch)
tree1e680dadb1bcf7d44859fe020a27523ac6f48679 /modules/gdnative/gdnative_api.json
parentff173ff770c4498f4527676838ef8097917d0dda (diff)
Expose instance_from_id to GDNative
This function is available to GDScript but not to GDNative. When exposed, it allows building more ergonomic safe abstractions over the GDNative APIs, and covers the use cases of the original PR. Close #28478. Supersedes #28791. Co-authored-by: Markus Ewald <cygon@nuclex.org>
Diffstat (limited to 'modules/gdnative/gdnative_api.json')
-rw-r--r--modules/gdnative/gdnative_api.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative_api.json b/modules/gdnative/gdnative_api.json
index 7e2ca49f8d..8ccb8d2286 100644
--- a/modules/gdnative/gdnative_api.json
+++ b/modules/gdnative/gdnative_api.json
@@ -155,6 +155,13 @@
["const godot_object *", "p_object"],
["void *", "p_class_tag"]
]
+ },
+ {
+ "name": "godot_instance_from_id",
+ "return_type": "godot_object *",
+ "arguments": [
+ ["godot_int", "p_instance_id"]
+ ]
}
]
},