[−][src]Module gdnative::init
Types and functionalities to declare and initialize gdnative classes.
API endpoints
Three endpoints are automatically invoked by the engine during startup and shutdown:
All three must be present.
Registering script classes
To register script classes, call InitHandle::add_class
or InitHandle::add_tool_class
in your godot_nativescript_init
callback:
ⓘThis example is not tested
// - snip - fn init(handle: gdnative::init::InitHandle) { handle.add_class::<HelloWorld>(); } godot_nativescript_init!(init); // - snip -
For full examples, see examples
in the godot-rust repository.
Modules
property | Property registration. |
Structs
ClassBuilder | |
ClassDescriptor | Deprecated |
ExportInfo | Metadata about the exported property. |
InitHandle | A handle that can register new classes to the engine during initialization. |
PropertyBuilder | Builder type used to register a property on a |
PropertyUsage | |
ScriptMethod | |
ScriptMethodAttributes | |
Signal | |
SignalArgument |
Enums
RpcMode |
Traits
Export | Trait for exportable types. |
Type Definitions
ScriptConstructorFn | Deprecated |
ScriptDestructorFn | Deprecated |
ScriptMethodFn |