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

Method has

core/variant/array.cpp:496–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496bool Array::has(const Variant &p_value) const {
497 Variant value = p_value;
498 ERR_FAIL_COND_V(!_p->typed.validate(value, "use 'has'"), false);
499
500 return find(value) != -1;
501}
502
503void Array::remove_at(int p_pos) {
504 ERR_FAIL_COND_MSG(_p->read_only, "Array is in read-only state.");

Callers 15

add_constantMethod · 0.45
add_enum_constantMethod · 0.45
register_builtin_methodFunction · 0.45
has_methodMethod · 0.45
has_builtin_methodMethod · 0.45
has_constantMethod · 0.45
has_enumMethod · 0.45
parse_valueMethod · 0.45
evaluateMethod · 0.45
validated_evaluateMethod · 0.45
ptr_evaluateMethod · 0.45
evaluateMethod · 0.45

Calls 2

findFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected