feat(npc): ebreak support through external inst matching
This commit is contained in:
parent
55230247b2
commit
e99236f711
8 changed files with 97 additions and 25 deletions
|
@ -83,6 +83,12 @@ void Console::registerCommand(const std::string &s, CommandFunction f) {
|
|||
pimpl_->commands_[s] = f;
|
||||
}
|
||||
|
||||
void Console::removeCommands(const std::vector<std::string> sv) {
|
||||
for (auto const &s : sv) {
|
||||
pimpl_->commands_.erase(s);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> Console::getRegisteredCommands() const {
|
||||
std::vector<std::string> allCommands;
|
||||
for (auto &pair : pimpl_->commands_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue