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

Method init_node

modules/multiplayer/multiplayer_debugger.cpp:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void MultiplayerDebugger::RPCProfiler::init_node(const ObjectID p_node) {
201 if (rpc_node_data.has(p_node)) {
202 return;
203 }
204 rpc_node_data.insert(p_node, RPCNodeInfo());
205 rpc_node_data[p_node].node = p_node;
206 rpc_node_data[p_node].node_path = String(ObjectDB::get_instance<Node>(p_node)->get_path());
207}
208
209void MultiplayerDebugger::RPCProfiler::toggle(bool p_enable, const Array &p_opts) {
210 rpc_node_data.clear();

Callers

nothing calls this directly

Calls 5

RPCNodeInfoClass · 0.85
StringClass · 0.50
hasMethod · 0.45
insertMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected