1234567891011121314151617181920 |
- #ifndef COMMANDMANAGER_H
- #define COMMANDMANAGER_H
- #include "server/commands/ServerState.h"
- #include "server/commands/CommandTypes.h"
- #include "gaming-core/utils/HashMap.h"
- class CommandManager {
- public:
- CommandManager();
- void execute(ServerState& sc, const RawCommand& rawCommand);
-
- private:
- typedef void (*Command) (ServerState&, const CommandArguments&);
- HashMap<CommandName, Command, 16> commands;
- };
- #endif
|