diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-29 16:47:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 16:47:38 +0200 |
commit | aba03110ba73fc1dc1dd0e00b85dbd605154fcb5 (patch) | |
tree | 30834318bd85ce89a4a83c77afe7e8abee55a83c /core/variant/array.h | |
parent | 58d302dd5fc2bd5307ca06a6a0f5b2be43403243 (diff) | |
parent | 85e316a5d58a1866ff4c8738f1703b01629abc32 (diff) | |
download | redot-engine-aba03110ba73fc1dc1dd0e00b85dbd605154fcb5.tar.gz |
Merge pull request #46830 from vnen/gdscript-typed-arrays
GDScript typed arrays
Diffstat (limited to 'core/variant/array.h')
-rw-r--r-- | core/variant/array.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/variant/array.h b/core/variant/array.h index d8f2402330..8b67f7f085 100644 --- a/core/variant/array.h +++ b/core/variant/array.h @@ -48,7 +48,7 @@ class Array { protected: Array(const Array &p_base, uint32_t p_type, const StringName &p_class_name, const Variant &p_script); - void _assign(const Array &p_array); + bool _assign(const Array &p_array); public: Variant &operator[](int p_idx); @@ -111,7 +111,12 @@ public: const void *id() const; + bool typed_assign(const Array &p_other); void set_typed(uint32_t p_type, const StringName &p_class_name, const Variant &p_script); + bool is_typed() const; + uint32_t get_typed_builtin() const; + StringName get_typed_class_name() const; + Variant get_typed_script() const; Array(const Array &p_from); Array(); ~Array(); |