GeneralCommands.cpp 500 B

123456789101112131415161718
  1. #include <iostream>
  2. #include "server/commands/GeneralCommands.h"
  3. void GeneralCommands::test(IGameServer& gs, ICommandSource& cs, const std::vector<std::string>& args)
  4. {
  5. std::cout << "test command" << std::endl;
  6. for(unsigned long i = 0; i < args.size(); i++)
  7. {
  8. std::cout << " - " << args[i] << std::endl;
  9. }
  10. }
  11. void GeneralCommands::stop(IGameServer& gs, ICommandSource& cs, const std::vector<std::string>& args)
  12. {
  13. std::cout << cs.isServer() << std::endl;
  14. gs.stop();
  15. }