From ef23aa6cfee1bdf42983314e53c2be05fff56b84 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 31 May 2023 00:06:58 +0200 Subject: [PATCH] Implemented the new apis for PoolVectors. --- gdnative/pool_arrays.cpp | 2049 ++++++++++++++++++++++++++++--------- include/gdn/pool_arrays.h | 596 ++++++++--- 2 files changed, 2028 insertions(+), 617 deletions(-) diff --git a/gdnative/pool_arrays.cpp b/gdnative/pool_arrays.cpp index 218d4ea..df62c1f 100644 --- a/gdnative/pool_arrays.cpp +++ b/gdnative/pool_arrays.cpp @@ -30,13 +30,17 @@ #include "gdn/pool_arrays.h" -#include "core/variant/array.h" #include "core/containers/pool_vector.h" +#include "core/variant/array.h" #include "core/variant/variant.h" #include "core/math/color.h" #include "core/math/vector2.h" +#include "core/math/vector2i.h" #include "core/math/vector3.h" +#include "core/math/vector3i.h" +#include "core/math/vector4.h" +#include "core/math/vector4i.h" #ifdef __cplusplus extern "C" { @@ -47,13 +51,140 @@ static_assert(sizeof(pandemonium_pool_int_array) == sizeof(PoolVector), "PoolVector size mismatch"); static_assert(sizeof(pandemonium_pool_string_array) == sizeof(PoolVector), "PoolVector size mismatch"); static_assert(sizeof(pandemonium_pool_vector2_array) == sizeof(PoolVector), "PoolVector size mismatch"); +static_assert(sizeof(pandemonium_pool_vector2i_array) == sizeof(PoolVector), "PoolVector size mismatch"); static_assert(sizeof(pandemonium_pool_vector3_array) == sizeof(PoolVector), "PoolVector size mismatch"); +static_assert(sizeof(pandemonium_pool_vector3i_array) == sizeof(PoolVector), "PoolVector size mismatch"); +static_assert(sizeof(pandemonium_pool_vector4_array) == sizeof(PoolVector), "PoolVector size mismatch"); +static_assert(sizeof(pandemonium_pool_vector4i_array) == sizeof(PoolVector), "PoolVector size mismatch"); static_assert(sizeof(pandemonium_pool_color_array) == sizeof(PoolVector), "PoolVector size mismatch"); #define memnew_placement_custom(m_placement, m_class, m_constr) _post_initialize(new (m_placement, sizeof(m_class), "") m_constr) // byte +pandemonium_pool_byte_array_read_access GDAPI *pandemonium_pool_byte_array_read(const pandemonium_pool_byte_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_byte_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_byte_array_write_access GDAPI *pandemonium_pool_byte_array_write(pandemonium_pool_byte_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_byte_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_byte_array_remove(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_byte_array_size(const pandemonium_pool_byte_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_byte_array_empty(const pandemonium_pool_byte_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_byte_array_set(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data) { + PoolVector *self = (PoolVector *)p_self; + self->set(p_idx, p_data); +} + +uint8_t GDAPI pandemonium_pool_byte_array_get(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + return self->get(p_idx); +} + +void GDAPI pandemonium_pool_byte_array_fill(pandemonium_pool_byte_array *p_self, const pandemonium_int p_val) { + PoolVector *self = (PoolVector *)p_self; + self->fill(p_val); +} + +void GDAPI pandemonium_pool_byte_array_push_back(pandemonium_pool_byte_array *p_self, const uint8_t p_data) { + PoolVector *self = (PoolVector *)p_self; + self->push_back(p_data); +} + +void GDAPI pandemonium_pool_byte_array_append(pandemonium_pool_byte_array *p_self, const uint8_t p_data) { + PoolVector *self = (PoolVector *)p_self; + self->append(p_data); +} + +void GDAPI pandemonium_pool_byte_array_append_array(pandemonium_pool_byte_array *p_self, const pandemonium_pool_byte_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_byte_array GDAPI pandemonium_pool_byte_array_subarray(const pandemonium_pool_byte_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_byte_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_byte_array_insert(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_error)self->insert(p_idx, p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_byte_array_contains(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->contains(p_val); +} +pandemonium_int GDAPI pandemonium_pool_byte_array_find(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val); +} +pandemonium_int GDAPI pandemonium_pool_byte_array_find_from(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_byte_array_rfind(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val); +} +pandemonium_int GDAPI pandemonium_pool_byte_array_rfind_from(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_byte_array_count(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->count(p_val); +} + +pandemonium_bool GDAPI pandemonium_pool_byte_array_has(const pandemonium_pool_byte_array *p_self, const uint8_t p_data) { + const PoolVector *self = (const PoolVector *)p_self; + return self->has(p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_byte_array_is_locked(const pandemonium_pool_byte_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_byte_array_resize(pandemonium_pool_byte_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_byte_array_clear(pandemonium_pool_byte_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_byte_array_invert(pandemonium_pool_byte_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_byte_array_sort(pandemonium_pool_byte_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + void GDAPI pandemonium_pool_byte_array_new(pandemonium_pool_byte_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; memnew_placement(dest, PoolVector); @@ -76,88 +207,135 @@ void GDAPI pandemonium_pool_byte_array_new_with_array(pandemonium_pool_byte_arra } } -void GDAPI pandemonium_pool_byte_array_append(pandemonium_pool_byte_array *p_self, const uint8_t p_data) { - PoolVector *self = (PoolVector *)p_self; - self->append(p_data); -} - -void GDAPI pandemonium_pool_byte_array_append_array(pandemonium_pool_byte_array *p_self, const pandemonium_pool_byte_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); -} - -pandemonium_error GDAPI pandemonium_pool_byte_array_insert(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_error)self->insert(p_idx, p_data); -} - -void GDAPI pandemonium_pool_byte_array_invert(pandemonium_pool_byte_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -void GDAPI pandemonium_pool_byte_array_push_back(pandemonium_pool_byte_array *p_self, const uint8_t p_data) { - PoolVector *self = (PoolVector *)p_self; - self->push_back(p_data); -} - -void GDAPI pandemonium_pool_byte_array_remove(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; - self->remove(p_idx); -} - -void GDAPI pandemonium_pool_byte_array_resize(pandemonium_pool_byte_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); -} - -void GDAPI pandemonium_pool_byte_array_sort(pandemonium_pool_byte_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); -} - -pandemonium_pool_byte_array_read_access GDAPI *pandemonium_pool_byte_array_read(const pandemonium_pool_byte_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_byte_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_byte_array_write_access GDAPI *pandemonium_pool_byte_array_write(pandemonium_pool_byte_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_byte_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_byte_array_set(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data) { - PoolVector *self = (PoolVector *)p_self; - self->set(p_idx, p_data); -} - -uint8_t GDAPI pandemonium_pool_byte_array_get(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - return self->get(p_idx); -} - -pandemonium_int GDAPI pandemonium_pool_byte_array_size(const pandemonium_pool_byte_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); -} - -pandemonium_bool GDAPI pandemonium_pool_byte_array_empty(const pandemonium_pool_byte_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); -} - -pandemonium_bool GDAPI pandemonium_pool_byte_array_has(const pandemonium_pool_byte_array *p_self, const uint8_t p_data) { - const PoolVector *self = (const PoolVector *)p_self; - return self->has(p_data); -} - void GDAPI pandemonium_pool_byte_array_destroy(pandemonium_pool_byte_array *p_self) { ((PoolVector *)p_self)->~PoolVector(); } // int +pandemonium_pool_int_array_read_access GDAPI *pandemonium_pool_int_array_read(const pandemonium_pool_int_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_int_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_int_array_write_access GDAPI *pandemonium_pool_int_array_write(pandemonium_pool_int_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_int_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_int_array_remove(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_int_array_size(const pandemonium_pool_int_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_int_array_empty(const pandemonium_pool_int_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_int_array_set(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data) { + PoolVector *self = (PoolVector *)p_self; + self->set(p_idx, p_data); +} + +pandemonium_int GDAPI pandemonium_pool_int_array_get(const pandemonium_pool_int_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + return self->get(p_idx); +} + +void GDAPI pandemonium_pool_int_array_fill(pandemonium_pool_int_array *p_self, const pandemonium_int p_val) { + PoolVector *self = (PoolVector *)p_self; + self->fill(p_val); +} + +void GDAPI pandemonium_pool_int_array_push_back(pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { + PoolVector *self = (PoolVector *)p_self; + self->push_back(p_data); +} + +void GDAPI pandemonium_pool_int_array_append(pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { + PoolVector *self = (PoolVector *)p_self; + self->append(p_data); +} + +void GDAPI pandemonium_pool_int_array_append_array(pandemonium_pool_int_array *p_self, const pandemonium_pool_int_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_int_array GDAPI pandemonium_pool_int_array_subarray(const pandemonium_pool_int_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_int_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_int_array_insert(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_error)self->insert(p_idx, p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_int_array_contains(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->contains(p_val); +} +pandemonium_int GDAPI pandemonium_pool_int_array_find(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val); +} +pandemonium_int GDAPI pandemonium_pool_int_array_find_from(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_int_array_rfind(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val); +} +pandemonium_int GDAPI pandemonium_pool_int_array_rfind_from(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_int_array_count(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->count(p_val); +} + +pandemonium_bool GDAPI pandemonium_pool_int_array_has(const pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { + const PoolVector *self = (const PoolVector *)p_self; + return self->has(p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_int_array_is_locked(const pandemonium_pool_int_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_int_array_resize(pandemonium_pool_int_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_int_array_clear(pandemonium_pool_int_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_int_array_invert(pandemonium_pool_int_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_int_array_sort(pandemonium_pool_int_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + void GDAPI pandemonium_pool_int_array_new(pandemonium_pool_int_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; memnew_placement(dest, PoolVector); @@ -180,88 +358,135 @@ void GDAPI pandemonium_pool_int_array_new_with_array(pandemonium_pool_int_array } } -void GDAPI pandemonium_pool_int_array_append(pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { - PoolVector *self = (PoolVector *)p_self; - self->append(p_data); -} - -void GDAPI pandemonium_pool_int_array_append_array(pandemonium_pool_int_array *p_self, const pandemonium_pool_int_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); -} - -pandemonium_error GDAPI pandemonium_pool_int_array_insert(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_error)self->insert(p_idx, p_data); -} - -void GDAPI pandemonium_pool_int_array_invert(pandemonium_pool_int_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -void GDAPI pandemonium_pool_int_array_push_back(pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { - PoolVector *self = (PoolVector *)p_self; - self->push_back(p_data); -} - -void GDAPI pandemonium_pool_int_array_remove(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; - self->remove(p_idx); -} - -void GDAPI pandemonium_pool_int_array_resize(pandemonium_pool_int_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); -} - -void GDAPI pandemonium_pool_int_array_sort(pandemonium_pool_int_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); -} - -pandemonium_pool_int_array_read_access GDAPI *pandemonium_pool_int_array_read(const pandemonium_pool_int_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_int_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_int_array_write_access GDAPI *pandemonium_pool_int_array_write(pandemonium_pool_int_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_int_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_int_array_set(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data) { - PoolVector *self = (PoolVector *)p_self; - self->set(p_idx, p_data); -} - -pandemonium_int GDAPI pandemonium_pool_int_array_get(const pandemonium_pool_int_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - return self->get(p_idx); -} - -pandemonium_int GDAPI pandemonium_pool_int_array_size(const pandemonium_pool_int_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); -} - -pandemonium_bool GDAPI pandemonium_pool_int_array_empty(const pandemonium_pool_int_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); -} - -pandemonium_bool GDAPI pandemonium_pool_int_array_has(const pandemonium_pool_int_array *p_self, const pandemonium_int p_data) { - const PoolVector *self = (const PoolVector *)p_self; - return self->has(p_data); -} - void GDAPI pandemonium_pool_int_array_destroy(pandemonium_pool_int_array *p_self) { ((PoolVector *)p_self)->~PoolVector(); } // real +pandemonium_pool_real_array_read_access GDAPI *pandemonium_pool_real_array_read(const pandemonium_pool_real_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_real_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_real_array_write_access GDAPI *pandemonium_pool_real_array_write(pandemonium_pool_real_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_real_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_real_array_remove(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_real_array_size(const pandemonium_pool_real_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_real_array_empty(const pandemonium_pool_real_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_real_array_set(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data) { + PoolVector *self = (PoolVector *)p_self; + self->set(p_idx, p_data); +} + +pandemonium_real GDAPI pandemonium_pool_real_array_get(const pandemonium_pool_real_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + return self->get(p_idx); +} + +void GDAPI pandemonium_pool_real_array_fill(pandemonium_pool_real_array *p_self, const pandemonium_real p_val) { + PoolVector *self = (PoolVector *)p_self; + self->fill(p_val); +} + +void GDAPI pandemonium_pool_real_array_push_back(pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { + PoolVector *self = (PoolVector *)p_self; + self->push_back(p_data); +} + +void GDAPI pandemonium_pool_real_array_append(pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { + PoolVector *self = (PoolVector *)p_self; + self->append(p_data); +} + +void GDAPI pandemonium_pool_real_array_append_array(pandemonium_pool_real_array *p_self, const pandemonium_pool_real_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_real_array GDAPI pandemonium_pool_real_array_subarray(const pandemonium_pool_real_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_real_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_real_array_insert(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_error)self->insert(p_idx, p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_real_array_contains(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->contains(p_val); +} +pandemonium_int GDAPI pandemonium_pool_real_array_find(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val); +} +pandemonium_int GDAPI pandemonium_pool_real_array_find_from(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->find(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_real_array_rfind(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val); +} +pandemonium_int GDAPI pandemonium_pool_real_array_rfind_from(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + return self->rfind(p_val, p_from); +} +pandemonium_int GDAPI pandemonium_pool_real_array_count(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val) { + const PoolVector *self = (const PoolVector *)p_self; + return self->count(p_val); +} + +pandemonium_bool GDAPI pandemonium_pool_real_array_has(const pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { + const PoolVector *self = (const PoolVector *)p_self; + return self->has(p_data); +} + +pandemonium_bool GDAPI pandemonium_pool_real_array_is_locked(const pandemonium_pool_real_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_real_array_resize(pandemonium_pool_real_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_real_array_clear(pandemonium_pool_real_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_real_array_invert(pandemonium_pool_real_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_real_array_sort(pandemonium_pool_real_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + void GDAPI pandemonium_pool_real_array_new(pandemonium_pool_real_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; memnew_placement(dest, PoolVector); @@ -284,87 +509,161 @@ void GDAPI pandemonium_pool_real_array_new_with_array(pandemonium_pool_real_arra } } -void GDAPI pandemonium_pool_real_array_append(pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { - PoolVector *self = (PoolVector *)p_self; - self->append(p_data); -} - -void GDAPI pandemonium_pool_real_array_append_array(pandemonium_pool_real_array *p_self, const pandemonium_pool_real_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); -} - -pandemonium_error GDAPI pandemonium_pool_real_array_insert(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_error)self->insert(p_idx, p_data); -} - -void GDAPI pandemonium_pool_real_array_invert(pandemonium_pool_real_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -void GDAPI pandemonium_pool_real_array_push_back(pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { - PoolVector *self = (PoolVector *)p_self; - self->push_back(p_data); -} - -void GDAPI pandemonium_pool_real_array_remove(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; - self->remove(p_idx); -} - -void GDAPI pandemonium_pool_real_array_resize(pandemonium_pool_real_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); -} - -void GDAPI pandemonium_pool_real_array_sort(pandemonium_pool_real_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); -} - -pandemonium_pool_real_array_read_access GDAPI *pandemonium_pool_real_array_read(const pandemonium_pool_real_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_real_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_int_array_write_access GDAPI *pandemonium_pool_real_array_write(pandemonium_pool_real_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_real_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_real_array_set(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data) { - PoolVector *self = (PoolVector *)p_self; - self->set(p_idx, p_data); -} - -pandemonium_real GDAPI pandemonium_pool_real_array_get(const pandemonium_pool_real_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - return self->get(p_idx); -} - -pandemonium_int GDAPI pandemonium_pool_real_array_size(const pandemonium_pool_real_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); -} - -pandemonium_bool GDAPI pandemonium_pool_real_array_empty(const pandemonium_pool_real_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); -} - -pandemonium_bool GDAPI pandemonium_pool_real_array_has(const pandemonium_pool_real_array *p_self, const pandemonium_real p_data) { - const PoolVector *self = (const PoolVector *)p_self; - return self->has(p_data); -} - void GDAPI pandemonium_pool_real_array_destroy(pandemonium_pool_real_array *p_self) { ((PoolVector *)p_self)->~PoolVector(); } -// string +// String + +pandemonium_pool_string_array_read_access GDAPI *pandemonium_pool_string_array_read(const pandemonium_pool_string_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_string_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_string_array_write_access GDAPI *pandemonium_pool_string_array_write(pandemonium_pool_string_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_string_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_string_array_remove(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_string_array_size(const pandemonium_pool_string_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_string_array_empty(const pandemonium_pool_string_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_string_array_set(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data) { + PoolVector *self = (PoolVector *)p_self; + String &s = *(String *)p_data; + self->set(p_idx, s); +} + +pandemonium_string GDAPI pandemonium_pool_string_array_get(const pandemonium_pool_string_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_string str; + String *s = (String *)&str; + memnew_placement(s, String); + *s = self->get(p_idx); + return str; +} + +void GDAPI pandemonium_pool_string_array_fill(pandemonium_pool_string_array *p_self, const pandemonium_string *p_val) { + PoolVector *self = (PoolVector *)p_self; + String &s = *(String *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_string_array_push_back(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { + PoolVector *self = (PoolVector *)p_self; + String &s = *(String *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_string_array_append(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { + PoolVector *self = (PoolVector *)p_self; + String &s = *(String *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_string_array_append_array(pandemonium_pool_string_array *p_self, const pandemonium_pool_string_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_string_array GDAPI pandemonium_pool_string_array_subarray(const pandemonium_pool_string_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_string_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_string_array_insert(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data) { + PoolVector *self = (PoolVector *)p_self; + String &s = *(String *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_string GDAPI pandemonium_pool_string_array_join(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_delimiter) { + const PoolVector *self = (PoolVector *)p_self; + String &delimiter = *(String *)p_delimiter; + + pandemonium_string str; + String *s = (String *)&str; + memnew_placement(s, String); + *s = self->join(delimiter); + return str; +} + +pandemonium_bool GDAPI pandemonium_pool_string_array_contains(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_string_array_find(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_string_array_find_from(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_string_array_rfind(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_string_array_rfind_from(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_string_array_count(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_string_array_has(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + String &s = *(String *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_string_array_is_locked(const pandemonium_pool_string_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_string_array_resize(pandemonium_pool_string_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_string_array_clear(pandemonium_pool_string_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_string_array_invert(pandemonium_pool_string_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_string_array_sort(pandemonium_pool_string_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} void GDAPI pandemonium_pool_string_array_new(pandemonium_pool_string_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; @@ -388,108 +687,150 @@ void GDAPI pandemonium_pool_string_array_new_with_array(pandemonium_pool_string_ } } -void GDAPI pandemonium_pool_string_array_append(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { - PoolVector *self = (PoolVector *)p_self; - String &s = *(String *)p_data; - self->append(s); -} - -void GDAPI pandemonium_pool_string_array_append_array(pandemonium_pool_string_array *p_self, const pandemonium_pool_string_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); -} - -pandemonium_error GDAPI pandemonium_pool_string_array_insert(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data) { - PoolVector *self = (PoolVector *)p_self; - String &s = *(String *)p_data; - return (pandemonium_error)self->insert(p_idx, s); -} - -void GDAPI pandemonium_pool_string_array_invert(pandemonium_pool_string_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -pandemonium_string GDAPI pandemonium_pool_string_array_join(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_delimiter) { - const PoolVector *self = (PoolVector *)p_self; - String &delimiter = *(String *)p_delimiter; - - pandemonium_string str; - String *s = (String *)&str; - memnew_placement(s, String); - *s = self->join(delimiter); - return str; -} - -void GDAPI pandemonium_pool_string_array_push_back(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { - PoolVector *self = (PoolVector *)p_self; - String &s = *(String *)p_data; - self->push_back(s); -} - -void GDAPI pandemonium_pool_string_array_remove(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; - self->remove(p_idx); -} - -void GDAPI pandemonium_pool_string_array_resize(pandemonium_pool_string_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); -} - -void GDAPI pandemonium_pool_string_array_sort(pandemonium_pool_string_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); -} - -pandemonium_pool_string_array_read_access GDAPI *pandemonium_pool_string_array_read(const pandemonium_pool_string_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_string_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_string_array_write_access GDAPI *pandemonium_pool_string_array_write(pandemonium_pool_string_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_string_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_string_array_set(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data) { - PoolVector *self = (PoolVector *)p_self; - String &s = *(String *)p_data; - self->set(p_idx, s); -} - -pandemonium_string GDAPI pandemonium_pool_string_array_get(const pandemonium_pool_string_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - pandemonium_string str; - String *s = (String *)&str; - memnew_placement(s, String); - *s = self->get(p_idx); - return str; -} - -pandemonium_int GDAPI pandemonium_pool_string_array_size(const pandemonium_pool_string_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); -} - -pandemonium_bool GDAPI pandemonium_pool_string_array_empty(const pandemonium_pool_string_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); -} - -pandemonium_bool GDAPI pandemonium_pool_string_array_has(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_data) { - const PoolVector *self = (const PoolVector *)p_self; - String &s = *(String *)p_data; - return self->has(s); -} - void GDAPI pandemonium_pool_string_array_destroy(pandemonium_pool_string_array *p_self) { ((PoolVector *)p_self)->~PoolVector(); } // vector2 +pandemonium_pool_vector2_array_read_access GDAPI *pandemonium_pool_vector2_array_read(const pandemonium_pool_vector2_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector2_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_vector2_array_write_access GDAPI *pandemonium_pool_vector2_array_write(pandemonium_pool_vector2_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector2_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_vector2_array_remove(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_vector2_array_size(const pandemonium_pool_vector2_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_empty(const pandemonium_pool_vector2_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_vector2_array_set(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_data; + self->set(p_idx, s); +} + +pandemonium_vector2 GDAPI pandemonium_pool_vector2_array_get(const pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector2 v; + Vector2 *s = (Vector2 *)&v; + *s = self->get(p_idx); + return v; +} + +void GDAPI pandemonium_pool_vector2_array_fill(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_vector2_array_push_back(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_vector2_array_append(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector2_array_append_array(pandemonium_pool_vector2_array *p_self, const pandemonium_pool_vector2_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector2_array GDAPI pandemonium_pool_vector2_array_subarray(const pandemonium_pool_vector2_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector2_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector2_array_insert(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_contains(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2_array_find(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2_array_find_from(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector2_array_rfind(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2_array_rfind_from(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector2_array_count(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_has(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2 &s = *(Vector2 *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_is_locked(const pandemonium_pool_vector2_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector2_array_resize(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector2_array_clear(pandemonium_pool_vector2_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector2_array_invert(pandemonium_pool_vector2_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector2_array_sort(pandemonium_pool_vector2_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + void GDAPI pandemonium_pool_vector2_array_new(pandemonium_pool_vector2_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; memnew_placement(dest, PoolVector); @@ -512,96 +853,316 @@ void GDAPI pandemonium_pool_vector2_array_new_with_array(pandemonium_pool_vector } } -void GDAPI pandemonium_pool_vector2_array_append(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector2 &s = *(Vector2 *)p_data; - self->append(s); -} - -void GDAPI pandemonium_pool_vector2_array_append_array(pandemonium_pool_vector2_array *p_self, const pandemonium_pool_vector2_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); -} - -pandemonium_error GDAPI pandemonium_pool_vector2_array_insert(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector2 &s = *(Vector2 *)p_data; - return (pandemonium_error)self->insert(p_idx, s); -} - -void GDAPI pandemonium_pool_vector2_array_invert(pandemonium_pool_vector2_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -void GDAPI pandemonium_pool_vector2_array_push_back(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector2 &s = *(Vector2 *)p_data; - self->push_back(s); -} - -void GDAPI pandemonium_pool_vector2_array_remove(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; - self->remove(p_idx); -} - -void GDAPI pandemonium_pool_vector2_array_resize(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); -} - -void GDAPI pandemonium_pool_vector2_array_sort(pandemonium_pool_vector2_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); -} - -pandemonium_pool_vector2_array_read_access GDAPI *pandemonium_pool_vector2_array_read(const pandemonium_pool_vector2_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_vector2_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_vector2_array_write_access GDAPI *pandemonium_pool_vector2_array_write(pandemonium_pool_vector2_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_vector2_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_vector2_array_set(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector2 &s = *(Vector2 *)p_data; - self->set(p_idx, s); -} - -pandemonium_vector2 GDAPI pandemonium_pool_vector2_array_get(const pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - pandemonium_vector2 v; - Vector2 *s = (Vector2 *)&v; - *s = self->get(p_idx); - return v; -} - -pandemonium_int GDAPI pandemonium_pool_vector2_array_size(const pandemonium_pool_vector2_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); -} - -pandemonium_bool GDAPI pandemonium_pool_vector2_array_empty(const pandemonium_pool_vector2_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); -} - -pandemonium_bool GDAPI pandemonium_pool_vector2_array_has(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data) { - const PoolVector *self = (const PoolVector *)p_self; - Vector2 &s = *(Vector2 *)p_data; - return self->has(s); -} - void GDAPI pandemonium_pool_vector2_array_destroy(pandemonium_pool_vector2_array *p_self) { ((PoolVector *)p_self)->~PoolVector(); } +// Vector2i + +pandemonium_pool_vector2i_array_read_access GDAPI *pandemonium_pool_vector2i_array_read(const pandemonium_pool_vector2i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector2i_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_vector2i_array_write_access GDAPI *pandemonium_pool_vector2i_array_write(pandemonium_pool_vector2i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector2i_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_vector2i_array_remove(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_vector2i_array_size(const pandemonium_pool_vector2i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_empty(const pandemonium_pool_vector2i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_vector2i_array_set(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_data; + self->set(p_idx, s); +} + +pandemonium_vector2i GDAPI pandemonium_pool_vector2i_array_get(const pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector2i v; + Vector2i *s = (Vector2i *)&v; + *s = self->get(p_idx); + return v; +} + +void GDAPI pandemonium_pool_vector2i_array_fill(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_vector2i_array_push_back(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_vector2i_array_append(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector2i_array_append_array(pandemonium_pool_vector2i_array *p_self, const pandemonium_pool_vector2i_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector2i_array GDAPI pandemonium_pool_vector2i_array_subarray(const pandemonium_pool_vector2i_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector2i_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector2i_array_insert(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_contains(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2i_array_find(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2i_array_find_from(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector2i_array_rfind(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector2i_array_rfind_from(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector2i_array_count(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_has(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector2i &s = *(Vector2i *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_is_locked(const pandemonium_pool_vector2i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector2i_array_resize(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector2i_array_clear(pandemonium_pool_vector2i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector2i_array_invert(pandemonium_pool_vector2i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector2i_array_sort(pandemonium_pool_vector2i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + +void GDAPI pandemonium_pool_vector2i_array_new(pandemonium_pool_vector2i_array *r_dest) { + PoolVector *dest = (PoolVector *)r_dest; + memnew_placement(dest, PoolVector); +} + +void GDAPI pandemonium_pool_vector2i_array_new_copy(pandemonium_pool_vector2i_array *r_dest, const pandemonium_pool_vector2i_array *p_src) { + PoolVector *dest = (PoolVector *)r_dest; + const PoolVector *src = (const PoolVector *)p_src; + memnew_placement(dest, PoolVector(*src)); +} + +void GDAPI pandemonium_pool_vector2i_array_new_with_array(pandemonium_pool_vector2i_array *r_dest, const pandemonium_array *p_a) { + PoolVector *dest = (PoolVector *)r_dest; + Array *a = (Array *)p_a; + memnew_placement(dest, PoolVector); + + dest->resize(a->size()); + for (int i = 0; i < a->size(); i++) { + dest->set(i, (*a)[i]); + } +} + +void GDAPI pandemonium_pool_vector2i_array_destroy(pandemonium_pool_vector2i_array *p_self) { + ((PoolVector *)p_self)->~PoolVector(); +} + // vector3 +pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read(const pandemonium_pool_vector3_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector3_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_vector3_array_write_access GDAPI *pandemonium_pool_vector3_array_write(pandemonium_pool_vector3_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector3_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_vector3_array_remove(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_vector3_array_size(const pandemonium_pool_vector3_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_empty(const pandemonium_pool_vector3_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_vector3_array_set(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_data; + self->set(p_idx, s); +} + +pandemonium_vector3 GDAPI pandemonium_pool_vector3_array_get(const pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector3 v; + Vector3 *s = (Vector3 *)&v; + *s = self->get(p_idx); + return v; +} + +void GDAPI pandemonium_pool_vector3_array_fill(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_vector3_array_push_back(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_vector3_array_append(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector3_array_append_array(pandemonium_pool_vector3_array *p_self, const pandemonium_pool_vector3_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector3_array GDAPI pandemonium_pool_vector3_array_subarray(const pandemonium_pool_vector3_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector3_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector3_array_insert(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_contains(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3_array_find(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3_array_find_from(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector3_array_rfind(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3_array_rfind_from(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector3_array_count(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_has(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3 &s = *(Vector3 *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_is_locked(const pandemonium_pool_vector3_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector3_array_resize(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector3_array_clear(pandemonium_pool_vector3_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector3_array_invert(pandemonium_pool_vector3_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector3_array_sort(pandemonium_pool_vector3_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + void GDAPI pandemonium_pool_vector3_array_new(pandemonium_pool_vector3_array *r_dest) { PoolVector *dest = (PoolVector *)r_dest; memnew_placement(dest, PoolVector); @@ -624,92 +1185,506 @@ void GDAPI pandemonium_pool_vector3_array_new_with_array(pandemonium_pool_vector } } -void GDAPI pandemonium_pool_vector3_array_append(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector3 &s = *(Vector3 *)p_data; - self->append(s); +void GDAPI pandemonium_pool_vector3_array_destroy(pandemonium_pool_vector3_array *p_self) { + ((PoolVector *)p_self)->~PoolVector(); } -void GDAPI pandemonium_pool_vector3_array_append_array(pandemonium_pool_vector3_array *p_self, const pandemonium_pool_vector3_array *p_array) { - PoolVector *self = (PoolVector *)p_self; - PoolVector *array = (PoolVector *)p_array; - self->append_array(*array); +// vector3i + +pandemonium_pool_vector3i_array_read_access GDAPI *pandemonium_pool_vector3i_array_read(const pandemonium_pool_vector3i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector3i_array_read_access *)memnew(PoolVector::Read(self->read())); } -pandemonium_error GDAPI pandemonium_pool_vector3_array_insert(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector3 &s = *(Vector3 *)p_data; - return (pandemonium_error)self->insert(p_idx, s); +pandemonium_pool_vector3i_array_write_access GDAPI *pandemonium_pool_vector3i_array_write(pandemonium_pool_vector3i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector3i_array_write_access *)memnew(PoolVector::Write(self->write())); } -void GDAPI pandemonium_pool_vector3_array_invert(pandemonium_pool_vector3_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->invert(); -} - -void GDAPI pandemonium_pool_vector3_array_push_back(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector3 &s = *(Vector3 *)p_data; - self->push_back(s); -} - -void GDAPI pandemonium_pool_vector3_array_remove(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx) { - PoolVector *self = (PoolVector *)p_self; +void GDAPI pandemonium_pool_vector3i_array_remove(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; self->remove(p_idx); } -void GDAPI pandemonium_pool_vector3_array_resize(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_size) { - PoolVector *self = (PoolVector *)p_self; - self->resize(p_size); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_size(const pandemonium_pool_vector3i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); } -void GDAPI pandemonium_pool_vector3_array_sort(pandemonium_pool_vector3_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - self->sort(); +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_empty(const pandemonium_pool_vector3i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); } -pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read(const pandemonium_pool_vector3_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return (pandemonium_pool_vector3_array_read_access *)memnew(PoolVector::Read(self->read())); -} - -pandemonium_pool_vector3_array_write_access GDAPI *pandemonium_pool_vector3_array_write(pandemonium_pool_vector3_array *p_self) { - PoolVector *self = (PoolVector *)p_self; - return (pandemonium_pool_vector3_array_write_access *)memnew(PoolVector::Write(self->write())); -} - -void GDAPI pandemonium_pool_vector3_array_set(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data) { - PoolVector *self = (PoolVector *)p_self; - Vector3 &s = *(Vector3 *)p_data; +void GDAPI pandemonium_pool_vector3i_array_set(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_data; self->set(p_idx, s); } -pandemonium_vector3 GDAPI pandemonium_pool_vector3_array_get(const pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx) { - const PoolVector *self = (const PoolVector *)p_self; - pandemonium_vector3 v; - Vector3 *s = (Vector3 *)&v; +pandemonium_vector3i GDAPI pandemonium_pool_vector3i_array_get(const pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector3i v; + Vector3i *s = (Vector3i *)&v; *s = self->get(p_idx); return v; } -pandemonium_int GDAPI pandemonium_pool_vector3_array_size(const pandemonium_pool_vector3_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->size(); +void GDAPI pandemonium_pool_vector3i_array_fill(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + self->fill(s); } -pandemonium_bool GDAPI pandemonium_pool_vector3_array_empty(const pandemonium_pool_vector3_array *p_self) { - const PoolVector *self = (const PoolVector *)p_self; - return self->empty(); +void GDAPI pandemonium_pool_vector3i_array_push_back(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_data; + self->push_back(s); } -pandemonium_bool GDAPI pandemonium_pool_vector3_array_has(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data) { - const PoolVector *self = (const PoolVector *)p_self; - Vector3 &s = *(Vector3 *)p_data; +void GDAPI pandemonium_pool_vector3i_array_append(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector3i_array_append_array(pandemonium_pool_vector3i_array *p_self, const pandemonium_pool_vector3i_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector3i_array GDAPI pandemonium_pool_vector3i_array_subarray(const pandemonium_pool_vector3i_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector3i_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector3i_array_insert(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_contains(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3i_array_find(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3i_array_find_from(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector3i_array_rfind(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector3i_array_rfind_from(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector3i_array_count(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_has(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector3i &s = *(Vector3i *)p_data; return self->has(s); } -void GDAPI pandemonium_pool_vector3_array_destroy(pandemonium_pool_vector3_array *p_self) { - ((PoolVector *)p_self)->~PoolVector(); +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_is_locked(const pandemonium_pool_vector3i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector3i_array_resize(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector3i_array_clear(pandemonium_pool_vector3i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector3i_array_invert(pandemonium_pool_vector3i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector3i_array_sort(pandemonium_pool_vector3i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + +void GDAPI pandemonium_pool_vector3i_array_new(pandemonium_pool_vector3i_array *r_dest) { + PoolVector *dest = (PoolVector *)r_dest; + memnew_placement(dest, PoolVector); +} + +void GDAPI pandemonium_pool_vector3i_array_new_copy(pandemonium_pool_vector3i_array *r_dest, const pandemonium_pool_vector3i_array *p_src) { + PoolVector *dest = (PoolVector *)r_dest; + const PoolVector *src = (const PoolVector *)p_src; + memnew_placement(dest, PoolVector(*src)); +} + +void GDAPI pandemonium_pool_vector3i_array_new_with_array(pandemonium_pool_vector3i_array *r_dest, const pandemonium_array *p_a) { + PoolVector *dest = (PoolVector *)r_dest; + Array *a = (Array *)p_a; + memnew_placement(dest, PoolVector); + + dest->resize(a->size()); + for (int i = 0; i < a->size(); i++) { + dest->set(i, (*a)[i]); + } +} + +void GDAPI pandemonium_pool_vector3i_array_destroy(pandemonium_pool_vector3i_array *p_self) { + ((PoolVector *)p_self)->~PoolVector(); +} + +//vector4 + +pandemonium_pool_vector4_array_read_access GDAPI *pandemonium_pool_vector4_array_read(const pandemonium_pool_vector4_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector4_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_vector4_array_write_access GDAPI *pandemonium_pool_vector4_array_write(pandemonium_pool_vector4_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector4_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_vector4_array_remove(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_vector4_array_size(const pandemonium_pool_vector4_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_empty(const pandemonium_pool_vector4_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_vector4_array_set(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_data; + self->set(p_idx, s); +} + +pandemonium_vector4 GDAPI pandemonium_pool_vector4_array_get(const pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector4 v; + Vector4 *s = (Vector4 *)&v; + *s = self->get(p_idx); + return v; +} + +void GDAPI pandemonium_pool_vector4_array_fill(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_vector4_array_push_back(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_vector4_array_append(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector4_array_append_array(pandemonium_pool_vector4_array *p_self, const pandemonium_pool_vector4_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector4_array GDAPI pandemonium_pool_vector4_array_subarray(const pandemonium_pool_vector4_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector4_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector4_array_insert(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4 *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_contains(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4_array_find(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4_array_find_from(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector4_array_rfind(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4_array_rfind_from(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector4_array_count(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_has(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4 &s = *(Vector4 *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_is_locked(const pandemonium_pool_vector4_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector4_array_resize(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector4_array_clear(pandemonium_pool_vector4_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector4_array_invert(pandemonium_pool_vector4_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector4_array_sort(pandemonium_pool_vector4_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + +void GDAPI pandemonium_pool_vector4_array_new(pandemonium_pool_vector4_array *r_dest) { + PoolVector *dest = (PoolVector *)r_dest; + memnew_placement(dest, PoolVector); +} + +void GDAPI pandemonium_pool_vector4_array_new_copy(pandemonium_pool_vector4_array *r_dest, const pandemonium_pool_vector4_array *p_src) { + PoolVector *dest = (PoolVector *)r_dest; + const PoolVector *src = (const PoolVector *)p_src; + memnew_placement(dest, PoolVector(*src)); +} + +void GDAPI pandemonium_pool_vector4_array_new_with_array(pandemonium_pool_vector4_array *r_dest, const pandemonium_array *p_a) { + PoolVector *dest = (PoolVector *)r_dest; + Array *a = (Array *)p_a; + memnew_placement(dest, PoolVector); + + dest->resize(a->size()); + for (int i = 0; i < a->size(); i++) { + dest->set(i, (*a)[i]); + } +} + +void GDAPI pandemonium_pool_vector4_array_destroy(pandemonium_pool_vector4_array *p_self) { + ((PoolVector *)p_self)->~PoolVector(); +} + +// vector4i + +pandemonium_pool_vector4i_array_read_access GDAPI *pandemonium_pool_vector4i_array_read(const pandemonium_pool_vector4i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return (pandemonium_pool_vector4i_array_read_access *)memnew(PoolVector::Read(self->read())); +} + +pandemonium_pool_vector4i_array_write_access GDAPI *pandemonium_pool_vector4i_array_write(pandemonium_pool_vector4i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return (pandemonium_pool_vector4i_array_write_access *)memnew(PoolVector::Write(self->write())); +} + +void GDAPI pandemonium_pool_vector4i_array_remove(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx) { + PoolVector *self = (PoolVector *)p_self; + self->remove(p_idx); +} + +pandemonium_int GDAPI pandemonium_pool_vector4i_array_size(const pandemonium_pool_vector4i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->size(); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_empty(const pandemonium_pool_vector4i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->empty(); +} + +void GDAPI pandemonium_pool_vector4i_array_set(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_data; + self->set(p_idx, s); +} + +pandemonium_vector4i GDAPI pandemonium_pool_vector4i_array_get(const pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx) { + const PoolVector *self = (const PoolVector *)p_self; + pandemonium_vector4i v; + Vector4i *s = (Vector4i *)&v; + *s = self->get(p_idx); + return v; +} + +void GDAPI pandemonium_pool_vector4i_array_fill(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val) { + PoolVector *self = (PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + self->fill(s); +} + +void GDAPI pandemonium_pool_vector4i_array_push_back(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_data; + self->push_back(s); +} + +void GDAPI pandemonium_pool_vector4i_array_append(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_data; + self->append(s); +} + +void GDAPI pandemonium_pool_vector4i_array_append_array(pandemonium_pool_vector4i_array *p_self, const pandemonium_pool_vector4i_array *p_array) { + PoolVector *self = (PoolVector *)p_self; + PoolVector *array = (PoolVector *)p_array; + self->append_array(*array); +} + +pandemonium_pool_vector4i_array GDAPI pandemonium_pool_vector4i_array_subarray(const pandemonium_pool_vector4i_array *p_self, pandemonium_int p_from, pandemonium_int p_to) { + pandemonium_pool_vector4i_array dest; + const PoolVector *self = (const PoolVector *)p_self; + memnew_placement(&dest, PoolVector(self->subarray(p_from, p_to))); + return dest; +} + +pandemonium_error GDAPI pandemonium_pool_vector4i_array_insert(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4i *p_data) { + PoolVector *self = (PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_data; + return (pandemonium_error)self->insert(p_idx, s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_contains(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->contains(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4i_array_find(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->find(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4i_array_find_from(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->find(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector4i_array_rfind(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->rfind(s); +} +pandemonium_int GDAPI pandemonium_pool_vector4i_array_rfind_from(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val, pandemonium_int p_from) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->rfind(s, p_from); +} +pandemonium_int GDAPI pandemonium_pool_vector4i_array_count(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_val; + return self->count(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_has(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data) { + const PoolVector *self = (const PoolVector *)p_self; + Vector4i &s = *(Vector4i *)p_data; + return self->has(s); +} + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_is_locked(const pandemonium_pool_vector4i_array *p_self) { + const PoolVector *self = (const PoolVector *)p_self; + return self->is_locked(); +} + +void GDAPI pandemonium_pool_vector4i_array_resize(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_size) { + PoolVector *self = (PoolVector *)p_self; + self->resize(p_size); +} + +pandemonium_int GDAPI pandemonium_pool_vector4i_array_clear(pandemonium_pool_vector4i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + return self->clear(); +} + +void GDAPI pandemonium_pool_vector4i_array_invert(pandemonium_pool_vector4i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->invert(); +} + +void GDAPI pandemonium_pool_vector4i_array_sort(pandemonium_pool_vector4i_array *p_self) { + PoolVector *self = (PoolVector *)p_self; + self->sort(); +} + +void GDAPI pandemonium_pool_vector4i_array_new(pandemonium_pool_vector4i_array *r_dest) { + PoolVector *dest = (PoolVector *)r_dest; + memnew_placement(dest, PoolVector); +} + +void GDAPI pandemonium_pool_vector4i_array_new_copy(pandemonium_pool_vector4i_array *r_dest, const pandemonium_pool_vector4i_array *p_src) { + PoolVector *dest = (PoolVector *)r_dest; + const PoolVector *src = (const PoolVector *)p_src; + memnew_placement(dest, PoolVector(*src)); +} + +void GDAPI pandemonium_pool_vector4i_array_new_with_array(pandemonium_pool_vector4i_array *r_dest, const pandemonium_array *p_a) { + PoolVector *dest = (PoolVector *)r_dest; + Array *a = (Array *)p_a; + memnew_placement(dest, PoolVector); + + dest->resize(a->size()); + for (int i = 0; i < a->size(); i++) { + dest->set(i, (*a)[i]); + } +} + +void GDAPI pandemonium_pool_vector4i_array_destroy(pandemonium_pool_vector4i_array *p_self) { + ((PoolVector *)p_self)->~PoolVector(); } // color @@ -913,6 +1888,23 @@ void GDAPI pandemonium_pool_vector2_array_read_access_destroy(pandemonium_pool_v memdelete((PoolVector::Read *)p_read); } +pandemonium_pool_vector2i_array_read_access GDAPI *pandemonium_pool_vector2i_array_read_access_copy(const pandemonium_pool_vector2i_array_read_access *p_other) { + PoolVector::Read *other = (PoolVector::Read *)p_other; + return (pandemonium_pool_vector2i_array_read_access *)memnew(PoolVector::Read(*other)); +} +const pandemonium_vector2i GDAPI *pandemonium_pool_vector2i_array_read_access_ptr(const pandemonium_pool_vector2i_array_read_access *p_read) { + const PoolVector::Read *read = (const PoolVector::Read *)p_read; + return (const pandemonium_vector2i *)read->ptr(); +} +void GDAPI pandemonium_pool_vector2i_array_read_access_operator_assign(pandemonium_pool_vector2i_array_read_access *p_read, pandemonium_pool_vector2i_array_read_access *p_other) { + PoolVector::Read *read = (PoolVector::Read *)p_read; + PoolVector::Read *other = (PoolVector::Read *)p_other; + read->operator=(*other); +} +void GDAPI pandemonium_pool_vector2i_array_read_access_destroy(pandemonium_pool_vector2i_array_read_access *p_read) { + memdelete((PoolVector::Read *)p_read); +} + pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read_access_copy(const pandemonium_pool_vector3_array_read_access *p_other) { PoolVector::Read *other = (PoolVector::Read *)p_other; return (pandemonium_pool_vector3_array_read_access *)memnew(PoolVector::Read(*other)); @@ -930,6 +1922,57 @@ void GDAPI pandemonium_pool_vector3_array_read_access_destroy(pandemonium_pool_v memdelete((PoolVector::Read *)p_read); } +pandemonium_pool_vector3i_array_read_access GDAPI *pandemonium_pool_vector3i_array_read_access_copy(const pandemonium_pool_vector3i_array_read_access *p_other) { + PoolVector::Read *other = (PoolVector::Read *)p_other; + return (pandemonium_pool_vector3i_array_read_access *)memnew(PoolVector::Read(*other)); +} +const pandemonium_vector3i GDAPI *pandemonium_pool_vector3i_array_read_access_ptr(const pandemonium_pool_vector3i_array_read_access *p_read) { + const PoolVector::Read *read = (const PoolVector::Read *)p_read; + return (const pandemonium_vector3i *)read->ptr(); +} +void GDAPI pandemonium_pool_vector3i_array_read_access_operator_assign(pandemonium_pool_vector3i_array_read_access *p_read, pandemonium_pool_vector3i_array_read_access *p_other) { + PoolVector::Read *read = (PoolVector::Read *)p_read; + PoolVector::Read *other = (PoolVector::Read *)p_other; + read->operator=(*other); +} +void GDAPI pandemonium_pool_vector3i_array_read_access_destroy(pandemonium_pool_vector3i_array_read_access *p_read) { + memdelete((PoolVector::Read *)p_read); +} + +pandemonium_pool_vector4_array_read_access GDAPI *pandemonium_pool_vector4_array_read_access_copy(const pandemonium_pool_vector4_array_read_access *p_other) { + PoolVector::Read *other = (PoolVector::Read *)p_other; + return (pandemonium_pool_vector4_array_read_access *)memnew(PoolVector::Read(*other)); +} +const pandemonium_vector4 GDAPI *pandemonium_pool_vector4_array_read_access_ptr(const pandemonium_pool_vector4_array_read_access *p_read) { + const PoolVector::Read *read = (const PoolVector::Read *)p_read; + return (const pandemonium_vector4 *)read->ptr(); +} +void GDAPI pandemonium_pool_vector4_array_read_access_operator_assign(pandemonium_pool_vector4_array_read_access *p_read, pandemonium_pool_vector4_array_read_access *p_other) { + PoolVector::Read *read = (PoolVector::Read *)p_read; + PoolVector::Read *other = (PoolVector::Read *)p_other; + read->operator=(*other); +} +void GDAPI pandemonium_pool_vector4_array_read_access_destroy(pandemonium_pool_vector4_array_read_access *p_read) { + memdelete((PoolVector::Read *)p_read); +} + +pandemonium_pool_vector4i_array_read_access GDAPI *pandemonium_pool_vector4i_array_read_access_copy(const pandemonium_pool_vector4i_array_read_access *p_other) { + PoolVector::Read *other = (PoolVector::Read *)p_other; + return (pandemonium_pool_vector4i_array_read_access *)memnew(PoolVector::Read(*other)); +} +const pandemonium_vector4i GDAPI *pandemonium_pool_vector4i_array_read_access_ptr(const pandemonium_pool_vector4i_array_read_access *p_read) { + const PoolVector::Read *read = (const PoolVector::Read *)p_read; + return (const pandemonium_vector4i *)read->ptr(); +} +void GDAPI pandemonium_pool_vector4i_array_read_access_operator_assign(pandemonium_pool_vector4i_array_read_access *p_read, pandemonium_pool_vector4i_array_read_access *p_other) { + PoolVector::Read *read = (PoolVector::Read *)p_read; + PoolVector::Read *other = (PoolVector::Read *)p_other; + read->operator=(*other); +} +void GDAPI pandemonium_pool_vector4i_array_read_access_destroy(pandemonium_pool_vector4i_array_read_access *p_read) { + memdelete((PoolVector::Read *)p_read); +} + pandemonium_pool_color_array_read_access GDAPI *pandemonium_pool_color_array_read_access_copy(const pandemonium_pool_color_array_read_access *p_other) { PoolVector::Read *other = (PoolVector::Read *)p_other; return (pandemonium_pool_color_array_read_access *)memnew(PoolVector::Read(*other)); @@ -1036,6 +2079,23 @@ void GDAPI pandemonium_pool_vector2_array_write_access_destroy(pandemonium_pool_ memdelete((PoolVector::Write *)p_write); } +pandemonium_pool_vector2i_array_write_access GDAPI *pandemonium_pool_vector2i_array_write_access_copy(const pandemonium_pool_vector2i_array_write_access *p_other) { + PoolVector::Write *other = (PoolVector::Write *)p_other; + return (pandemonium_pool_vector2i_array_write_access *)memnew(PoolVector::Write(*other)); +} +pandemonium_vector2i GDAPI *pandemonium_pool_vector2i_array_write_access_ptr(const pandemonium_pool_vector2i_array_write_access *p_write) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + return (pandemonium_vector2i *)write->ptr(); +} +void GDAPI pandemonium_pool_vector2i_array_write_access_operator_assign(pandemonium_pool_vector2i_array_write_access *p_write, pandemonium_pool_vector2i_array_write_access *p_other) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + PoolVector::Write *other = (PoolVector::Write *)p_other; + write->operator=(*other); +} +void GDAPI pandemonium_pool_vector2i_array_write_access_destroy(pandemonium_pool_vector2i_array_write_access *p_write) { + memdelete((PoolVector::Write *)p_write); +} + pandemonium_pool_vector3_array_write_access GDAPI *pandemonium_pool_vector3_array_write_access_copy(const pandemonium_pool_vector3_array_write_access *p_other) { PoolVector::Write *other = (PoolVector::Write *)p_other; return (pandemonium_pool_vector3_array_write_access *)memnew(PoolVector::Write(*other)); @@ -1053,6 +2113,57 @@ void GDAPI pandemonium_pool_vector3_array_write_access_destroy(pandemonium_pool_ memdelete((PoolVector::Write *)p_write); } +pandemonium_pool_vector3i_array_write_access GDAPI *pandemonium_pool_vector3i_array_write_access_copy(const pandemonium_pool_vector3i_array_write_access *p_other) { + PoolVector::Write *other = (PoolVector::Write *)p_other; + return (pandemonium_pool_vector3i_array_write_access *)memnew(PoolVector::Write(*other)); +} +pandemonium_vector3i GDAPI *pandemonium_pool_vector3i_array_write_access_ptr(const pandemonium_pool_vector3i_array_write_access *p_write) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + return (pandemonium_vector3i *)write->ptr(); +} +void GDAPI pandemonium_pool_vector3i_array_write_access_operator_assign(pandemonium_pool_vector3i_array_write_access *p_write, pandemonium_pool_vector3i_array_write_access *p_other) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + PoolVector::Write *other = (PoolVector::Write *)p_other; + write->operator=(*other); +} +void GDAPI pandemonium_pool_vector3i_array_write_access_destroy(pandemonium_pool_vector3i_array_write_access *p_write) { + memdelete((PoolVector::Write *)p_write); +} + +pandemonium_pool_vector4_array_write_access GDAPI *pandemonium_pool_vector4_array_write_access_copy(const pandemonium_pool_vector4_array_write_access *p_other) { + PoolVector::Write *other = (PoolVector::Write *)p_other; + return (pandemonium_pool_vector4_array_write_access *)memnew(PoolVector::Write(*other)); +} +pandemonium_vector4 GDAPI *pandemonium_pool_vector4_array_write_access_ptr(const pandemonium_pool_vector4_array_write_access *p_write) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + return (pandemonium_vector4 *)write->ptr(); +} +void GDAPI pandemonium_pool_vector4_array_write_access_operator_assign(pandemonium_pool_vector4_array_write_access *p_write, pandemonium_pool_vector4_array_write_access *p_other) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + PoolVector::Write *other = (PoolVector::Write *)p_other; + write->operator=(*other); +} +void GDAPI pandemonium_pool_vector4_array_write_access_destroy(pandemonium_pool_vector4_array_write_access *p_write) { + memdelete((PoolVector::Write *)p_write); +} + +pandemonium_pool_vector4i_array_write_access GDAPI *pandemonium_pool_vector4i_array_write_access_copy(const pandemonium_pool_vector4i_array_write_access *p_other) { + PoolVector::Write *other = (PoolVector::Write *)p_other; + return (pandemonium_pool_vector4i_array_write_access *)memnew(PoolVector::Write(*other)); +} +pandemonium_vector4i GDAPI *pandemonium_pool_vector4i_array_write_access_ptr(const pandemonium_pool_vector4i_array_write_access *p_write) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + return (pandemonium_vector4i *)write->ptr(); +} +void GDAPI pandemonium_pool_vector4i_array_write_access_operator_assign(pandemonium_pool_vector4i_array_write_access *p_write, pandemonium_pool_vector4i_array_write_access *p_other) { + PoolVector::Write *write = (PoolVector::Write *)p_write; + PoolVector::Write *other = (PoolVector::Write *)p_other; + write->operator=(*other); +} +void GDAPI pandemonium_pool_vector4i_array_write_access_destroy(pandemonium_pool_vector4i_array_write_access *p_write) { + memdelete((PoolVector::Write *)p_write); +} + pandemonium_pool_color_array_write_access GDAPI *pandemonium_pool_color_array_write_access_copy(const pandemonium_pool_color_array_write_access *p_other) { PoolVector::Write *other = (PoolVector::Write *)p_other; return (pandemonium_pool_color_array_write_access *)memnew(PoolVector::Write(*other)); diff --git a/include/gdn/pool_arrays.h b/include/gdn/pool_arrays.h index 8ea6dc9..6a0b776 100644 --- a/include/gdn/pool_arrays.h +++ b/include/gdn/pool_arrays.h @@ -50,7 +50,11 @@ typedef pandemonium_pool_array_read_access pandemonium_pool_int_array_read_acces typedef pandemonium_pool_array_read_access pandemonium_pool_real_array_read_access; typedef pandemonium_pool_array_read_access pandemonium_pool_string_array_read_access; typedef pandemonium_pool_array_read_access pandemonium_pool_vector2_array_read_access; +typedef pandemonium_pool_array_read_access pandemonium_pool_vector2i_array_read_access; typedef pandemonium_pool_array_read_access pandemonium_pool_vector3_array_read_access; +typedef pandemonium_pool_array_read_access pandemonium_pool_vector3i_array_read_access; +typedef pandemonium_pool_array_read_access pandemonium_pool_vector4_array_read_access; +typedef pandemonium_pool_array_read_access pandemonium_pool_vector4i_array_read_access; typedef pandemonium_pool_array_read_access pandemonium_pool_color_array_read_access; /////// Write Access @@ -66,7 +70,11 @@ typedef pandemonium_pool_array_write_access pandemonium_pool_int_array_write_acc typedef pandemonium_pool_array_write_access pandemonium_pool_real_array_write_access; typedef pandemonium_pool_array_write_access pandemonium_pool_string_array_write_access; typedef pandemonium_pool_array_write_access pandemonium_pool_vector2_array_write_access; +typedef pandemonium_pool_array_write_access pandemonium_pool_vector2i_array_write_access; typedef pandemonium_pool_array_write_access pandemonium_pool_vector3_array_write_access; +typedef pandemonium_pool_array_write_access pandemonium_pool_vector3i_array_write_access; +typedef pandemonium_pool_array_write_access pandemonium_pool_vector4_array_write_access; +typedef pandemonium_pool_array_write_access pandemonium_pool_vector4i_array_write_access; typedef pandemonium_pool_array_write_access pandemonium_pool_color_array_write_access; /////// PoolByteArray @@ -124,6 +132,17 @@ typedef struct { } pandemonium_pool_vector2_array; #endif +/////// PoolVector2iArray + +#define PANDEMONIUM_POOL_VECTOR2I_ARRAY_SIZE sizeof(void *) + +#ifndef PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR2I_ARRAY_TYPE_DEFINED +#define PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR2I_ARRAY_TYPE_DEFINED +typedef struct { + uint8_t _dont_touch_that[PANDEMONIUM_POOL_VECTOR2I_ARRAY_SIZE]; +} pandemonium_pool_vector2i_array; +#endif + /////// PoolVector3Array #define PANDEMONIUM_POOL_VECTOR3_ARRAY_SIZE sizeof(void *) @@ -135,6 +154,39 @@ typedef struct { } pandemonium_pool_vector3_array; #endif +/////// PoolVector3iArray + +#define PANDEMONIUM_POOL_VECTOR3I_ARRAY_SIZE sizeof(void *) + +#ifndef PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR3I_ARRAY_TYPE_DEFINED +#define PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR3I_ARRAY_TYPE_DEFINED +typedef struct { + uint8_t _dont_touch_that[PANDEMONIUM_POOL_VECTOR3I_ARRAY_SIZE]; +} pandemonium_pool_vector3i_array; +#endif + +/////// PoolVector4Array + +#define PANDEMONIUM_POOL_VECTOR4_ARRAY_SIZE sizeof(void *) + +#ifndef PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR4_ARRAY_TYPE_DEFINED +#define PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR4_ARRAY_TYPE_DEFINED +typedef struct { + uint8_t _dont_touch_that[PANDEMONIUM_POOL_VECTOR4_ARRAY_SIZE]; +} pandemonium_pool_vector4_array; +#endif + +/////// PoolVector4iArray + +#define PANDEMONIUM_POOL_VECTOR4I_ARRAY_SIZE sizeof(void *) + +#ifndef PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR4I_ARRAY_TYPE_DEFINED +#define PANDEMONIUM_CORE_API_PANDEMONIUM_POOL_VECTOR4I_ARRAY_TYPE_DEFINED +typedef struct { + uint8_t _dont_touch_that[PANDEMONIUM_POOL_VECTOR4I_ARRAY_SIZE]; +} pandemonium_pool_vector4i_array; +#endif + /////// PoolColorArray #define PANDEMONIUM_POOL_COLOR_ARRAY_SIZE sizeof(void *) @@ -154,7 +206,11 @@ typedef struct { #include #include #include +#include #include +#include +#include +#include #include @@ -167,37 +223,35 @@ extern "C" { pandemonium_pool_byte_array_read_access GDAPI *pandemonium_pool_byte_array_read(const pandemonium_pool_byte_array *p_self); pandemonium_pool_byte_array_write_access GDAPI *pandemonium_pool_byte_array_write(pandemonium_pool_byte_array *p_self); -//void fill_with(const MC &p_mc) { - void GDAPI pandemonium_pool_byte_array_remove(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx); pandemonium_int GDAPI pandemonium_pool_byte_array_size(const pandemonium_pool_byte_array *p_self); pandemonium_bool GDAPI pandemonium_pool_byte_array_empty(const pandemonium_pool_byte_array *p_self); + void GDAPI pandemonium_pool_byte_array_set(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data); uint8_t GDAPI pandemonium_pool_byte_array_get(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx); -//void fill(const T &p_val); + +void GDAPI pandemonium_pool_byte_array_fill(pandemonium_pool_byte_array *p_self, const pandemonium_int p_val); void GDAPI pandemonium_pool_byte_array_push_back(pandemonium_pool_byte_array *p_self, const uint8_t p_data); void GDAPI pandemonium_pool_byte_array_append(pandemonium_pool_byte_array *p_self, const uint8_t p_data); void GDAPI pandemonium_pool_byte_array_append_array(pandemonium_pool_byte_array *p_self, const pandemonium_pool_byte_array *p_array); -//PoolVector subarray(int p_from, int p_to) const { +pandemonium_pool_byte_array GDAPI pandemonium_pool_byte_array_subarray(const pandemonium_pool_byte_array *p_self, pandemonium_int p_from, pandemonium_int p_to); pandemonium_error GDAPI pandemonium_pool_byte_array_insert(pandemonium_pool_byte_array *p_self, const pandemonium_int p_idx, const uint8_t p_data); -//String join(const String &delimiter) const { - -//bool contains(const T &p_val) const; -//int find(const T &p_val, int p_from = 0) const; -//int rfind(const T &p_val, int p_from = -1) const; -//bool count(const T &p_val) const; +pandemonium_bool GDAPI pandemonium_pool_byte_array_contains(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_byte_array_find(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_byte_array_find_from(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_byte_array_rfind(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_byte_array_rfind_from(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_byte_array_count(const pandemonium_pool_byte_array *p_self, const pandemonium_int p_val); pandemonium_bool GDAPI pandemonium_pool_byte_array_has(const pandemonium_pool_byte_array *p_self, const uint8_t p_data); -//bool is_locked() const { - -//inline T operator[](int p_index) const; +pandemonium_bool GDAPI pandemonium_pool_byte_array_is_locked(const pandemonium_pool_byte_array *p_self); void GDAPI pandemonium_pool_byte_array_resize(pandemonium_pool_byte_array *p_self, const pandemonium_int p_size); -//Error clear() { +pandemonium_int GDAPI pandemonium_pool_byte_array_clear(pandemonium_pool_byte_array *p_self); void GDAPI pandemonium_pool_byte_array_invert(pandemonium_pool_byte_array *p_self); void GDAPI pandemonium_pool_byte_array_sort(pandemonium_pool_byte_array *p_self); @@ -210,191 +264,402 @@ void GDAPI pandemonium_pool_byte_array_destroy(pandemonium_pool_byte_array *p_se // int -void GDAPI pandemonium_pool_int_array_new(pandemonium_pool_int_array *r_dest); -void GDAPI pandemonium_pool_int_array_new_copy(pandemonium_pool_int_array *r_dest, const pandemonium_pool_int_array *p_src); -void GDAPI pandemonium_pool_int_array_new_with_array(pandemonium_pool_int_array *r_dest, const pandemonium_array *p_a); - -void GDAPI pandemonium_pool_int_array_append(pandemonium_pool_int_array *p_self, const pandemonium_int p_data); - -void GDAPI pandemonium_pool_int_array_append_array(pandemonium_pool_int_array *p_self, const pandemonium_pool_int_array *p_array); - -pandemonium_error GDAPI pandemonium_pool_int_array_insert(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data); - -void GDAPI pandemonium_pool_int_array_invert(pandemonium_pool_int_array *p_self); - -void GDAPI pandemonium_pool_int_array_push_back(pandemonium_pool_int_array *p_self, const pandemonium_int p_data); +pandemonium_pool_int_array_read_access GDAPI *pandemonium_pool_int_array_read(const pandemonium_pool_int_array *p_self); +pandemonium_pool_int_array_write_access GDAPI *pandemonium_pool_int_array_write(pandemonium_pool_int_array *p_self); void GDAPI pandemonium_pool_int_array_remove(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx); -void GDAPI pandemonium_pool_int_array_resize(pandemonium_pool_int_array *p_self, const pandemonium_int p_size); - -void GDAPI pandemonium_pool_int_array_sort(pandemonium_pool_int_array *p_self); - -pandemonium_pool_int_array_read_access GDAPI *pandemonium_pool_int_array_read(const pandemonium_pool_int_array *p_self); - -pandemonium_pool_int_array_write_access GDAPI *pandemonium_pool_int_array_write(pandemonium_pool_int_array *p_self); +pandemonium_int GDAPI pandemonium_pool_int_array_size(const pandemonium_pool_int_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_int_array_empty(const pandemonium_pool_int_array *p_self); void GDAPI pandemonium_pool_int_array_set(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data); pandemonium_int GDAPI pandemonium_pool_int_array_get(const pandemonium_pool_int_array *p_self, const pandemonium_int p_idx); -pandemonium_int GDAPI pandemonium_pool_int_array_size(const pandemonium_pool_int_array *p_self); +void GDAPI pandemonium_pool_int_array_fill(pandemonium_pool_int_array *p_self, const pandemonium_int p_val); +void GDAPI pandemonium_pool_int_array_push_back(pandemonium_pool_int_array *p_self, const pandemonium_int p_data); +void GDAPI pandemonium_pool_int_array_append(pandemonium_pool_int_array *p_self, const pandemonium_int p_data); +void GDAPI pandemonium_pool_int_array_append_array(pandemonium_pool_int_array *p_self, const pandemonium_pool_int_array *p_array); -pandemonium_bool GDAPI pandemonium_pool_int_array_empty(const pandemonium_pool_int_array *p_self); +pandemonium_pool_int_array GDAPI pandemonium_pool_int_array_subarray(const pandemonium_pool_int_array *p_self, pandemonium_int p_from, pandemonium_int p_to); +pandemonium_error GDAPI pandemonium_pool_int_array_insert(pandemonium_pool_int_array *p_self, const pandemonium_int p_idx, const pandemonium_int p_data); + +pandemonium_string GDAPI pandemonium_pool_string_array_join(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_delimiter); + +pandemonium_bool GDAPI pandemonium_pool_int_array_contains(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_int_array_find(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_int_array_find_from(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_int_array_rfind(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val); +pandemonium_int GDAPI pandemonium_pool_int_array_rfind_from(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_int_array_count(const pandemonium_pool_int_array *p_self, const pandemonium_int p_val); pandemonium_bool GDAPI pandemonium_pool_int_array_has(const pandemonium_pool_int_array *p_self, const pandemonium_int p_data); +pandemonium_bool GDAPI pandemonium_pool_int_array_is_locked(const pandemonium_pool_int_array *p_self); + +void GDAPI pandemonium_pool_int_array_resize(pandemonium_pool_int_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_int_array_clear(pandemonium_pool_int_array *p_self); + +void GDAPI pandemonium_pool_int_array_invert(pandemonium_pool_int_array *p_self); +void GDAPI pandemonium_pool_int_array_sort(pandemonium_pool_int_array *p_self); + +void GDAPI pandemonium_pool_int_array_new(pandemonium_pool_int_array *r_dest); +void GDAPI pandemonium_pool_int_array_new_copy(pandemonium_pool_int_array *r_dest, const pandemonium_pool_int_array *p_src); +void GDAPI pandemonium_pool_int_array_new_with_array(pandemonium_pool_int_array *r_dest, const pandemonium_array *p_a); + void GDAPI pandemonium_pool_int_array_destroy(pandemonium_pool_int_array *p_self); // real -void GDAPI pandemonium_pool_real_array_new(pandemonium_pool_real_array *r_dest); -void GDAPI pandemonium_pool_real_array_new_copy(pandemonium_pool_real_array *r_dest, const pandemonium_pool_real_array *p_src); -void GDAPI pandemonium_pool_real_array_new_with_array(pandemonium_pool_real_array *r_dest, const pandemonium_array *p_a); - -void GDAPI pandemonium_pool_real_array_append(pandemonium_pool_real_array *p_self, const pandemonium_real p_data); - -void GDAPI pandemonium_pool_real_array_append_array(pandemonium_pool_real_array *p_self, const pandemonium_pool_real_array *p_array); - -pandemonium_error GDAPI pandemonium_pool_real_array_insert(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data); - -void GDAPI pandemonium_pool_real_array_invert(pandemonium_pool_real_array *p_self); - -void GDAPI pandemonium_pool_real_array_push_back(pandemonium_pool_real_array *p_self, const pandemonium_real p_data); +pandemonium_pool_real_array_read_access GDAPI *pandemonium_pool_real_array_read(const pandemonium_pool_real_array *p_self); +pandemonium_pool_real_array_write_access GDAPI *pandemonium_pool_real_array_write(pandemonium_pool_real_array *p_self); void GDAPI pandemonium_pool_real_array_remove(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx); -void GDAPI pandemonium_pool_real_array_resize(pandemonium_pool_real_array *p_self, const pandemonium_int p_size); - -void GDAPI pandemonium_pool_real_array_sort(pandemonium_pool_real_array *p_self); - -pandemonium_pool_real_array_read_access GDAPI *pandemonium_pool_real_array_read(const pandemonium_pool_real_array *p_self); - -pandemonium_pool_real_array_write_access GDAPI *pandemonium_pool_real_array_write(pandemonium_pool_real_array *p_self); +pandemonium_int GDAPI pandemonium_pool_real_array_size(const pandemonium_pool_real_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_real_array_empty(const pandemonium_pool_real_array *p_self); void GDAPI pandemonium_pool_real_array_set(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data); pandemonium_real GDAPI pandemonium_pool_real_array_get(const pandemonium_pool_real_array *p_self, const pandemonium_int p_idx); -pandemonium_int GDAPI pandemonium_pool_real_array_size(const pandemonium_pool_real_array *p_self); +void GDAPI pandemonium_pool_real_array_fill(pandemonium_pool_real_array *p_self, const pandemonium_real p_val); +void GDAPI pandemonium_pool_real_array_push_back(pandemonium_pool_real_array *p_self, const pandemonium_real p_data); +void GDAPI pandemonium_pool_real_array_append(pandemonium_pool_real_array *p_self, const pandemonium_real p_data); +void GDAPI pandemonium_pool_real_array_append_array(pandemonium_pool_real_array *p_self, const pandemonium_pool_real_array *p_array); -pandemonium_bool GDAPI pandemonium_pool_real_array_empty(const pandemonium_pool_real_array *p_self); +pandemonium_pool_real_array GDAPI pandemonium_pool_real_array_subarray(const pandemonium_pool_real_array *p_self, pandemonium_int p_from, pandemonium_int p_to); +pandemonium_error GDAPI pandemonium_pool_real_array_insert(pandemonium_pool_real_array *p_self, const pandemonium_int p_idx, const pandemonium_real p_data); + +pandemonium_bool GDAPI pandemonium_pool_real_array_contains(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val); +pandemonium_int GDAPI pandemonium_pool_real_array_find(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val); +pandemonium_int GDAPI pandemonium_pool_real_array_find_from(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_real_array_rfind(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val); +pandemonium_int GDAPI pandemonium_pool_real_array_rfind_from(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_real_array_count(const pandemonium_pool_real_array *p_self, const pandemonium_real p_val); pandemonium_bool GDAPI pandemonium_pool_real_array_has(const pandemonium_pool_real_array *p_self, const pandemonium_real p_data); +pandemonium_bool GDAPI pandemonium_pool_real_array_is_locked(const pandemonium_pool_real_array *p_self); + +void GDAPI pandemonium_pool_real_array_resize(pandemonium_pool_real_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_real_array_clear(pandemonium_pool_real_array *p_self); + +void GDAPI pandemonium_pool_real_array_invert(pandemonium_pool_real_array *p_self); +void GDAPI pandemonium_pool_real_array_sort(pandemonium_pool_real_array *p_self); + +void GDAPI pandemonium_pool_real_array_new(pandemonium_pool_real_array *r_dest); +void GDAPI pandemonium_pool_real_array_new_copy(pandemonium_pool_real_array *r_dest, const pandemonium_pool_real_array *p_src); +void GDAPI pandemonium_pool_real_array_new_with_array(pandemonium_pool_real_array *r_dest, const pandemonium_array *p_a); + void GDAPI pandemonium_pool_real_array_destroy(pandemonium_pool_real_array *p_self); -// string +// String + +pandemonium_pool_string_array_read_access GDAPI *pandemonium_pool_string_array_read(const pandemonium_pool_string_array *p_self); +pandemonium_pool_string_array_write_access GDAPI *pandemonium_pool_string_array_write(pandemonium_pool_string_array *p_self); + +void GDAPI pandemonium_pool_string_array_remove(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_string_array_size(const pandemonium_pool_string_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_string_array_empty(const pandemonium_pool_string_array *p_self); + +void GDAPI pandemonium_pool_string_array_set(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data); +pandemonium_string GDAPI pandemonium_pool_string_array_get(const pandemonium_pool_string_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_string_array_fill(pandemonium_pool_string_array *p_self, const pandemonium_string *p_val); +void GDAPI pandemonium_pool_string_array_push_back(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); +void GDAPI pandemonium_pool_string_array_append(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); +void GDAPI pandemonium_pool_string_array_append_array(pandemonium_pool_string_array *p_self, const pandemonium_pool_string_array *p_array); + +pandemonium_pool_string_array GDAPI pandemonium_pool_string_array_subarray(const pandemonium_pool_string_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_string_array_insert(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data); + +pandemonium_bool GDAPI pandemonium_pool_string_array_contains(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val); +pandemonium_int GDAPI pandemonium_pool_string_array_find(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val); +pandemonium_int GDAPI pandemonium_pool_string_array_find_from(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_string_array_rfind(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val); +pandemonium_int GDAPI pandemonium_pool_string_array_rfind_from(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_string_array_count(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_val); +pandemonium_bool GDAPI pandemonium_pool_string_array_has(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); + +pandemonium_bool GDAPI pandemonium_pool_string_array_is_locked(const pandemonium_pool_string_array *p_self); + +void GDAPI pandemonium_pool_string_array_resize(pandemonium_pool_string_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_string_array_clear(pandemonium_pool_string_array *p_self); + +void GDAPI pandemonium_pool_string_array_invert(pandemonium_pool_string_array *p_self); +void GDAPI pandemonium_pool_string_array_sort(pandemonium_pool_string_array *p_self); void GDAPI pandemonium_pool_string_array_new(pandemonium_pool_string_array *r_dest); void GDAPI pandemonium_pool_string_array_new_copy(pandemonium_pool_string_array *r_dest, const pandemonium_pool_string_array *p_src); void GDAPI pandemonium_pool_string_array_new_with_array(pandemonium_pool_string_array *r_dest, const pandemonium_array *p_a); -void GDAPI pandemonium_pool_string_array_append(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); - -void GDAPI pandemonium_pool_string_array_append_array(pandemonium_pool_string_array *p_self, const pandemonium_pool_string_array *p_array); - -pandemonium_error GDAPI pandemonium_pool_string_array_insert(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data); - -void GDAPI pandemonium_pool_string_array_invert(pandemonium_pool_string_array *p_self); - -pandemonium_string GDAPI pandemonium_pool_string_array_join(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_delimiter); - -void GDAPI pandemonium_pool_string_array_push_back(pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); - -void GDAPI pandemonium_pool_string_array_remove(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx); - -void GDAPI pandemonium_pool_string_array_resize(pandemonium_pool_string_array *p_self, const pandemonium_int p_size); - -void GDAPI pandemonium_pool_string_array_sort(pandemonium_pool_string_array *p_self); - -pandemonium_pool_string_array_read_access GDAPI *pandemonium_pool_string_array_read(const pandemonium_pool_string_array *p_self); - -pandemonium_pool_string_array_write_access GDAPI *pandemonium_pool_string_array_write(pandemonium_pool_string_array *p_self); - -void GDAPI pandemonium_pool_string_array_set(pandemonium_pool_string_array *p_self, const pandemonium_int p_idx, const pandemonium_string *p_data); -pandemonium_string GDAPI pandemonium_pool_string_array_get(const pandemonium_pool_string_array *p_self, const pandemonium_int p_idx); - -pandemonium_int GDAPI pandemonium_pool_string_array_size(const pandemonium_pool_string_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_string_array_empty(const pandemonium_pool_string_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_string_array_has(const pandemonium_pool_string_array *p_self, const pandemonium_string *p_data); - void GDAPI pandemonium_pool_string_array_destroy(pandemonium_pool_string_array *p_self); // vector2 +pandemonium_pool_vector2_array_read_access GDAPI *pandemonium_pool_vector2_array_read(const pandemonium_pool_vector2_array *p_self); +pandemonium_pool_vector2_array_write_access GDAPI *pandemonium_pool_vector2_array_write(pandemonium_pool_vector2_array *p_self); + +void GDAPI pandemonium_pool_vector2_array_remove(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector2_array_size(const pandemonium_pool_vector2_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector2_array_empty(const pandemonium_pool_vector2_array *p_self); + +void GDAPI pandemonium_pool_vector2_array_set(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data); +pandemonium_vector2 GDAPI pandemonium_pool_vector2_array_get(const pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector2_array_fill(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val); +void GDAPI pandemonium_pool_vector2_array_push_back(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); +void GDAPI pandemonium_pool_vector2_array_append(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); +void GDAPI pandemonium_pool_vector2_array_append_array(pandemonium_pool_vector2_array *p_self, const pandemonium_pool_vector2_array *p_array); + +pandemonium_pool_vector2_array GDAPI pandemonium_pool_vector2_array_subarray(const pandemonium_pool_vector2_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector2_array_insert(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_contains(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2_array_find(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2_array_find_from(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector2_array_rfind(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2_array_rfind_from(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector2_array_count(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector2_array_has(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector2_array_is_locked(const pandemonium_pool_vector2_array *p_self); + +void GDAPI pandemonium_pool_vector2_array_resize(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector2_array_clear(pandemonium_pool_vector2_array *p_self); + +void GDAPI pandemonium_pool_vector2_array_invert(pandemonium_pool_vector2_array *p_self); +void GDAPI pandemonium_pool_vector2_array_sort(pandemonium_pool_vector2_array *p_self); + void GDAPI pandemonium_pool_vector2_array_new(pandemonium_pool_vector2_array *r_dest); void GDAPI pandemonium_pool_vector2_array_new_copy(pandemonium_pool_vector2_array *r_dest, const pandemonium_pool_vector2_array *p_src); void GDAPI pandemonium_pool_vector2_array_new_with_array(pandemonium_pool_vector2_array *r_dest, const pandemonium_array *p_a); -void GDAPI pandemonium_pool_vector2_array_append(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); - -void GDAPI pandemonium_pool_vector2_array_append_array(pandemonium_pool_vector2_array *p_self, const pandemonium_pool_vector2_array *p_array); - -pandemonium_error GDAPI pandemonium_pool_vector2_array_insert(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data); - -void GDAPI pandemonium_pool_vector2_array_invert(pandemonium_pool_vector2_array *p_self); - -void GDAPI pandemonium_pool_vector2_array_push_back(pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); - -void GDAPI pandemonium_pool_vector2_array_remove(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx); - -void GDAPI pandemonium_pool_vector2_array_resize(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_size); - -void GDAPI pandemonium_pool_vector2_array_sort(pandemonium_pool_vector2_array *p_self); - -pandemonium_pool_vector2_array_read_access GDAPI *pandemonium_pool_vector2_array_read(const pandemonium_pool_vector2_array *p_self); - -pandemonium_pool_vector2_array_write_access GDAPI *pandemonium_pool_vector2_array_write(pandemonium_pool_vector2_array *p_self); - -void GDAPI pandemonium_pool_vector2_array_set(pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2 *p_data); -pandemonium_vector2 GDAPI pandemonium_pool_vector2_array_get(const pandemonium_pool_vector2_array *p_self, const pandemonium_int p_idx); - -pandemonium_int GDAPI pandemonium_pool_vector2_array_size(const pandemonium_pool_vector2_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_vector2_array_empty(const pandemonium_pool_vector2_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_vector2_array_has(const pandemonium_pool_vector2_array *p_self, const pandemonium_vector2 *p_data); - void GDAPI pandemonium_pool_vector2_array_destroy(pandemonium_pool_vector2_array *p_self); +// vector2i + +pandemonium_pool_vector2i_array_read_access GDAPI *pandemonium_pool_vector2i_array_read(const pandemonium_pool_vector2i_array *p_self); +pandemonium_pool_vector2i_array_write_access GDAPI *pandemonium_pool_vector2i_array_write(pandemonium_pool_vector2i_array *p_self); + +void GDAPI pandemonium_pool_vector2i_array_remove(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector2i_array_size(const pandemonium_pool_vector2i_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_empty(const pandemonium_pool_vector2i_array *p_self); + +void GDAPI pandemonium_pool_vector2i_array_set(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2i *p_data); +pandemonium_vector2i GDAPI pandemonium_pool_vector2i_array_get(const pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector2i_array_fill(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val); +void GDAPI pandemonium_pool_vector2i_array_push_back(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data); +void GDAPI pandemonium_pool_vector2i_array_append(pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data); +void GDAPI pandemonium_pool_vector2i_array_append_array(pandemonium_pool_vector2i_array *p_self, const pandemonium_pool_vector2i_array *p_array); + +pandemonium_pool_vector2i_array GDAPI pandemonium_pool_vector2i_array_subarray(const pandemonium_pool_vector2i_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector2i_array_insert(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector2i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_contains(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_find(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_find_from(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_rfind(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_rfind_from(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_count(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_has(const pandemonium_pool_vector2i_array *p_self, const pandemonium_vector2i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector2i_array_is_locked(const pandemonium_pool_vector2i_array *p_self); + +void GDAPI pandemonium_pool_vector2i_array_resize(pandemonium_pool_vector2i_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector2i_array_clear(pandemonium_pool_vector2i_array *p_self); + +void GDAPI pandemonium_pool_vector2i_array_invert(pandemonium_pool_vector2i_array *p_self); +void GDAPI pandemonium_pool_vector2i_array_sort(pandemonium_pool_vector2i_array *p_self); + +void GDAPI pandemonium_pool_vector2i_array_new(pandemonium_pool_vector2i_array *r_dest); +void GDAPI pandemonium_pool_vector2i_array_new_copy(pandemonium_pool_vector2i_array *r_dest, const pandemonium_pool_vector2i_array *p_src); +void GDAPI pandemonium_pool_vector2i_array_new_with_array(pandemonium_pool_vector2i_array *r_dest, const pandemonium_array *p_a); + +void GDAPI pandemonium_pool_vector2i_array_destroy(pandemonium_pool_vector2i_array *p_self); + // vector3 +pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read(const pandemonium_pool_vector3_array *p_self); +pandemonium_pool_vector3_array_write_access GDAPI *pandemonium_pool_vector3_array_write(pandemonium_pool_vector3_array *p_self); + +void GDAPI pandemonium_pool_vector3_array_remove(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector3_array_size(const pandemonium_pool_vector3_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector3_array_empty(const pandemonium_pool_vector3_array *p_self); + +void GDAPI pandemonium_pool_vector3_array_set(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data); +pandemonium_vector3 GDAPI pandemonium_pool_vector3_array_get(const pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector3_array_fill(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val); +void GDAPI pandemonium_pool_vector3_array_push_back(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); +void GDAPI pandemonium_pool_vector3_array_append(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); +void GDAPI pandemonium_pool_vector3_array_append_array(pandemonium_pool_vector3_array *p_self, const pandemonium_pool_vector3_array *p_array); + +pandemonium_pool_vector3_array GDAPI pandemonium_pool_vector3_array_subarray(const pandemonium_pool_vector3_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector3_array_insert(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_contains(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3_array_find(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3_array_find_from(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector3_array_rfind(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3_array_rfind_from(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector3_array_count(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector3_array_has(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector3_array_is_locked(const pandemonium_pool_vector3_array *p_self); + +void GDAPI pandemonium_pool_vector3_array_resize(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector3_array_clear(pandemonium_pool_vector3_array *p_self); + +void GDAPI pandemonium_pool_vector3_array_invert(pandemonium_pool_vector3_array *p_self); +void GDAPI pandemonium_pool_vector3_array_sort(pandemonium_pool_vector3_array *p_self); + void GDAPI pandemonium_pool_vector3_array_new(pandemonium_pool_vector3_array *r_dest); void GDAPI pandemonium_pool_vector3_array_new_copy(pandemonium_pool_vector3_array *r_dest, const pandemonium_pool_vector3_array *p_src); void GDAPI pandemonium_pool_vector3_array_new_with_array(pandemonium_pool_vector3_array *r_dest, const pandemonium_array *p_a); -void GDAPI pandemonium_pool_vector3_array_append(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); - -void GDAPI pandemonium_pool_vector3_array_append_array(pandemonium_pool_vector3_array *p_self, const pandemonium_pool_vector3_array *p_array); - -pandemonium_error GDAPI pandemonium_pool_vector3_array_insert(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data); - -void GDAPI pandemonium_pool_vector3_array_invert(pandemonium_pool_vector3_array *p_self); - -void GDAPI pandemonium_pool_vector3_array_push_back(pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); - -void GDAPI pandemonium_pool_vector3_array_remove(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx); - -void GDAPI pandemonium_pool_vector3_array_resize(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_size); - -void GDAPI pandemonium_pool_vector3_array_sort(pandemonium_pool_vector3_array *p_self); - -pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read(const pandemonium_pool_vector3_array *p_self); - -pandemonium_pool_vector3_array_write_access GDAPI *pandemonium_pool_vector3_array_write(pandemonium_pool_vector3_array *p_self); - -void GDAPI pandemonium_pool_vector3_array_set(pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3 *p_data); -pandemonium_vector3 GDAPI pandemonium_pool_vector3_array_get(const pandemonium_pool_vector3_array *p_self, const pandemonium_int p_idx); - -pandemonium_int GDAPI pandemonium_pool_vector3_array_size(const pandemonium_pool_vector3_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_vector3_array_empty(const pandemonium_pool_vector3_array *p_self); - -pandemonium_bool GDAPI pandemonium_pool_vector3_array_has(const pandemonium_pool_vector3_array *p_self, const pandemonium_vector3 *p_data); - void GDAPI pandemonium_pool_vector3_array_destroy(pandemonium_pool_vector3_array *p_self); +// vector3i + +pandemonium_pool_vector3i_array_read_access GDAPI *pandemonium_pool_vector3i_array_read(const pandemonium_pool_vector3i_array *p_self); +pandemonium_pool_vector3i_array_write_access GDAPI *pandemonium_pool_vector3i_array_write(pandemonium_pool_vector3i_array *p_self); + +void GDAPI pandemonium_pool_vector3i_array_remove(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector3i_array_size(const pandemonium_pool_vector3i_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_empty(const pandemonium_pool_vector3i_array *p_self); + +void GDAPI pandemonium_pool_vector3i_array_set(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3i *p_data); +pandemonium_vector3i GDAPI pandemonium_pool_vector3i_array_get(const pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector3i_array_fill(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val); +void GDAPI pandemonium_pool_vector3i_array_push_back(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data); +void GDAPI pandemonium_pool_vector3i_array_append(pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data); +void GDAPI pandemonium_pool_vector3i_array_append_array(pandemonium_pool_vector3i_array *p_self, const pandemonium_pool_vector3i_array *p_array); + +pandemonium_pool_vector3i_array GDAPI pandemonium_pool_vector3i_array_subarray(const pandemonium_pool_vector3i_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector3i_array_insert(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector3i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_contains(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_find(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_find_from(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_rfind(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_rfind_from(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_count(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_has(const pandemonium_pool_vector3i_array *p_self, const pandemonium_vector3i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector3i_array_is_locked(const pandemonium_pool_vector3i_array *p_self); + +void GDAPI pandemonium_pool_vector3i_array_resize(pandemonium_pool_vector3i_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector3i_array_clear(pandemonium_pool_vector3i_array *p_self); + +void GDAPI pandemonium_pool_vector3i_array_invert(pandemonium_pool_vector3i_array *p_self); +void GDAPI pandemonium_pool_vector3i_array_sort(pandemonium_pool_vector3i_array *p_self); + +void GDAPI pandemonium_pool_vector3i_array_new(pandemonium_pool_vector3i_array *r_dest); +void GDAPI pandemonium_pool_vector3i_array_new_copy(pandemonium_pool_vector3i_array *r_dest, const pandemonium_pool_vector3i_array *p_src); +void GDAPI pandemonium_pool_vector3i_array_new_with_array(pandemonium_pool_vector3i_array *r_dest, const pandemonium_array *p_a); + +void GDAPI pandemonium_pool_vector3i_array_destroy(pandemonium_pool_vector3i_array *p_self); + +// vector4 + +pandemonium_pool_vector4_array_read_access GDAPI *pandemonium_pool_vector4_array_read(const pandemonium_pool_vector4_array *p_self); +pandemonium_pool_vector4_array_write_access GDAPI *pandemonium_pool_vector4_array_write(pandemonium_pool_vector4_array *p_self); + +void GDAPI pandemonium_pool_vector4_array_remove(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector4_array_size(const pandemonium_pool_vector4_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector4_array_empty(const pandemonium_pool_vector4_array *p_self); + +void GDAPI pandemonium_pool_vector4_array_set(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4 *p_data); +pandemonium_vector4 GDAPI pandemonium_pool_vector4_array_get(const pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector4_array_fill(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val); +void GDAPI pandemonium_pool_vector4_array_push_back(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data); +void GDAPI pandemonium_pool_vector4_array_append(pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data); +void GDAPI pandemonium_pool_vector4_array_append_array(pandemonium_pool_vector4_array *p_self, const pandemonium_pool_vector4_array *p_array); + +pandemonium_pool_vector4_array GDAPI pandemonium_pool_vector4_array_subarray(const pandemonium_pool_vector4_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector4_array_insert(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_contains(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4_array_find(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4_array_find_from(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector4_array_rfind(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4_array_rfind_from(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector4_array_count(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector4_array_has(const pandemonium_pool_vector4_array *p_self, const pandemonium_vector4 *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector4_array_is_locked(const pandemonium_pool_vector4_array *p_self); + +void GDAPI pandemonium_pool_vector4_array_resize(pandemonium_pool_vector4_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector4_array_clear(pandemonium_pool_vector4_array *p_self); + +void GDAPI pandemonium_pool_vector4_array_invert(pandemonium_pool_vector4_array *p_self); +void GDAPI pandemonium_pool_vector4_array_sort(pandemonium_pool_vector4_array *p_self); + +void GDAPI pandemonium_pool_vector4_array_new(pandemonium_pool_vector4_array *r_dest); +void GDAPI pandemonium_pool_vector4_array_new_copy(pandemonium_pool_vector4_array *r_dest, const pandemonium_pool_vector4_array *p_src); +void GDAPI pandemonium_pool_vector4_array_new_with_array(pandemonium_pool_vector4_array *r_dest, const pandemonium_array *p_a); + +void GDAPI pandemonium_pool_vector4_array_destroy(pandemonium_pool_vector4_array *p_self); + +// vector4i + +pandemonium_pool_vector4i_array_read_access GDAPI *pandemonium_pool_vector4i_array_read(const pandemonium_pool_vector4i_array *p_self); +pandemonium_pool_vector4i_array_write_access GDAPI *pandemonium_pool_vector4i_array_write(pandemonium_pool_vector4i_array *p_self); + +void GDAPI pandemonium_pool_vector4i_array_remove(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx); + +pandemonium_int GDAPI pandemonium_pool_vector4i_array_size(const pandemonium_pool_vector4i_array *p_self); +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_empty(const pandemonium_pool_vector4i_array *p_self); + +void GDAPI pandemonium_pool_vector4i_array_set(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4i *p_data); +pandemonium_vector4i GDAPI pandemonium_pool_vector4i_array_get(const pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx); + +void GDAPI pandemonium_pool_vector4i_array_fill(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val); +void GDAPI pandemonium_pool_vector4i_array_push_back(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data); +void GDAPI pandemonium_pool_vector4i_array_append(pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data); +void GDAPI pandemonium_pool_vector4i_array_append_array(pandemonium_pool_vector4i_array *p_self, const pandemonium_pool_vector4i_array *p_array); + +pandemonium_pool_vector4i_array GDAPI pandemonium_pool_vector4i_array_subarray(const pandemonium_pool_vector4i_array *p_self, pandemonium_int p_from, pandemonium_int p_to); + +pandemonium_error GDAPI pandemonium_pool_vector4i_array_insert(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_idx, const pandemonium_vector4i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_contains(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_find(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_find_from(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_rfind(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_rfind_from(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val, pandemonium_int p_from); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_count(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_val); +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_has(const pandemonium_pool_vector4i_array *p_self, const pandemonium_vector4i *p_data); + +pandemonium_bool GDAPI pandemonium_pool_vector4i_array_is_locked(const pandemonium_pool_vector4i_array *p_self); + +void GDAPI pandemonium_pool_vector4i_array_resize(pandemonium_pool_vector4i_array *p_self, const pandemonium_int p_size); +pandemonium_int GDAPI pandemonium_pool_vector4i_array_clear(pandemonium_pool_vector4i_array *p_self); + +void GDAPI pandemonium_pool_vector4i_array_invert(pandemonium_pool_vector4i_array *p_self); +void GDAPI pandemonium_pool_vector4i_array_sort(pandemonium_pool_vector4i_array *p_self); + +void GDAPI pandemonium_pool_vector4i_array_new(pandemonium_pool_vector4i_array *r_dest); +void GDAPI pandemonium_pool_vector4i_array_new_copy(pandemonium_pool_vector4i_array *r_dest, const pandemonium_pool_vector4i_array *p_src); +void GDAPI pandemonium_pool_vector4i_array_new_with_array(pandemonium_pool_vector4i_array *r_dest, const pandemonium_array *p_a); + +void GDAPI pandemonium_pool_vector4i_array_destroy(pandemonium_pool_vector4i_array *p_self); + // color void GDAPI pandemonium_pool_color_array_new(pandemonium_pool_color_array *r_dest); @@ -461,11 +726,31 @@ const pandemonium_vector2 GDAPI *pandemonium_pool_vector2_array_read_access_ptr( void GDAPI pandemonium_pool_vector2_array_read_access_operator_assign(pandemonium_pool_vector2_array_read_access *p_read, pandemonium_pool_vector2_array_read_access *p_other); void GDAPI pandemonium_pool_vector2_array_read_access_destroy(pandemonium_pool_vector2_array_read_access *p_read); +pandemonium_pool_vector2i_array_read_access GDAPI *pandemonium_pool_vector2i_array_read_access_copy(const pandemonium_pool_vector2i_array_read_access *p_other); +const pandemonium_vector2i GDAPI *pandemonium_pool_vector2i_array_read_access_ptr(const pandemonium_pool_vector2i_array_read_access *p_read); +void GDAPI pandemonium_pool_vector2i_array_read_access_operator_assign(pandemonium_pool_vector2i_array_read_access *p_read, pandemonium_pool_vector2i_array_read_access *p_other); +void GDAPI pandemonium_pool_vector2i_array_read_access_destroy(pandemonium_pool_vector2i_array_read_access *p_read); + pandemonium_pool_vector3_array_read_access GDAPI *pandemonium_pool_vector3_array_read_access_copy(const pandemonium_pool_vector3_array_read_access *p_other); const pandemonium_vector3 GDAPI *pandemonium_pool_vector3_array_read_access_ptr(const pandemonium_pool_vector3_array_read_access *p_read); void GDAPI pandemonium_pool_vector3_array_read_access_operator_assign(pandemonium_pool_vector3_array_read_access *p_read, pandemonium_pool_vector3_array_read_access *p_other); void GDAPI pandemonium_pool_vector3_array_read_access_destroy(pandemonium_pool_vector3_array_read_access *p_read); +pandemonium_pool_vector3i_array_read_access GDAPI *pandemonium_pool_vector3i_array_read_access_copy(const pandemonium_pool_vector3i_array_read_access *p_other); +const pandemonium_vector3i GDAPI *pandemonium_pool_vector3i_array_read_access_ptr(const pandemonium_pool_vector3i_array_read_access *p_read); +void GDAPI pandemonium_pool_vector3i_array_read_access_operator_assign(pandemonium_pool_vector3i_array_read_access *p_read, pandemonium_pool_vector3i_array_read_access *p_other); +void GDAPI pandemonium_pool_vector3i_array_read_access_destroy(pandemonium_pool_vector3i_array_read_access *p_read); + +pandemonium_pool_vector4_array_read_access GDAPI *pandemonium_pool_vector4_array_read_access_copy(const pandemonium_pool_vector4_array_read_access *p_other); +const pandemonium_vector4 GDAPI *pandemonium_pool_vector4_array_read_access_ptr(const pandemonium_pool_vector4_array_read_access *p_read); +void GDAPI pandemonium_pool_vector4_array_read_access_operator_assign(pandemonium_pool_vector4_array_read_access *p_read, pandemonium_pool_vector4_array_read_access *p_other); +void GDAPI pandemonium_pool_vector4_array_read_access_destroy(pandemonium_pool_vector4_array_read_access *p_read); + +pandemonium_pool_vector4i_array_read_access GDAPI *pandemonium_pool_vector4i_array_read_access_copy(const pandemonium_pool_vector4i_array_read_access *p_other); +const pandemonium_vector4i GDAPI *pandemonium_pool_vector4i_array_read_access_ptr(const pandemonium_pool_vector4i_array_read_access *p_read); +void GDAPI pandemonium_pool_vector4i_array_read_access_operator_assign(pandemonium_pool_vector4i_array_read_access *p_read, pandemonium_pool_vector4i_array_read_access *p_other); +void GDAPI pandemonium_pool_vector4i_array_read_access_destroy(pandemonium_pool_vector4i_array_read_access *p_read); + pandemonium_pool_color_array_read_access GDAPI *pandemonium_pool_color_array_read_access_copy(const pandemonium_pool_color_array_read_access *p_other); const pandemonium_color GDAPI *pandemonium_pool_color_array_read_access_ptr(const pandemonium_pool_color_array_read_access *p_read); void GDAPI pandemonium_pool_color_array_read_access_operator_assign(pandemonium_pool_color_array_read_access *p_read, pandemonium_pool_color_array_read_access *p_other); @@ -505,6 +790,21 @@ pandemonium_vector3 GDAPI *pandemonium_pool_vector3_array_write_access_ptr(const void GDAPI pandemonium_pool_vector3_array_write_access_operator_assign(pandemonium_pool_vector3_array_write_access *p_write, pandemonium_pool_vector3_array_write_access *p_other); void GDAPI pandemonium_pool_vector3_array_write_access_destroy(pandemonium_pool_vector3_array_write_access *p_write); +pandemonium_pool_vector3i_array_write_access GDAPI *pandemonium_pool_vector3i_array_write_access_copy(const pandemonium_pool_vector3i_array_write_access *p_other); +pandemonium_vector3i GDAPI *pandemonium_pool_vector3i_array_write_access_ptr(const pandemonium_pool_vector3i_array_write_access *p_write); +void GDAPI pandemonium_pool_vector3i_array_write_access_operator_assign(pandemonium_pool_vector3i_array_write_access *p_write, pandemonium_pool_vector3i_array_write_access *p_other); +void GDAPI pandemonium_pool_vector3i_array_write_access_destroy(pandemonium_pool_vector3i_array_write_access *p_write); + +pandemonium_pool_vector4_array_write_access GDAPI *pandemonium_pool_vector4_array_write_access_copy(const pandemonium_pool_vector4_array_write_access *p_other); +pandemonium_vector4 GDAPI *pandemonium_pool_vector4_array_write_access_ptr(const pandemonium_pool_vector4_array_write_access *p_write); +void GDAPI pandemonium_pool_vector4_array_write_access_operator_assign(pandemonium_pool_vector4_array_write_access *p_write, pandemonium_pool_vector4_array_write_access *p_other); +void GDAPI pandemonium_pool_vector4_array_write_access_destroy(pandemonium_pool_vector4_array_write_access *p_write); + +pandemonium_pool_vector4i_array_write_access GDAPI *pandemonium_pool_vector4i_array_write_access_copy(const pandemonium_pool_vector4i_array_write_access *p_other); +pandemonium_vector4i GDAPI *pandemonium_pool_vector4i_array_write_access_ptr(const pandemonium_pool_vector4i_array_write_access *p_write); +void GDAPI pandemonium_pool_vector4i_array_write_access_operator_assign(pandemonium_pool_vector4i_array_write_access *p_write, pandemonium_pool_vector4i_array_write_access *p_other); +void GDAPI pandemonium_pool_vector4i_array_write_access_destroy(pandemonium_pool_vector4i_array_write_access *p_write); + pandemonium_pool_color_array_write_access GDAPI *pandemonium_pool_color_array_write_access_copy(const pandemonium_pool_color_array_write_access *p_other); pandemonium_color GDAPI *pandemonium_pool_color_array_write_access_ptr(const pandemonium_pool_color_array_write_access *p_write); void GDAPI pandemonium_pool_color_array_write_access_operator_assign(pandemonium_pool_color_array_write_access *p_write, pandemonium_pool_color_array_write_access *p_other);