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

Function cSrvSetCreatureLevel

source/modes/ConsoleCommands.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323Command::Result cSrvSetCreatureLevel(const Command::ArgumentList_t& args, ConsoleInterface& c, GameMap& gameMap)
324{
325 if(args.size() < 3)
326 return Command::Result::INVALID_ARGUMENT;
327
328 const std::string& name = args[1];
329 uint32_t level = Helper::toUInt32(args[2]);
330 gameMap.consoleSetLevelCreature(name, level);
331 return Command::Result::SUCCESS;
332}
333
334Command::Result cCircleAround(const Command::ArgumentList_t& args, ConsoleInterface& c, AbstractModeManager&)
335{

Callers

nothing calls this directly

Calls 2

toUInt32Function · 0.85

Tested by

no test coverage detected