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

Method get

core/object/script_language.cpp:699–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699bool PlaceHolderScriptInstance::get(const StringName &p_name, Variant &r_ret) const {
700 if (values.has(p_name)) {
701 r_ret = values[p_name];
702 return true;
703 }
704
705 if (constants.has(p_name)) {
706 r_ret = constants[p_name];
707 return true;
708 }
709
710 if (!script->is_placeholder_fallback_enabled()) {
711 Variant defval;
712 if (script->get_property_default_value(p_name, defval)) {
713 r_ret = defval;
714 return true;
715 }
716 }
717
718 return false;
719}
720
721void PlaceHolderScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const {
722 if (script->is_placeholder_fallback_enabled()) {

Callers 2

save_global_classesMethod · 0.45
updateMethod · 0.45

Calls 3

hasMethod · 0.45

Tested by

no test coverage detected