yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sprite_doctor_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_SPRITE_DOCTOR_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_SPRITE_DOCTOR_COMMANDS_H
3
5
6namespace yaze {
7namespace cli {
8
19 public:
20 std::string GetName() const override { return "sprite-doctor"; }
21
22 std::string GetUsage() const override {
23 return "sprite-doctor [--room <id>] [--all] [--verbose] [--format json|text]";
24 }
25
26 std::string GetDefaultFormat() const override { return "text"; }
27
28 std::string GetOutputTitle() const override { return "Sprite Doctor"; }
29
30 bool RequiresRom() const override { return true; }
31
32 Descriptor Describe() const override {
33 Descriptor desc;
34 desc.display_name = "sprite-doctor";
35 desc.summary =
36 "Validate sprite tables, graphics pointers, and common issues.";
37 return desc;
38 }
39
40 absl::Status ValidateArgs(
41 const resources::ArgumentParser& parser) override {
42 return absl::OkStatus();
43 }
44
45 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
46 resources::OutputFormatter& formatter) override;
47};
48
49} // namespace cli
50} // namespace yaze
51
52#endif // YAZE_CLI_HANDLERS_TOOLS_SPRITE_DOCTOR_COMMANDS_H
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
Sprite doctor command for validating sprite tables and data.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetOutputTitle() const override
Get the output title for formatting.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
std::string GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.