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)
This commit is contained in:
@ -2693,9 +2693,9 @@ void Node::queue_delete() {
|
||||
}
|
||||
}
|
||||
|
||||
Array Node::_get_children() const {
|
||||
TypedArray<Node> Node::_get_children() const {
|
||||
|
||||
Array arr;
|
||||
TypedArray<Node> arr;
|
||||
int cc = get_child_count();
|
||||
arr.resize(cc);
|
||||
for (int i = 0; i < cc; i++)
|
||||
|
||||
Reference in New Issue
Block a user