Type

Undocumented in source.

Constructors

this
this(string godotName)
Undocumented in source.
this
this(TypeStruct t)
Undocumented in source.

Members

Functions

acceptImplicit
bool acceptImplicit()

type should be taken as template arg by methods to allow implicit conversion in ptrcall

arrayType
Type arrayType()

returns TypedArray type

canBeCopied
bool canBeCopied()
Undocumented in source. Be warned that the author may not have intended to support it.
dCallParamPrefix
string dCallParamPrefix()

prefix for function parameter of this type

getEnumValueStr
string getEnumValueStr(string value)

returns value name from string literal, default values in api.json uses integers instead of qualified enum values

isBitfield
bool isBitfield()
Undocumented in source. Be warned that the author may not have intended to support it.
isCoreType
bool isCoreType()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnum
bool isEnum()
Undocumented in source. Be warned that the author may not have intended to support it.
isPointerType
bool isPointerType()
Undocumented in source. Be warned that the author may not have intended to support it.
isPrimitive
bool isPrimitive()
Undocumented in source. Be warned that the author may not have intended to support it.
isRef
bool isRef()
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedArray
bool isTypedArray()
Undocumented in source. Be warned that the author may not have intended to support it.
moduleName
string moduleName()
Undocumented in source. Be warned that the author may not have intended to support it.
opaqueType
string opaqueType()

Backing opaque type to use instead of raw GDNativeTypePtr

ptrCallArgPrefix
string ptrCallArgPrefix()

how to pass parameters of this type into ptrcall void** arg

stripConst
Type stripConst()
Undocumented in source. Be warned that the author may not have intended to support it.
toNativeVariantType
string toNativeVariantType()

Get variant type name for method calls

unqual
Type unqual()

strip constness, also strips indirections (despite the name)

Properties

dRef
string dRef [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

get
Type get(string godotName)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

enums
Type[] enums;
Undocumented in source.
typesByDName
Type[string] typesByDName;
Undocumented in source.
typesByGodotName
Type[string] typesByGodotName;
Undocumented in source.

Variables

dType
string dType;
Undocumented in source.
enumParent
Type enumParent;
Undocumented in source.
godotType
string godotType;
Undocumented in source.
isNativeStruct
bool isNativeStruct;
Undocumented in source.
objectClass
GodotClass objectClass;
Undocumented in source.
original
GodotClass original;
Undocumented in source.

Meta