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

Method SyncInfo

modules/multiplayer/multiplayer_debugger.cpp:244–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242// ReplicationProfiler
243
244MultiplayerDebugger::SyncInfo::SyncInfo(MultiplayerSynchronizer *p_sync) {
245 ERR_FAIL_NULL(p_sync);
246 synchronizer = p_sync->get_instance_id();
247 if (p_sync->get_replication_config_ptr()) {
248 config = p_sync->get_replication_config_ptr()->get_instance_id();
249 }
250 if (p_sync->get_root_node()) {
251 root_node = p_sync->get_root_node()->get_instance_id();
252 }
253}
254
255void MultiplayerDebugger::SyncInfo::write_to_array(Array &r_arr) const {
256 r_arr.push_back(synchronizer);

Callers

nothing calls this directly

Calls 3

get_instance_idMethod · 0.45
get_root_nodeMethod · 0.45

Tested by

no test coverage detected