| 467 | |
| 468 | |
| 469 | vector<PluginCommand> PluginCommand::GetValidList(const PluginCommandContext& ctxt) |
| 470 | { |
| 471 | vector<PluginCommand> commands = GetList(); |
| 472 | vector<PluginCommand> result; |
| 473 | for (auto& i : commands) |
| 474 | { |
| 475 | if (i.IsValid(ctxt)) |
| 476 | result.push_back(i); |
| 477 | } |
| 478 | return result; |
| 479 | } |
| 480 | |
| 481 | |
| 482 | bool PluginCommand::IsValid(const PluginCommandContext& ctxt) const |