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

Method read_from_array

modules/multiplayer/multiplayer_debugger.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
267 synchronizer = int64_t(p_arr[p_offset]);
268 config = int64_t(p_arr[p_offset + 1]);
269 root_node = int64_t(p_arr[p_offset + 2]);
270 incoming_syncs = p_arr[p_offset + 3];
271 incoming_size = p_arr[p_offset + 4];
272 outgoing_syncs = p_arr[p_offset + 5];
273 outgoing_size = p_arr[p_offset + 6];
274 return true;
275}
276
277Array MultiplayerDebugger::ReplicationFrame::serialize() {
278 Array arr = { infos.size() * 7 };

Callers 1

deserializeMethod · 0.80

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected