Module godot.d.script

Implementation templates for new Godot-D native scripts

Functions

NameDescription
isNull(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.
memnew() Allocate a new T and attach it to a new Godot object.

Classes

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

Global variables

NameTypeDescription
NativeScriptTemplate godot.d.reference.Ref!(godot.nativescript.NativeScript) 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.