| 697 | } |
| 698 | |
| 699 | bool 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 | |
| 721 | void PlaceHolderScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const { |
| 722 | if (script->is_placeholder_fallback_enabled()) { |
no test coverage detected