#pragma once #include #include #include #include namespace dchat { using CommandHandlerFunc = std::function &args)>; class Command { public: static bool add(const std::string &cmd, CommandHandlerFunc handlerFunc); static bool call(const std::string &cmd, const std::vector &args); static const std::unordered_map& getCommands(); }; }