MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IdxGetIds

Method IdxGetIds

engine/Poseidon/Network/NetworkMsgContext.cpp:569–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 id = valTyped.GetVal();
568 return TMOK;
569}
570
571TMError NetworkMessageContext::IdxGetIds(int index, AutoArray<NetworkId>& array)
572{
573 if (_sending)
574 {
575 return TMGeneric;
576 }
577 TRANSFER_FORMAT
578 NET_ERROR(item.type == NDTRefArray);
579 const RefNetworkData& val = _msg->values[index];
580 CHECK_ASSIGN(valTyped, val, const RefNetworkDataTyped<AutoArray<NetworkId>>)
581 array = valTyped.GetVal();
582 return TMOK;
583}
584

Callers 2

OnMessageMethod · 0.80
UpdateGroupLeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected