godot-cpp/godot-headers-temp
Fabio Alessandrelli b4632e317d Fix creation (and godot-side deletion) of extended objects.
Proper initialization for godot-cpp classes with memnew.

Extension classes (i.e. the `GDCLASS` macro) behave differently from
regular wrapped classes, and requires Godot to initialize them during
object construction.

This commit update the GDCLASS macro to not create/destroy the instance
during the bindings callback, but during the extension callbacks.

When setting the object instance, the bindings instance is set to the
pointer of the extension instance so that it can later be retrieved
normally via `object_get_instance_bindings`.
2021-09-27 23:08:11 +10:00
..
godot Fix creation (and godot-side deletion) of extended objects. 2021-09-27 23:08:11 +10:00
README.md Fix print file list 2021-09-27 23:08:10 +10:00
extension_api.json Set initialization level to CORE 2021-09-27 23:08:10 +10:00

README.md

Temporary headers

The godot-headers repository will eventually be updated to latest master but for now use this hardcoded copy.

Based on 04c64b59a12a0ea9a2dfa153c630693c7391827d