MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / executeClient

Method executeClient

source/modes/Command.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <algorithm>
21
22Command::Result Command::executeClient(const ArgumentList_t& argumentList, ModeType mode,
23 ConsoleInterface& consoleInterface, AbstractModeManager& modeManager)
24{
25 if(isAllowedInMode(mode))
26 {
27 return mCommandClient(argumentList, consoleInterface, modeManager);
28 }
29 return Result::WRONG_MODE;
30}
31
32Command::Result Command::executeServer(const ArgumentList_t& args, ConsoleInterface& c, GameMap& gameMap)
33{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected