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

Method write_to_array

modules/multiplayer/multiplayer_debugger.cpp:255–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void MultiplayerDebugger::SyncInfo::write_to_array(Array &r_arr) const {
256 r_arr.push_back(synchronizer);
257 r_arr.push_back(config);
258 r_arr.push_back(root_node);
259 r_arr.push_back(incoming_syncs);
260 r_arr.push_back(incoming_size);
261 r_arr.push_back(outgoing_syncs);
262 r_arr.push_back(outgoing_size);
263}
264
265bool MultiplayerDebugger::SyncInfo::read_from_array(const Array &p_arr, int p_offset) {
266 ERR_FAIL_COND_V(p_arr.size() - p_offset < 7, false);

Callers 1

serializeMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected