From 5d4dc2d45caef77cdb52e365bc02f64d54046df5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 20 Apr 2020 19:06:00 -0300 Subject: Add ability to bind typed arrays to script API Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers) --- modules/gdnative/nativescript/nativescript.cpp | 7 +++++++ modules/gdnative/nativescript/nativescript.h | 2 ++ modules/gdnative/pluginscript/pluginscript_script.cpp | 7 +++++++ modules/gdnative/pluginscript/pluginscript_script.h | 2 ++ modules/gdscript/gdscript.cpp | 18 ++++++++++++++++++ modules/gdscript/gdscript.h | 2 ++ modules/mono/csharp_script.cpp | 12 ++++++++++++ modules/mono/csharp_script.h | 2 ++ modules/visual_script/visual_script.cpp | 4 ++++ modules/visual_script/visual_script.h | 2 ++ 10 files changed, 58 insertions(+) (limited to 'modules') diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index 96a17c99b8..ed3ec44bf7 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -111,6 +111,13 @@ void NativeScript::_placeholder_erased(PlaceHolderScriptInstance *p_placeholder) #endif +bool NativeScript::inherits_script(const Ref