godot.api.script

Implementation templates for new Godot-D native scripts

Members

Classes

GodotScript
class GodotScript(Base)

Base class for D native scripts. Native script instances will be attached to a Godot (C++) object of Base class.

Functions

createFunc
void* createFunc(void* data)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyFunc
void destroyFunc(void* userData, void* instance)
Undocumented in source. Be warned that the author may not have intended to support it.
finalize
void finalize(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
isNull
bool isNull(T t)

Generic null check for all Godot classes. Limitations in D prevent using is null on Godot base classes because they're really struct wrappers.

memdelete
void memdelete(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
memnew
RefOrT!T memnew()

Allocate a new T and attach it to a new Godot object.

memnew
RefOrT!T memnew()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

___binding_create_callback
void* ___binding_create_callback(void* p_token, void* p_instance)
Undocumented in source. Be warned that the author may not have intended to support it.
___binding_free_callback
void ___binding_free_callback(void* p_token, void* p_instance, void* p_binding)
Undocumented in source. Be warned that the author may not have intended to support it.
___binding_reference_callback
GDExtensionBool ___binding_reference_callback(void* p_token, void* p_instance, GDExtensionBool p_reference)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_instanceCallbacks
GDExtensionInstanceBindingCallbacks _instanceCallbacks;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta