diff --git a/gdnative/rid.cpp b/gdnative/rid.cpp index 4006542..f69f1b2 100644 --- a/gdnative/rid.cpp +++ b/gdnative/rid.cpp @@ -30,8 +30,8 @@ #include "gdn/rid.h" -#include "core/object/resource.h" #include "core/containers/rid.h" +#include "core/object/resource.h" #include "core/variant/variant.h" #ifdef __cplusplus @@ -40,11 +40,6 @@ extern "C" { static_assert(sizeof(pandemonium_rid) == sizeof(RID), "RID size mismatch"); -void GDAPI pandemonium_rid_new(pandemonium_rid *r_dest) { - RID *dest = (RID *)r_dest; - memnew_placement(dest, RID); -} - pandemonium_int GDAPI pandemonium_rid_get_id(const pandemonium_rid *p_self) { const RID *self = (const RID *)p_self; return self->get_id(); @@ -71,6 +66,11 @@ pandemonium_bool GDAPI pandemonium_rid_operator_less(const pandemonium_rid *p_se return *self < *b; } +void GDAPI pandemonium_rid_new(pandemonium_rid *r_dest) { + RID *dest = (RID *)r_dest; + memnew_placement(dest, RID); +} + #ifdef __cplusplus } #endif diff --git a/include/gdn/rid.h b/include/gdn/rid.h index 43ae3aa..85d6034 100644 --- a/include/gdn/rid.h +++ b/include/gdn/rid.h @@ -57,8 +57,6 @@ typedef struct { extern "C" { #endif -void GDAPI pandemonium_rid_new(pandemonium_rid *r_dest); - pandemonium_int GDAPI pandemonium_rid_get_id(const pandemonium_rid *p_self); void GDAPI pandemonium_rid_new_with_resource(pandemonium_rid *r_dest, const pandemonium_object *p_from); @@ -67,6 +65,8 @@ pandemonium_bool GDAPI pandemonium_rid_operator_equal(const pandemonium_rid *p_s pandemonium_bool GDAPI pandemonium_rid_operator_less(const pandemonium_rid *p_self, const pandemonium_rid *p_b); +void GDAPI pandemonium_rid_new(pandemonium_rid *r_dest); + #ifdef __cplusplus } #endif