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

Method _put_msg

editor/debugger/script_editor_debugger.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79using CameraOverride = EditorDebuggerNode::CameraOverride;
80
81void ScriptEditorDebugger::_put_msg(const String &p_message, const Array &p_data, uint64_t p_thread_id) {
82 ERR_FAIL_COND(p_thread_id == Thread::UNASSIGNED_ID);
83 if (is_session_active()) {
84 Array msg = { p_message, p_thread_id, p_data };
85 Error err = peer->put_message(msg);
86 ERR_FAIL_COND_MSG(err != OK, vformat("Failed to send message %d", err));
87 }
88}
89
90void ScriptEditorDebugger::debug_copy() {
91 String msg = reason->get_text();

Callers 1

req_godot_put_msgMethod · 0.45

Calls 2

vformatFunction · 0.85
put_messageMethod · 0.45

Tested by

no test coverage detected