godot-headers icon indicating copy to clipboard operation
godot-headers copied to clipboard

Header does not provide information on what is expected from the object produced by GDExtension to be a valid Godot object

Open VladoCC opened this issue 2 years ago • 1 comments

It's unclear what this create function should return: https://github.com/godotengine/godot-headers/blob/e00386d464f87e39d8cc15fecde34802bb0f0200/godot/gdnative_interface.h#L228

But looking at the code in main godot repo, which handles this objects, it's obvious that there are specific requirement, including functions this object should have. Godot-cpp is complient with it as it appears. Thus, to me it seems like it's important to cover this information in the header file. Be it a comment or (preferably) a struct.

VladoCC avatar Jul 11 '22 13:07 VladoCC

I'd make a PR on it, if somebody can just give me description of this requirements

VladoCC avatar Jul 11 '22 23:07 VladoCC