summaryrefslogtreecommitdiff
path: root/core/array.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-21 15:23:35 +0200
committerGitHub <noreply@github.com>2020-04-21 15:23:35 +0200
commit79f82bd74284a3a90177d6446449d2a69285130f (patch)
tree8b20a991315c19c23a83b37eed22ac6ec0d34597 /core/array.h
parent1061cf9f6634601d7c2b17b81f8f4699ee71d670 (diff)
parent5d4dc2d45caef77cdb52e365bc02f64d54046df5 (diff)
Merge pull request #38063 from reduz/implement-typed-arrays
Add ability to bind typed arrays to script API
Diffstat (limited to 'core/array.h')
-rw-r--r--core/array.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/array.h b/core/array.h
index 3b14bdb9fe..2840ce199c 100644
--- a/core/array.h
+++ b/core/array.h
@@ -47,6 +47,10 @@ class Array {
int _clamp_index(int p_index) const;
static int _fix_slice_index(int p_index, int p_arr_len, int p_top_mod);
+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);
+
public:
Variant &operator[](int p_idx);
const Variant &operator[](int p_idx) const;
@@ -101,6 +105,7 @@ public:
const void *id() const;
+ void set_typed(uint32_t p_type, const StringName &p_class_name, const Variant &p_script);
Array(const Array &p_from);
Array();
~Array();