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

Method get_indexed

core/object/object.cpp:507–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507Variant Object::get_indexed(const Vector<StringName> &p_names, bool *r_valid) const {
508 if (p_names.is_empty()) {
509 if (r_valid) {
510 *r_valid = false;
511 }
512 return Variant();
513 }
514 bool valid = false;
515
516 Variant current_value = get(p_names[0], &valid);
517 for (int i = 1; i < p_names.size(); i++) {
518 current_value = current_value.get_named(p_names[i], valid);
519
520 if (!valid) {
521 break;
522 }
523 }
524 if (r_valid) {
525 *r_valid = valid;
526 }
527
528 return current_value;
529}
530
531void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) const {
532 if (script_instance && p_reversed) {

Callers 12

captureMethod · 0.80
tween_propertyMethod · 0.80
startMethod · 0.80
stepMethod · 0.80
PropertyTweenerMethod · 0.80
get_stateMethod · 0.80
_watch_changesMethod · 0.80
insert_node_value_keyMethod · 0.80
_find_hint_for_trackMethod · 0.80
test_string.hFile · 0.80

Calls 5

get_namedMethod · 0.80
getFunction · 0.70
sizeMethod · 0.65
VariantClass · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected