You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace Array return types with TypedArray 2
This commit is contained in:
@@ -1156,8 +1156,8 @@ Ref<Script> ScriptEditor::_get_current_script() {
|
||||
}
|
||||
}
|
||||
|
||||
Array ScriptEditor::_get_open_scripts() const {
|
||||
Array ret;
|
||||
TypedArray<Script> ScriptEditor::_get_open_scripts() const {
|
||||
TypedArray<Script> ret;
|
||||
Vector<Ref<Script>> scripts = get_open_scripts();
|
||||
int scrits_amount = scripts.size();
|
||||
for (int idx_script = 0; idx_script < scrits_amount; idx_script++) {
|
||||
@@ -3446,8 +3446,8 @@ Vector<Ref<Script>> ScriptEditor::get_open_scripts() const {
|
||||
return out_scripts;
|
||||
}
|
||||
|
||||
Array ScriptEditor::_get_open_script_editors() const {
|
||||
Array script_editors;
|
||||
TypedArray<ScriptEditorBase> ScriptEditor::_get_open_script_editors() const {
|
||||
TypedArray<ScriptEditorBase> script_editors;
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
|
||||
if (!se) {
|
||||
|
||||
Reference in New Issue
Block a user