#pragma once #include "ServerCommand.h" #include class ConsoleCommandDispatcher { private: map commandsByName; public: ~ConsoleCommandDispatcher(); void addCommand(ServerCommand *command); bool performCommand(const wstring& name, const wstring& args, ConsoleInputSource *src, MinecraftServer *server); const map& getCommands() const; };