Implement new agent commands for resource listing and dungeon sprite retrieval
- Added `HandleResourceListCommand` to list resources by type and format (table or JSON). - Introduced `HandleDungeonListSpritesCommand` to retrieve and display sprites from specified dungeon rooms. - Updated command handling in `agent.cc` to support new subcommands. - Enhanced error handling for invalid inputs and missing ROM files. This commit expands the functionality of the z3ed agent, enabling users to interact with game resources and dungeon sprites more effectively.
This commit is contained in:
@@ -59,6 +59,12 @@ absl::Status Agent::Run(const std::vector<std::string>& arg_vec) {
|
||||
if (subcommand == "describe") {
|
||||
return agent::HandleDescribeCommand(subcommand_args);
|
||||
}
|
||||
if (subcommand == "resource-list") {
|
||||
return agent::HandleResourceListCommand(subcommand_args);
|
||||
}
|
||||
if (subcommand == "dungeon-list-sprites") {
|
||||
return agent::HandleDungeonListSpritesCommand(subcommand_args);
|
||||
}
|
||||
|
||||
return absl::InvalidArgumentError(std::string(agent::kUsage));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user