-
-bool
-PlayerStatus::consoleCommand(std::string command, std::vector<std::string> arguments)
-{
- if (command == "coins") {
- if ((arguments.size() < 1) || (!Console::string_is<int>(arguments[0]))) {
- log_info << "Usage: coins <number>" << std::endl;
- } else {
- coins = Console::string_to<int>(arguments[0]);
- }
- return true;
- }
- return false;
-}