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

Function GetPlayerPing

src/openrct2/network/NetworkBase.cpp:3403–3409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3401 }
3402
3403 int32_t GetPlayerPing(uint32_t index)
3404 {
3405 auto& network = GetContext()->GetNetwork();
3406 Guard::IndexInRange(index, network.player_list);
3407
3408 return network.player_list[index]->ping;
3409 }
3410
3411 int32_t GetPlayerID(uint32_t index)
3412 {

Callers 3

ping_getMethod · 0.85
playersScrollPaintMethod · 0.85
onDrawOverviewMethod · 0.85

Calls 2

GetContextFunction · 0.85
IndexInRangeFunction · 0.85

Tested by

no test coverage detected