yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
agent_command_registration.cc
Go to the documentation of this file.
2
3#include <utility>
4
7
8namespace yaze {
9namespace cli {
10namespace handlers {
11
13 auto handlers = CreateAgentCommandHandlers();
14 if (handlers.empty()) {
15 return;
16 }
17 CommandRegistry::Instance().RegisterHandlers(std::move(handlers));
18}
19
20} // namespace handlers
21} // namespace cli
22} // namespace yaze
static CommandRegistry & Instance()
void RegisterHandlers(std::vector< std::unique_ptr< resources::CommandHandler > > handlers)
Register a set of command handlers (idempotent)
std::vector< std::unique_ptr< resources::CommandHandler > > CreateAgentCommandHandlers()