#ifndef COMMANDMANAGER_H #define COMMANDMANAGER_H #include #include #include "server/commands/ICommandSource.h" class CommandManager { public: typedef void (*Command) (IGameServer&, ICommandSource&, const std::vector&); CommandManager(); void execute(IGameServer& gs, ICommandSource& cs, const std::string& rawCommand) const; private: std::unordered_map commands; void registerCommand(const std::string& name, Command command); }; #endif