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

Method canPerformCommand

src/openrct2/network/NetworkGroup.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 bool NetworkGroup::canPerformCommand(GameCommand command) const
125 {
126 Permission action = NetworkActions::findCommand(command);
127 if (action != Permission::count)
128 {
129 return canPerformAction(action);
130 }
131 return false;
132 }
133} // namespace OpenRCT2::Network
134
135#endif

Callers 2

CanPerformCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected