Module godot.d.script
Implementation templates for new Godot-D native scripts
Functions
Name | Description |
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
Name | Description |
GodotScript
|
Base class for D native scripts. Native script instances will be attached to a
Godot (C++) object of Base class.
|
Global variables
Name | Type | Description |
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 .
|