CommandManager.h 435 B

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