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

Method GetPlayers

engine/Poseidon/Network/NetworkClientActions.cpp:1485–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483 int index = type - NMTFirstVariant;
1484 if (index >= _formats.Size())
1485 {
1486 return nullptr;
1487 }
1488 return &_formats[index];
1489 }
1490}
1491
1492void NetworkClient::GetPlayers(AutoArray<NetPlayerInfo, MemAllocSA>& players)
1493{
1494 players.Resize(0);
1495 for (int i = 0; i < _identities.Size(); i++)
1496 {
1497 int index = players.Add();

Callers

nothing calls this directly

Calls 4

ResizeMethod · 0.45
SizeMethod · 0.45
AddMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected