CommandManager.h 444 B

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