yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
terrain_catalog_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_GAME_TERRAIN_CATALOG_COMMANDS_H_
2#define YAZE_CLI_HANDLERS_GAME_TERRAIN_CATALOG_COMMANDS_H_
4
5namespace yaze::cli::handlers {
7 public:
8 std::string GetName() const override { return "overworld-terrain-catalog"; }
9 std::string GetDescription() const {
10 return "Export a read-only area tile inventory with project terrain labels";
11 }
12 std::string GetUsage() const override {
13 return "overworld-terrain-catalog --map <hex> --out <new.json> "
14 "[--project-file <project.yaze>] [--catalog <labels.json>]";
15 }
16 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override;
17 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
18 resources::OutputFormatter& formatter) override;
19};
20} // namespace yaze::cli::handlers
21#endif
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
std::string GetName() const override
Get the command name.
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 GetUsage() const override
Get the command usage string.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.