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

Method _parse_message

editor/debugger/script_editor_debugger.cpp:948–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread_id, const Array &p_data) {
949 emit_signal(SNAME("debug_data"), p_msg, p_data);
950
951 ParseMessageFunc *fn_ptr = parse_message_handlers.getptr(p_msg);
952 if (fn_ptr) {
953 (this->**fn_ptr)(p_thread_id, p_data);
954 } else {
955 int colon_index = p_msg.find_char(':');
956 ERR_FAIL_COND_MSG(colon_index < 1, "Invalid message received");
957
958 bool parsed = EditorDebuggerNode::get_singleton()->plugins_capture(this, p_msg, p_data);
959 if (!parsed) {
960 WARN_PRINT("Unknown message: " + p_msg);
961 }
962 }
963}
964
965HashMap<String, ScriptEditorDebugger::ParseMessageFunc> ScriptEditorDebugger::parse_message_handlers;
966

Callers

nothing calls this directly

Calls 3

find_charMethod · 0.80
plugins_captureMethod · 0.80
getptrMethod · 0.45

Tested by

no test coverage detected