HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Text: Experiment with CPPIA scripting #36

Open dazKind opened 1 year ago

dazKind commented 1 year ago

Test classdb_unregister_extension_class and and check how Godot deals with it. This is necessary to allow for hot-reloading classes in a cool way

jakobwinkler commented 1 year ago

(Please disregard if this is unwarranted, I just thought I'd chip in with some related links).

If unregistering classes at runtime doesn't work out there's some discussion going on in other places I've been thinking about: https://github.com/godotengine/godot/issues/66231 https://github.com/godot-rust/gdextension/issues/1

I don't know how feasible implementing ScriptLanguageExtension would be, as mentioned in the Godot issue. It might also be worth talking to the rust people to see what their plan is?

dazKind commented 1 year ago

Thanks for your input. Quite an interesting read. It is definitely important to deal with classdb re-registration correctly.