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

Function SetPlayerGroup

src/openrct2/network/NetworkBase.cpp:3532–3539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3530 }
3531
3532 void SetPlayerGroup(uint32_t index, uint32_t groupindex)
3533 {
3534 auto& network = GetContext()->GetNetwork();
3535 Guard::IndexInRange(index, network.player_list);
3536 Guard::IndexInRange(groupindex, network.group_list);
3537
3538 network.player_list[index]->group = network.group_list[groupindex]->id;
3539 }
3540
3541 int32_t GetGroupIndex(uint8_t id)
3542 {

Callers 2

QueryMethod · 0.85
ExecuteMethod · 0.85

Calls 13

GetContextFunction · 0.85
IndexInRangeFunction · 0.85
GetModeFunction · 0.85
GetWindowManagerFunction · 0.85
FormatStringLegacyFunction · 0.85
AppendServerLogFunction · 0.85
GetPlayerByIDMethod · 0.80
GetGroupByIDMethod · 0.80
getOrAddUserMethod · 0.80
saveMethod · 0.80
InvalidateByNumberMethod · 0.80
ResultClass · 0.70

Tested by

no test coverage detected