| 29 | } |
| 30 | |
| 31 | void CommandManager::registerCommand(std::string_view _name, CommandDelegate::IDelegate* _delegate) |
| 32 | { |
| 33 | auto it = mDelegates.find(_name); |
| 34 | if (it == mDelegates.end()) |
| 35 | it = mDelegates.emplace(_name, CommandDelegate()).first; |
| 36 | it->second = _delegate; |
| 37 | } |
| 38 | |
| 39 | void CommandManager::unregisterCommand(std::string_view _name) |
| 40 | { |
no test coverage detected