yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_sheet_inventory_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_GRAPHICS_GFX_SHEET_INVENTORY_COMMANDS_H_
2#define YAZE_CLI_HANDLERS_GRAPHICS_GFX_SHEET_INVENTORY_COMMANDS_H_
3
5
6namespace yaze {
7namespace cli {
8
19 public:
20 std::string GetName() const override { return "gfx-sheet-inventory"; }
21
22 std::string GetUsage() const override {
23 return "gfx-sheet-inventory [--reserved 0x7B,0x7C] [--flagged 0xD4,0xD6] "
24 "[--labels-csv <Spritesets.csv>] [--out <file.json>] "
25 "[--format json|text]";
26 }
27
28 std::string GetDefaultFormat() const override { return "json"; }
29
30 std::string GetOutputTitle() const override {
31 return "Graphics Sheet Inventory";
32 }
33
34 bool RequiresRom() const override { return true; }
35
36 Descriptor Describe() const override {
37 Descriptor desc;
38 desc.display_name = "gfx-sheet-inventory";
39 desc.summary =
40 "List graphics sheets with free 16x16 blocks, reserved sheets, and "
41 "the blocksets, spritesets, areas and rooms that use them.";
42 return desc;
43 }
44
45 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override {
46 return absl::OkStatus();
47 }
48
49 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
50 resources::OutputFormatter& formatter) override;
51};
52
53} // namespace cli
54} // namespace yaze
55
56#endif // YAZE_CLI_HANDLERS_GRAPHICS_GFX_SHEET_INVENTORY_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:49
Read-only inventory of graphics sheets: storage, empty 16x16 blocks, reserved/flagged sheets,...
std::string GetOutputTitle() const override
Get the output title for formatting.
std::string GetUsage() const override
Get the command usage string.
bool RequiresRom() const override
Check if the command requires a loaded ROM.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
std::string GetName() const override
Get the command name.
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.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.