godot.api.types

Templates for working with Godot's type system

Members

Aliases

DTypeOf
alias DTypeOf(C t) = DTypeOf!(GodotType(t))
Undocumented in source.
GodotType
alias GodotType = SumType!(TypeCategories)

A specific Godot type in one of these type categories: * A built-in class derived from GodotObject * A Script extending GodotObject (either in D or another Godot scripting language) * A Godot core type from the godot modules or a primitive (represented as a Variant.Type)

TypeCategories
alias TypeCategories = AliasSeq!(VariantType, BuiltInClass, Ref!Script)
real_t
alias real_t = double
Undocumented in source.
real_t
alias real_t = float
Undocumented in source.

Enums

GodotError
enum GodotError
Undocumented in source.

Functions

get
T get(GodotType type, T defaultValue)
isCategory
bool isCategory(GodotType type)

Is type in type category T?

Structs

BuiltInClass
struct BuiltInClass

Templates

DTypeOf
template DTypeOf(GodotType t)

D type of a compile-time GodotType

GodotTypeOf
template GodotTypeOf(T)

FIXME: GodotType can't currently work with String or Ref!Script at compile time, when they're not yet loaded from Godot. That also breaks DTypeOf GodotType of a compile-time D type. If T is indirectly compatible with Godot, this returns the Godot type T would be converted to when passed to Godot.

Variables

CMP_EPSILON
enum real_t CMP_EPSILON;
Undocumented in source.
CMP_EPSILON2
enum real_t CMP_EPSILON2;
Undocumented in source.
_PLANE_EQ_DOT_EPSILON
enum real_t _PLANE_EQ_DOT_EPSILON;
Undocumented in source.
_PLANE_EQ_D_EPSILON
enum real_t _PLANE_EQ_D_EPSILON;
Undocumented in source.

Meta