MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetPlayerIteratorByID

Method GetPlayerIteratorByID

src/openrct2/network/NetworkBase.cpp:711–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709 }
710
711 auto NetworkBase::GetPlayerIteratorByID(uint8_t id) const
712 {
713 return std::find_if(
714 player_list.begin(), player_list.end(), [id](std::unique_ptr<Player> const& player) { return player->id == id; });
715 }
716
717 Player* NetworkBase::GetPlayerByID(uint8_t id) const
718 {

Callers 1

GetPlayerIndexFunction · 0.80

Calls 2

endMethod · 0.65
beginMethod · 0.45

Tested by

no test coverage detected