diff options
author | kobewi <kobewi4e@gmail.com> | 2022-08-05 03:41:48 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-22 22:42:36 +0200 |
commit | 8be27dc59e3e330e10079ba8cbc999c80cab0ddc (patch) | |
tree | 17ef499a4e116aea2ede5e0f89ed2b15ec8dbc94 /core/config | |
parent | b9ea0e1338b1364fc6ecfd5731d038c32170e660 (diff) |
Replace Array return types with TypedArray
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/engine.cpp | 5 | ||||
-rw-r--r-- | core/config/engine.h | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp index 6606557fce..3efc0e822a 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -36,6 +36,7 @@ #include "core/io/json.h" #include "core/license.gen.h" #include "core/os/os.h" +#include "core/variant/typed_array.h" #include "core/version.h" void Engine::set_physics_ticks_per_second(int p_ips) { @@ -136,8 +137,8 @@ Dictionary Engine::get_author_info() const { return dict; } -Array Engine::get_copyright_info() const { - Array components; +TypedArray<Dictionary> Engine::get_copyright_info() const { + TypedArray<Dictionary> components; for (int component_index = 0; component_index < COPYRIGHT_INFO_COUNT; component_index++) { const ComponentCopyright &cp_info = COPYRIGHT_INFO[component_index]; Dictionary component_dict; diff --git a/core/config/engine.h b/core/config/engine.h index b4364dbda4..121fd4d541 100644 --- a/core/config/engine.h +++ b/core/config/engine.h @@ -36,6 +36,9 @@ #include "core/templates/list.h" #include "core/templates/vector.h" +template <typename T> +class TypedArray; + class Engine { public: struct Singleton { @@ -139,7 +142,7 @@ public: Dictionary get_version_info() const; Dictionary get_author_info() const; - Array get_copyright_info() const; + TypedArray<Dictionary> get_copyright_info() const; Dictionary get_donor_info() const; Dictionary get_license_info() const; String get_license_text() const; |