Skip to content

Builder API to register classes, functions, properties, signals #4

Open
@Bromeon

Description

@Bromeon

Functionality that is currently available through proc-macros should ideally be exposed in a programmatic builder API, too.

Some challenges:

  • The proc-macros combined with the plugin system detect very fine-grained customization, e.g. every single method in GodotExt.
    • This would have to be manually annotated in a builder, possibly using static type information (generic arguments).
  • Some of the traits and functions generated by proc-macros are internal.
    • The builder API could be more high-level and stable.
  • Functions are rather verbose to register through builders, with generic-tuples. Think about ways to provide a simple interface.
    • In GDNative, this was done via Method trait, which is very flexible and general, but required full implementation for every single type. This might serve as a basis, with more higher-level concretizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: registerRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the libraryhardOpposite of "good first issue": needs deeper know-how and significant design work.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions