CommandManager.h 404 B

123456789101112131415161718
  1. #ifndef COMMANDMANAGER_H
  2. #define COMMANDMANAGER_H
  3. #include "server/commands/CommandTypes.h"
  4. #include "server/commands/ServerState.h"
  5. #include "utils/HashMap.h"
  6. class CommandManager {
  7. typedef void (*Command)(ServerState&, const CommandArguments&);
  8. HashMap<CommandName, Command> commands;
  9. public:
  10. CommandManager();
  11. void execute(ServerState& sc, const RawCommand& rawCommand);
  12. };
  13. #endif