From 97610c8bfc312cc6d7d6106813086296f18b8b08 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 18 Jan 2023 21:57:47 +0100 Subject: Add property usage to array indexer This makes the `Array` indexer show as returning `Variant` instead of `void` in the documentation. --- core/variant/variant.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/variant/variant.h') diff --git a/core/variant/variant.h b/core/variant/variant.h index fff59c43a6..b9294de77d 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -655,6 +655,7 @@ public: static bool has_indexing(Variant::Type p_type); static Variant::Type get_indexed_element_type(Variant::Type p_type); + static uint32_t get_indexed_element_usage(Variant::Type p_type); typedef void (*ValidatedIndexedSetter)(Variant *base, int64_t index, const Variant *value, bool *oob); typedef void (*ValidatedIndexedGetter)(const Variant *base, int64_t index, Variant *value, bool *oob); -- cgit v1.2.3