MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _get

Method _get

modules/gdscript/gdscript.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool GDScriptNativeClass::_get(const StringName &p_name, Variant &r_ret) const {
77 bool ok;
78 int64_t v = ClassDB::get_integer_constant(name, p_name, &ok);
79
80 if (ok) {
81 r_ret = v;
82 return true;
83 }
84
85 MethodBind *method = ClassDB::get_method(name, p_name);
86 if (method && method->is_static()) {
87 // Native static method.
88 r_ret = Callable(this, p_name);
89 return true;
90 }
91
92 return false;
93}
94
95void GDScriptNativeClass::_bind_methods() {
96 ClassDB::bind_method(D_METHOD("new"), &GDScriptNativeClass::_new);

Callers

nothing calls this directly

Calls 7

GDScriptRPCCallableClass · 0.85
CallableClass · 0.50
VariantClass · 0.50
is_staticMethod · 0.45
findMethod · 0.45
callpMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected