1#ifndef YAZE_SRC_CLI_HANDLERS_OVERWORLD_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_OVERWORLD_COMMANDS_H_
12 std::string
GetName()
const {
return "overworld-get-tile"; }
14 return "Read an overworld tile at map/tile coordinates";
17 return "overworld-get-tile --map <map_id> --x <x> --y <y>";
30 std::string
GetName()
const {
return "overworld-set-tile"; }
32 return "Write an overworld tile at map/tile coordinates";
35 return "overworld-set-tile --map <map_id> --x <x> --y <y> --tile <tile_id>";
39 return parser.
RequireArgs({
"map",
"x",
"y",
"tile"});
51 std::string
GetName()
const {
return "overworld-find-tile"; }
53 return "Find tiles by ID in overworld maps";
56 return "overworld-find-tile --tile <tile_id> [--format <json|text>]";
72 std::string
GetName()
const {
return "overworld-describe-map"; }
74 return "Get detailed description of an overworld map";
77 return "overworld-describe-map --screen <screen_id> [--format <json|text>]";
93 std::string
GetName()
const {
return "overworld-list-warps"; }
95 return "List all warps in overworld maps";
98 return "overworld-list-warps [--screen <screen_id>] [--format <json|text>]";
102 return absl::OkStatus();
114 std::string
GetName()
const {
return "overworld-list-sprites"; }
116 return "List all sprites in overworld maps";
119 return "overworld-list-sprites [--screen <screen_id>] [--format "
124 return absl::OkStatus();
136 std::string
GetName()
const {
return "overworld-list-items"; }
138 return "List all hidden item placements in overworld maps";
141 return "overworld-list-items [--screen <screen_id>] [--format "
146 return absl::OkStatus();
158 std::string
GetName()
const {
return "overworld-get-entrance"; }
160 return "Get entrance information from overworld";
163 return "overworld-get-entrance --entrance <entrance_id> [--format "
180 std::string
GetName()
const {
return "overworld-tile-stats"; }
182 return "Get tile usage statistics for overworld";
185 return "overworld-tile-stats [--screen <screen_id>] [--format <json|text>]";
189 return absl::OkStatus();
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Command handler for describing overworld maps.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
Command handler for finding tiles in overworld.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
std::string GetName() const
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for getting entrance information.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for listing items in overworld.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
std::string GetName() const
Get the command name.
Command handler for listing sprites in overworld.
std::string GetName() const
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for listing warps in overworld.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Command handler for getting tile statistics.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
Utility for parsing common CLI argument patterns.
absl::Status RequireArgs(const std::vector< std::string > &required) const
Validate that required arguments are present.
Base class for CLI command handlers.