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

Method FindIdentity

engine/Poseidon/Network/NetworkMisc.cpp:845–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843 {
844 NetworkLocalMessageInfo& info = _receivedLocalMessages[i];
845 OnMessage(info.from, info.msg, info.type);
846 }
847 _receivedLocalMessages.Resize(0);
848}
849
850const PlayerRole* NetworkComponent::FindPlayerRole(int player) const
851{
852 for (int i = 0; i < _playerRoles.Size(); i++)
853 {
854 const PlayerRole& role = _playerRoles[i];
855 if (role.player == player)
856 {
857 return &role;
858 }
859 }

Callers 12

BeginArcadeMethod · 0.80
GetPlayerStateFunction · 0.80
UpdateMethod · 0.80
OnLBDragMethod · 0.80
OnSimulateMethod · 0.80
UpdatePlayerInfoMethod · 0.80
GetPlayerStateFunction · 0.80
DrawItemMethod · 0.80
OnButtonClickedMethod · 0.80
OnSimulateMethod · 0.80
OnSimulateMethod · 0.80
GetFullPlayerNameFunction · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected