1#ifndef YAZE_SRC_CLI_HANDLERS_GAME_DUNGEON_COLLISION_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_GAME_DUNGEON_COLLISION_COMMANDS_H_
14 return "dungeon-list-custom-collision";
17 return "List ZScream-style custom collision tiles for a dungeon room";
20 return "dungeon-list-custom-collision --room <room_id> "
21 "[--tiles <hex,hex,...>] [--nonzero] [--all] [--format <json|text>]";
36 return "dungeon-export-custom-collision-json";
39 return "Export dungeon custom collision maps to JSON";
42 return "dungeon-export-custom-collision-json --out <path> "
43 "[--room <room_id> | --rooms <hex,hex,...> | --all] "
44 "[--report <path>] [--sandbox] "
45 "[--format <json|text>]";
63 return "dungeon-import-custom-collision-json";
66 return "Validate custom collision JSON with --dry-run; otherwise import "
67 "and immediately save the active ROM (--sandbox saves only its "
71 return "dungeon-import-custom-collision-json --in <path> [--replace-all] "
72 "[--force] [--dry-run [--report <path>]] "
73 "[--sandbox | --mock-rom] "
74 "[--format <json|text>]";
87 return "dungeon-export-water-fill-json";
90 return "Export dungeon water fill zones to JSON";
93 return "dungeon-export-water-fill-json --out <path> "
94 "[--room <room_id> | --rooms <hex,hex,...> | --all] "
95 "[--report <path>] [--sandbox] "
96 "[--format <json|text>]";
114 return "dungeon-import-water-fill-json";
117 return "Validate water-fill JSON with --dry-run; otherwise import and "
118 "immediately save the active ROM (--sandbox saves only its copy)";
121 return "dungeon-import-water-fill-json --in <path> "
122 "[--dry-run [--report <path>]] [--strict-masks] "
123 "[--sandbox | --mock-rom] "
124 "[--format <json|text>]";
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
std::string GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
absl::Status ExecuteWithContext(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter, const resources::CommandInvocationContext &invocation_context) override
Execute with immutable, invocation-scoped ROM path identity.
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.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
absl::Status ExecuteWithContext(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter, const resources::CommandInvocationContext &invocation_context) override
Execute with immutable, invocation-scoped ROM path identity.
std::string GetDescription() const
std::string GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
std::string GetUsage() const override
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
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.
std::string GetDescription() const
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.
std::string GetName() const override
Get the command name.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const override
Get the command name.
std::string GetUsage() const override
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.
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.