David Snopek
6328728dc2
Allow forwarding from `ClassDB` to `ClassDBSingleton` to support enumerations
...
(cherry picked from commit e1b3b32db5
)
2024-05-17 16:57:33 -05:00
David Snopek
fff665e0f5
Give compile-time error if registering a class without its own `_bind_methods()` function
...
(cherry picked from commit ca46ef4d25
)
2024-05-17 16:55:41 -05:00
pupil1337
82ea3f74a4
Add static_assert() for register_class
...
(cherry picked from commit 1fa7a9cb19
)
2024-05-17 16:54:44 -05:00
Thaddeus Crews
9e48c45bfc
Enforce template syntax `typename` over `class`
...
(cherry picked from commit 87f5fb0691
)
2024-04-08 11:39:21 -05:00
Marc Gilleron
ed576f8318
Fix explicit namespaces in macros
...
(cherry picked from commit e607790647
)
2024-03-11 13:33:44 -05:00
David Snopek
9d813310bb
Add protections against registering classes that didn't use GDCLASS()
...
(cherry picked from commit a61cdc8860
)
2023-10-23 10:11:04 -05:00
David Snopek
f7ffc4fe4d
Automatically register only engine classes whose header has been included
...
(cherry picked from commit b507b3e591
)
2023-10-22 14:46:26 -05:00
A Thousand Ships
205beacc5b
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
...
(cherry picked from commit 1e5767693e
)
2023-10-09 08:42:16 -05:00
David Snopek
bc82ae8b0b
Add static methods to `ClassDB` for the methods bound to the `ClassDB` singleton
...
(cherry picked from commit 6f913563d8
)
2023-09-19 21:30:03 -05:00
Kehom
20be441026
Unregister custom classes in reverse registration order
2023-06-19 11:04:11 -03:00
Andy Maloney
db2394dbe7
Identifiers containing double underscore are reserved according to the C++ standard
...
Rename __* to _gde_*
https://timsong-cpp.github.io/cppwp/n3337/global.names
https://en.cppreference.com/w/cpp/language/identifiers
Identifiers appearing as a token or preprocessing token (i.e., not in user-defined-string-literal like operator ""id) (since C++11) of one of the following forms are reserved:
- identifiers with a double underscore anywhere;
- identifiers that begin with an underscore followed by an uppercase letter;
- in the global namespace, identifiers that begin with an underscore.
2023-06-15 20:45:01 -04:00
David Snopek
431e30bc32
Ensure GDExtension class is the correct type for the Godot engine class
2023-05-16 15:18:48 -05:00
David Snopek
a5c6ca5920
Update to load function pointers for GDExtension interface
2023-05-09 21:45:48 -05:00
Rémi Verschelde
931f1a3f34
Sync license copyright with upstream GH-70885
2023-01-10 16:15:31 +01:00
Jan Haller
fce753c05d
Extension header: amend const correctness of `p_args` parameters
2022-12-14 15:47:42 +01:00
Rémi Verschelde
bab247dcb6
Rename godot-headers to gdextension, move header to top folder
...
Changes the `<godot/gdextension_interface.h>` include to simply
`<gdextension_interface.h>`.
Refactor and better document the SCons and CMake logic around setting
the paths to the header and API JSON file.
2022-12-14 12:36:59 +01:00
Gilles Roudière
c02e644679
Rename GDNative to GDExtension
...
Non-exhaustive list of case-sensitive renames:
GDExtension -> GDNative
GDNATIVE -> GDEXTENSION
gdextension -> gdnative
ExtensionExtension -> Extension (for where there was GDNativeExtension)
EXTENSION_EXTENSION -> EXTENSION (for where there was GDNATIVE_EXTENSION)
gdnlib -> gdextension
gdn_interface -> gde_interface
gdni -> gde_interface
2022-12-12 11:06:38 +01:00
Emmanuel Leblond
fe86a94dcf
Fix const qualifier for parameters in GDExtension api functions
2022-12-03 00:27:07 +01:00
Emmanuel Leblond
b6ba0dca13
StringName is working fine with demo \o/
2022-11-08 21:44:33 +01:00
Emmanuel Leblond
a706a9ceb9
Remove now useless `_alloc_and_copy_cstr`
2022-11-08 21:44:31 +01:00
Emmanuel Leblond
e24b6b0e51
Use StringName in the whole GDExtension API instead of const char *
2022-11-08 21:44:31 +01:00
Ricardo Buring
01960ffc9f
Add support for virtual and abstract classes
2022-10-15 13:15:05 +02:00
Aaron Franke
592bd15c7a
Run scripts to format and make headers consistent
2022-10-09 01:47:07 -05:00
Rémi Verschelde
0eba81ef79
Merge pull request #876 from Daylily-Zeleen/Daylily-Zeleen/master
...
Add detail infos for binding error message.
2022-10-07 22:25:49 +02:00
daylilyzeleen
3e91ec1729
Add detail infos for binding error message.
2022-09-30 15:16:43 +08:00
Marc Gilleron
5de2c059d1
Fix deriving a custom class with virtual methods
2022-09-21 19:31:30 +01:00
bruvzg
36273baa7e
Change PropertyInfo members to String.
2022-09-14 08:41:09 +03:00
bruvzg
270ad28931
Add support for `_notification`, `_set`, `_get`, `_get_property_list`, `_property_can_revert`, `_property_get_revert`, and `_to_string` methods.
2022-08-22 12:59:38 +03:00
Yuri Sizov
fa111d7078
Add support for `property_*_revert` methods
2022-08-18 16:43:01 +03:00
bruvzg
713b122b84
Add support for BitField hint, sync API files.
2022-07-11 15:00:17 +03:00
bruvzg
031a83b0ea
[Method Bind] Add support for default argument values and static method binding. Sync headers.
2022-05-06 10:17:51 +03:00
bruvzg
817efdd484
Fix build after "Discern between VIRTUAL and ABSTRACT class bindings".
2022-03-15 13:43:12 +02:00
Rémi Verschelde
1632322ce0
Update copyright year
2022-03-15 10:17:53 +01:00
bruvzg
e36180f377
Port a bunch of Godot container templates to GDExtension.
2022-02-18 21:07:53 +02:00
Bradley Clemetson
76c4adb7f8
Normalized additional macros to ensure that everything works without client code needing using
2021-12-18 15:16:14 -08:00
Gilles Roudière
3fcb8a4d1e
Make extension instances create the corresponding godot object in their constructor
2021-12-03 15:37:49 +01:00
Bastiaan Olij
ef528d3a86
Rename interface to gdn_interface because it's a defined keyword under windows
2021-10-28 19:44:20 +11:00
Bastiaan Olij
0e3bc393d5
Fully register class on register_class call
2021-09-27 23:08:12 +10:00
Bastiaan Olij
e839199848
Add support for property groups
2021-09-27 23:08:11 +10:00
George Marques
aef0f1e248
Change initialization to allow custom level callbacks
...
Now it needs a callback for each level so custom logic (like loading
singletons) can be performed.
2021-09-27 23:08:10 +10:00
George Marques
a0634cca3f
Auto-bind virtual method overrides
2021-09-27 23:08:08 +10:00
George Marques
e4ed48976a
Replace bindgins to work with extensions
2021-09-27 23:08:08 +10:00