godot.d.register

Initialization, termination, and registration of D libraries in Godot

Members

Aliases

GodotInitOptions
alias GodotInitOptions = const(godot_gdnative_init_options*)
Undocumented in source.
GodotTerminateOptions
alias GodotTerminateOptions = const(godot_gdnative_terminate_options*)
Undocumented in source.

Enums

NoDRuntime
enum NoDRuntime

Pass this enum to GodotNativeInit and GodotNativeTerminate to skip D runtime initialization/termination.

Functions

register
void register(void* handle, GDNativeLibrary lib)

Register a class and all its @GodotMethod member functions into Godot.

Mixin templates

GodotNativeLibrary
mixintemplate GodotNativeLibrary(string symbolPrefix, Args...)

This mixin will generate the GDNative C interface functions for this D library. Pass to it a name string for the library, followed by the GodotScript types to register, functions to call, and other options to configure Godot-D.

Meta