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

Function GetPlayerLastActionCoord

src/openrct2/network/NetworkBase.cpp:3486–3492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3484 }
3485
3486 CoordsXYZ GetPlayerLastActionCoord(uint32_t index)
3487 {
3488 auto& network = GetContext()->GetNetwork();
3489 Guard::IndexInRange(index, GetContext()->GetNetwork().player_list);
3490
3491 return network.player_list[index]->lastActionCoord;
3492 }
3493
3494 void SetPlayerLastActionCoord(uint32_t index, const CoordsXYZ& coord)
3495 {

Callers 2

UpdateViewportMethod · 0.85
onMouseUpOverviewMethod · 0.85

Calls 2

GetContextFunction · 0.85
IndexInRangeFunction · 0.85

Tested by

no test coverage detected