| 242 | // ReplicationProfiler |
| 243 | |
| 244 | MultiplayerDebugger::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 | |
| 255 | void MultiplayerDebugger::SyncInfo::write_to_array(Array &r_arr) const { |
| 256 | r_arr.push_back(synchronizer); |
nothing calls this directly
no test coverage detected