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

Method plugins_capture

editor/debugger/editor_debugger_node.cpp:926–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924}
925
926bool EditorDebuggerNode::plugins_capture(ScriptEditorDebugger *p_debugger, const String &p_message, const Array &p_data) {
927 int session_index = tabs->get_tab_idx_from_control(p_debugger);
928 ERR_FAIL_COND_V(session_index < 0, false);
929 int colon_index = p_message.find_char(':');
930 ERR_FAIL_COND_V_MSG(colon_index < 1, false, "Invalid message received.");
931
932 const String cap = p_message.substr(0, colon_index);
933 bool parsed = false;
934 for (Ref<EditorDebuggerPlugin> plugin : debugger_plugins) {
935 if (plugin->has_capture(cap)) {
936 parsed |= plugin->capture(p_message, p_data, session_index);
937 }
938 }
939 return parsed;
940}

Callers 1

_parse_messageMethod · 0.80

Calls 5

find_charMethod · 0.80
substrMethod · 0.80
has_captureMethod · 0.45
captureMethod · 0.45

Tested by

no test coverage detected