Skip to content

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

Description

@VladoCC

It's unclear what this create function should return:

GDNativeExtensionClassCreateInstance create_instance_func; /* this one is mandatory */

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions