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