ClassDBSingleton

Class information repository.

Provides access to metadata stored for every available class.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

canInstance
bool canInstance(String _class)

Returns true if you can instance objects from the specified class, false in other case.

classExists
bool classExists(String _class)

Returns whether the specified class is available or not.

classGetCategory
String classGetCategory(String _class)

Returns a category associated with the class for use in documentation and the Asset Library. Debug mode required.

classGetIntegerConstant
long classGetIntegerConstant(String _class, String name)

Returns the value of the integer constant name of class or its ancestry. Always returns 0 when the constant could not be found.

classGetIntegerConstantList
PoolStringArray classGetIntegerConstantList(String _class, bool no_inheritance)

Returns an array with the names all the integer constants of class or its ancestry.

classGetMethodList
Array classGetMethodList(String _class, bool no_inheritance)

Returns an array with all the methods of class or its ancestry if no_inheritance is false. Every element of the array is a Dictionary with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage). Note: In exported release builds the debug info is not available, so the returned dictionaries will contain only method names.

classGetProperty
Variant classGetProperty(GodotObject object, String property)

Returns the value of property of class or its ancestry.

classGetPropertyList
Array classGetPropertyList(String _class, bool no_inheritance)

Returns an array with all the properties of class or its ancestry if no_inheritance is false.

classGetSignal
Dictionary classGetSignal(String _class, String signal)

Returns the signal data of class or its ancestry. The returned value is a Dictionary with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).

classGetSignalList
Array classGetSignalList(String _class, bool no_inheritance)

Returns an array with all the signals of class or its ancestry if no_inheritance is false. Every element of the array is a Dictionary as described in classGetSignal.

classHasIntegerConstant
bool classHasIntegerConstant(String _class, String name)

Returns whether class or its ancestry has an integer constant called name or not.

classHasMethod
bool classHasMethod(String _class, String method, bool no_inheritance)

Returns whether class (or its ancestry if no_inheritance is false) has a method called method or not.

classHasSignal
bool classHasSignal(String _class, String signal)

Returns whether class or its ancestry has a signal called signal or not.

classSetProperty
GodotError classSetProperty(GodotObject object, String property, VariantArg2 value)

Sets property value of class to value.

getClassList
PoolStringArray getClassList()

Returns the names of all the classes available.

getInheritersFromClass
PoolStringArray getInheritersFromClass(String _class)

Returns the names of all the classes that directly or indirectly inherit from class.

getParentClass
String getParentClass(String _class)

Returns the parent class of class.

instance
Variant instance(String _class)

Creates an instance of class.

isClassEnabled
bool isClassEnabled(String _class)

Returns whether this class is enabled or not.

isParentClass
bool isParentClass(String _class, String inherits)

Returns whether inherits is an ancestor of class or not.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(ClassDBSingleton other)
opEquals
bool opEquals(typeof(null) n)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
ClassDBSingleton _new()

Construct a new instance of ClassDBSingleton. Note: use memnew!ClassDBSingleton instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta