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

Function CanPerformCommand

src/openrct2/network/NetworkBase.cpp:3861–3868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3859 }
3860
3861 bool CanPerformCommand(uint32_t groupindex, int32_t index)
3862 {
3863 auto& network = GetContext()->GetNetwork();
3864 if (groupindex >= network.group_list.size())
3865 return false;
3866
3867 return network.group_list[groupindex]->canPerformCommand(static_cast<GameCommand>(index)); // TODO
3868 }
3869
3870 void SetPickupPeep(uint8_t playerid, Peep* peep)
3871 {

Callers 2

onMouseUpMethod · 0.85

Calls 3

GetContextFunction · 0.85
canPerformCommandMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected