godot.d.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(godot_object self, void* methodData)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyFunc
void destroyFunc(godot_object self, void* methodData, void* userData)
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.

Structs

NativeScriptTag
struct NativeScriptTag(T)

Static storage for a D script's typetag.

Templates

NativeScriptTemplate
template NativeScriptTemplate(T)

Storage for the NativeScript associated with each D class. Workflow using the editor is to create a .gdns NativeScript for each class, but this serves the opposite purpose: assigning a Script to D classes created from D with memnew.

Meta