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

Method get_default_value

modules/gdscript/gdscript_warning.cpp:188–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188int GDScriptWarning::get_default_value(Code p_code) {
189 ERR_FAIL_INDEX_V_MSG(p_code, WARNING_MAX, WarnLevel::IGNORE, "Getting default value of invalid warning code.");
190 return default_warning_levels[p_code];
191}
192
193PropertyInfo GDScriptWarning::get_property_info(Code p_code) {
194 return PropertyInfo(Variant::INT, get_settings_path_from_code(p_code), PROPERTY_HINT_ENUM, "Ignore,Warn,Error");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected