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

Method has_method

core/variant/variant_call.cpp:1451–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449}
1450
1451bool Variant::has_method(const StringName &p_method) const {
1452 if (type == OBJECT) {
1453 Object *obj = get_validated_object();
1454 if (!obj) {
1455 return false;
1456 }
1457
1458 return obj->has_method(p_method);
1459 }
1460
1461 return builtin_method_info[type].has(p_method);
1462}
1463
1464bool Variant::has_builtin_method(Variant::Type p_type, const StringName &p_method) {
1465 ERR_FAIL_INDEX_V(p_type, Variant::VARIANT_MAX, false);

Callers 1

is_validMethod · 0.45

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected