| 1449 | } |
| 1450 | |
| 1451 | bool 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 | |
| 1464 | bool Variant::has_builtin_method(Variant::Type p_type, const StringName &p_method) { |
| 1465 | ERR_FAIL_INDEX_V(p_type, Variant::VARIANT_MAX, false); |