Module godot.d.meta
Compile-time introspection of Godot types
Functions
Name | Description |
getDefaultValueFromAlias()
|
Get the Godot-compatible default value of a field in T.
|
getGodotObject(t)
|
Get the C++ Godot Object pointer of either a Godot Object OR a D native script.
|
Manifest constants
Name | Type | Description |
extends
|
|
Checks whether R is a subtype of ParentR by Godot's script inheritance system.
Both D script and C++ classes are accounted for.
If R and ParentR are the same, extends is true as well.
|
extendsGodotBaseClass
|
|
Determine if T is a D native script (extends a Godot base class).
|
isGodotBaseClass
|
|
Determine if T is a class originally from the Godot Engine (but *not* a new D
class registered to Godot).
|
isGodotClass
|
|
Determine if T is any Godot class (base C++ class or D native script, but NOT
a godot.core struct)
|
Aliases
Name | Type | Description |
GodotBaseClasses
|
T.BaseClasses
|
A list of all of T's base classes, both script and C++, ending with GodotObject.
|
GodotClass
|
T
|
Get the Godot class of R (the class of the owner for D native scripts)
|
godotDefaultInit
|
Alias!(Array.make)
|
Alias to default-constructed T, as an expression.
|
NonRef
|
T
|
Removes the Ref wrapper from R, if present
|
RefOrT
|
Ref!T
|
Adds the Ref wrapper to T, if T is a Reference type
|