yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_allocation_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_ALLOCATION_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_ALLOCATION_COMMANDS_H
3
5
6namespace yaze::cli {
7
19 public:
20 std::string GetName() const override { return "overworld-allocation"; }
21
22 std::string GetUsage() const override {
23 return "overworld-allocation --rom <path> [--project <file.yaze>] "
24 "[--tail-check] [--symbols <file.sym>] [--format json|text]";
25 }
26
27 std::string GetDefaultFormat() const override { return "text"; }
28
29 std::string GetOutputTitle() const override { return "Overworld Allocation"; }
30
31 Descriptor Describe() const override {
32 Descriptor d;
33 d.display_name = "overworld-allocation";
34 d.summary =
35 "Map overworld area IDs $00-$BF (used/free, parent, size, map "
36 "pointer, per-area table coverage) and check whether "
37 "TailMapExpansion.asm is safe for this ROM.";
38 return d;
39 }
40
41 absl::Status ValidateArgs(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 yaze::cli
50
51#endif // YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_ALLOCATION_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 overworld area allocation map ($00-$BF) with an optional TailMapExpansion....
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetOutputTitle() const override
Get the output title for formatting.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
std::string GetUsage() const override
Get the command usage string.
std::string GetName() const override
Get the command name.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.