|
@@ -399,6 +399,8 @@ typedef struct {
|
|
|
void *class_userdata; // Per-class user data, later accessible in instance bindings.
|
|
|
} GDExtensionClassCreationInfo4;
|
|
|
|
|
|
+typedef GDExtensionClassCreationInfo4 GDExtensionClassCreationInfo5;
|
|
|
+
|
|
|
typedef void *GDExtensionClassLibraryPtr;
|
|
|
|
|
|
/* Passed a pointer to a PackedStringArray that should be filled with the classes that may be used by the GDExtension. */
|
|
@@ -2943,6 +2945,7 @@ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass3)(GDExtensionCl
|
|
|
/**
|
|
|
* @name classdb_register_extension_class4
|
|
|
* @since 4.4
|
|
|
+ * @deprecated in Godot 4.5. Use `classdb_register_extension_class5` instead.
|
|
|
*
|
|
|
* Registers an extension class in the ClassDB.
|
|
|
*
|
|
@@ -2955,6 +2958,21 @@ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass3)(GDExtensionCl
|
|
|
*/
|
|
|
typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass4)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_parent_class_name, const GDExtensionClassCreationInfo4 *p_extension_funcs);
|
|
|
|
|
|
+/**
|
|
|
+ * @name classdb_register_extension_class5
|
|
|
+ * @since 4.5
|
|
|
+ *
|
|
|
+ * Registers an extension class in the ClassDB.
|
|
|
+ *
|
|
|
+ * Provided struct can be safely freed once the function returns.
|
|
|
+ *
|
|
|
+ * @param p_library A pointer the library received by the GDExtension's entry point function.
|
|
|
+ * @param p_class_name A pointer to a StringName with the class name.
|
|
|
+ * @param p_parent_class_name A pointer to a StringName with the parent class name.
|
|
|
+ * @param p_extension_funcs A pointer to a GDExtensionClassCreationInfo2 struct.
|
|
|
+ */
|
|
|
+typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass5)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_parent_class_name, const GDExtensionClassCreationInfo5 *p_extension_funcs);
|
|
|
+
|
|
|
/**
|
|
|
* @name classdb_register_extension_class_method
|
|
|
* @since 4.1
|