|
@@ -63,6 +63,16 @@ void GDAPI godot_packed_byte_array_destroy(godot_packed_byte_array *p_self) {
|
|
((PackedByteArray *)p_self)->~PackedByteArray();
|
|
((PackedByteArray *)p_self)->~PackedByteArray();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+uint8_t GDAPI *godot_packed_byte_array_operator_index(godot_packed_byte_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedByteArray *self = (PackedByteArray *)p_self;
|
|
|
|
+ return (uint8_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const uint8_t GDAPI *godot_packed_byte_array_operator_index_const(const godot_packed_byte_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedByteArray *self = (const PackedByteArray *)p_self;
|
|
|
|
+ return (const uint8_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// int32
|
|
// int32
|
|
|
|
|
|
void GDAPI godot_packed_int32_array_new(godot_packed_int32_array *p_self) {
|
|
void GDAPI godot_packed_int32_array_new(godot_packed_int32_array *p_self) {
|
|
@@ -73,6 +83,16 @@ void GDAPI godot_packed_int32_array_destroy(godot_packed_int32_array *p_self) {
|
|
((PackedInt32Array *)p_self)->~PackedInt32Array();
|
|
((PackedInt32Array *)p_self)->~PackedInt32Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int32_t GDAPI *godot_packed_int32_array_operator_index(godot_packed_int32_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedInt32Array *self = (PackedInt32Array *)p_self;
|
|
|
|
+ return (int32_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const int32_t GDAPI *godot_packed_int32_array_operator_index_const(const godot_packed_int32_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedInt32Array *self = (const PackedInt32Array *)p_self;
|
|
|
|
+ return (const int32_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// int64
|
|
// int64
|
|
|
|
|
|
void GDAPI godot_packed_int64_array_new(godot_packed_int64_array *p_self) {
|
|
void GDAPI godot_packed_int64_array_new(godot_packed_int64_array *p_self) {
|
|
@@ -83,6 +103,16 @@ void GDAPI godot_packed_int64_array_destroy(godot_packed_int64_array *p_self) {
|
|
((PackedInt64Array *)p_self)->~PackedInt64Array();
|
|
((PackedInt64Array *)p_self)->~PackedInt64Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int64_t GDAPI *godot_packed_int64_array_operator_index(godot_packed_int64_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedInt64Array *self = (PackedInt64Array *)p_self;
|
|
|
|
+ return (int64_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const int64_t GDAPI *godot_packed_int64_array_operator_index_const(const godot_packed_int64_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedInt64Array *self = (const PackedInt64Array *)p_self;
|
|
|
|
+ return (const int64_t *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// float32
|
|
// float32
|
|
|
|
|
|
void GDAPI godot_packed_float32_array_new(godot_packed_float32_array *p_self) {
|
|
void GDAPI godot_packed_float32_array_new(godot_packed_float32_array *p_self) {
|
|
@@ -93,6 +123,16 @@ void GDAPI godot_packed_float32_array_destroy(godot_packed_float32_array *p_self
|
|
((PackedFloat32Array *)p_self)->~PackedFloat32Array();
|
|
((PackedFloat32Array *)p_self)->~PackedFloat32Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+float GDAPI *godot_packed_float32_array_operator_index(godot_packed_float32_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedFloat32Array *self = (PackedFloat32Array *)p_self;
|
|
|
|
+ return (float *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const float GDAPI *godot_packed_float32_array_operator_index_const(const godot_packed_float32_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedFloat32Array *self = (const PackedFloat32Array *)p_self;
|
|
|
|
+ return (const float *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// float64
|
|
// float64
|
|
|
|
|
|
void GDAPI godot_packed_float64_array_new(godot_packed_float64_array *p_self) {
|
|
void GDAPI godot_packed_float64_array_new(godot_packed_float64_array *p_self) {
|
|
@@ -103,6 +143,16 @@ void GDAPI godot_packed_float64_array_destroy(godot_packed_float64_array *p_self
|
|
((PackedFloat64Array *)p_self)->~PackedFloat64Array();
|
|
((PackedFloat64Array *)p_self)->~PackedFloat64Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+double GDAPI *godot_packed_float64_array_operator_index(godot_packed_float64_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedFloat64Array *self = (PackedFloat64Array *)p_self;
|
|
|
|
+ return (double *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const double GDAPI *godot_packed_float64_array_operator_index_const(const godot_packed_float64_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedFloat64Array *self = (const PackedFloat64Array *)p_self;
|
|
|
|
+ return (const double *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// string
|
|
// string
|
|
|
|
|
|
void GDAPI godot_packed_string_array_new(godot_packed_string_array *p_self) {
|
|
void GDAPI godot_packed_string_array_new(godot_packed_string_array *p_self) {
|
|
@@ -113,6 +163,16 @@ void GDAPI godot_packed_string_array_destroy(godot_packed_string_array *p_self)
|
|
((PackedStringArray *)p_self)->~PackedStringArray();
|
|
((PackedStringArray *)p_self)->~PackedStringArray();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_string GDAPI *godot_packed_string_array_operator_index(godot_packed_string_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedStringArray *self = (PackedStringArray *)p_self;
|
|
|
|
+ return (godot_string *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_string GDAPI *godot_packed_string_array_operator_index_const(const godot_packed_string_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedStringArray *self = (const PackedStringArray *)p_self;
|
|
|
|
+ return (const godot_string *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// vector2
|
|
// vector2
|
|
|
|
|
|
void GDAPI godot_packed_vector2_array_new(godot_packed_vector2_array *p_self) {
|
|
void GDAPI godot_packed_vector2_array_new(godot_packed_vector2_array *p_self) {
|
|
@@ -123,6 +183,16 @@ void GDAPI godot_packed_vector2_array_destroy(godot_packed_vector2_array *p_self
|
|
((PackedVector2Array *)p_self)->~PackedVector2Array();
|
|
((PackedVector2Array *)p_self)->~PackedVector2Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_vector2 GDAPI *godot_packed_vector2_array_operator_index(godot_packed_vector2_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedVector2Array *self = (PackedVector2Array *)p_self;
|
|
|
|
+ return (godot_vector2 *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_vector2 GDAPI *godot_packed_vector2_array_operator_index_const(const godot_packed_vector2_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedVector2Array *self = (const PackedVector2Array *)p_self;
|
|
|
|
+ return (const godot_vector2 *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// vector2i
|
|
// vector2i
|
|
|
|
|
|
void GDAPI godot_packed_vector2i_array_new(godot_packed_vector2i_array *p_self) {
|
|
void GDAPI godot_packed_vector2i_array_new(godot_packed_vector2i_array *p_self) {
|
|
@@ -133,6 +203,16 @@ void GDAPI godot_packed_vector2i_array_destroy(godot_packed_vector2i_array *p_se
|
|
((Vector<Vector2i> *)p_self)->~Vector();
|
|
((Vector<Vector2i> *)p_self)->~Vector();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_vector2i GDAPI *godot_packed_vector2i_array_operator_index(godot_packed_vector2i_array *p_self, godot_int p_index) {
|
|
|
|
+ Vector<Vector2i> *self = (Vector<Vector2i> *)p_self;
|
|
|
|
+ return (godot_vector2i *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_vector2i GDAPI *godot_packed_vector2i_array_operator_index_const(const godot_packed_vector2i_array *p_self, godot_int p_index) {
|
|
|
|
+ const Vector<Vector2i> *self = (const Vector<Vector2i> *)p_self;
|
|
|
|
+ return (const godot_vector2i *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// vector3
|
|
// vector3
|
|
|
|
|
|
void GDAPI godot_packed_vector3_array_new(godot_packed_vector3_array *p_self) {
|
|
void GDAPI godot_packed_vector3_array_new(godot_packed_vector3_array *p_self) {
|
|
@@ -143,6 +223,16 @@ void GDAPI godot_packed_vector3_array_destroy(godot_packed_vector3_array *p_self
|
|
((PackedVector3Array *)p_self)->~PackedVector3Array();
|
|
((PackedVector3Array *)p_self)->~PackedVector3Array();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_vector3 GDAPI *godot_packed_vector3_array_operator_index(godot_packed_vector3_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedVector3Array *self = (PackedVector3Array *)p_self;
|
|
|
|
+ return (godot_vector3 *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_vector3 GDAPI *godot_packed_vector3_array_operator_index_const(const godot_packed_vector3_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedVector3Array *self = (const PackedVector3Array *)p_self;
|
|
|
|
+ return (const godot_vector3 *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// vector3i
|
|
// vector3i
|
|
|
|
|
|
void GDAPI godot_packed_vector3i_array_new(godot_packed_vector3i_array *p_self) {
|
|
void GDAPI godot_packed_vector3i_array_new(godot_packed_vector3i_array *p_self) {
|
|
@@ -153,6 +243,16 @@ void GDAPI godot_packed_vector3i_array_destroy(godot_packed_vector3i_array *p_se
|
|
((Vector<Vector3i> *)p_self)->~Vector();
|
|
((Vector<Vector3i> *)p_self)->~Vector();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_vector3i GDAPI *godot_packed_vector3i_array_operator_index(godot_packed_vector3i_array *p_self, godot_int p_index) {
|
|
|
|
+ Vector<Vector3i> *self = (Vector<Vector3i> *)p_self;
|
|
|
|
+ return (godot_vector3i *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_vector3i GDAPI *godot_packed_vector3i_array_operator_index_const(const godot_packed_vector3i_array *p_self, godot_int p_index) {
|
|
|
|
+ const Vector<Vector3i> *self = (const Vector<Vector3i> *)p_self;
|
|
|
|
+ return (const godot_vector3i *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
// color
|
|
// color
|
|
|
|
|
|
void GDAPI godot_packed_color_array_new(godot_packed_color_array *p_self) {
|
|
void GDAPI godot_packed_color_array_new(godot_packed_color_array *p_self) {
|
|
@@ -163,6 +263,16 @@ void GDAPI godot_packed_color_array_destroy(godot_packed_color_array *p_self) {
|
|
((PackedColorArray *)p_self)->~PackedColorArray();
|
|
((PackedColorArray *)p_self)->~PackedColorArray();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+godot_color GDAPI *godot_packed_color_array_operator_index(godot_packed_color_array *p_self, godot_int p_index) {
|
|
|
|
+ PackedColorArray *self = (PackedColorArray *)p_self;
|
|
|
|
+ return (godot_color *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const godot_color GDAPI *godot_packed_color_array_operator_index_const(const godot_packed_color_array *p_self, godot_int p_index) {
|
|
|
|
+ const PackedColorArray *self = (const PackedColorArray *)p_self;
|
|
|
|
+ return (const godot_color *)&self->operator[](p_index);
|
|
|
|
+}
|
|
|
|
+
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|