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

Method IdxGetId

engine/Poseidon/Network/NetworkMsgContext.cpp:555–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553 NET_ERROR(item.type == NDTSentence);
554 TRANSFER(RadioSentence)
555}
556
557TMError NetworkMessageContext::IdxGetId(int index, NetworkId& id)
558{
559 if (_sending)
560 {
561 return TMGeneric;
562 }
563 TRANSFER_FORMAT
564 NET_ERROR(item.type == NDTRef);
565 const RefNetworkData& val = _msg->values[index];
566 CHECK_ASSIGN(valTyped, val, const RefNetworkDataTyped<NetworkId>)
567 id = valTyped.GetVal();
568 return TMOK;
569}
570

Callers 4

OnMessageMethod · 0.80
OnAskForMessageMethod · 0.80
OnObjectMessageMethod · 0.80
UpdateGroupLeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected