1#ifndef YAZE_SRC_CLI_HANDLERS_GAME_DUNGEON_EDIT_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_GAME_DUNGEON_EDIT_COMMANDS_H_
17 std::string
GetName()
const override {
return "dungeon-place-sprite"; }
19 return "Place a sprite in a dungeon room";
22 return "dungeon-place-sprite --room <hex> --id <hex> --x <int> --y <int> "
23 "[--subtype <int>] [--layer <0|1>] "
24 "[--write] [--format <json|text>]";
28 return parser.
RequireArgs({
"room",
"id",
"x",
"y"});
42 std::string
GetName()
const override {
return "dungeon-remove-sprite"; }
44 return "Remove a sprite from a dungeon room";
47 return "dungeon-remove-sprite --room <hex> "
48 "[--index <int> | --x <int> --y <int>] "
49 "[--write] [--format <json|text>]";
67 std::string
GetName()
const override {
return "dungeon-place-object"; }
69 return "Place a dungeon object in a room";
72 return "dungeon-place-object --room <hex> --id <hex> --x <int> --y <int> "
73 "[--size <int>] [--layer <0|1|2>] "
74 "[--write] [--format <json|text>]";
78 return parser.
RequireArgs({
"room",
"id",
"x",
"y"});
95 return "dungeon-set-collision-tile";
98 return "Set custom collision tiles in a dungeon room";
101 return "dungeon-set-collision-tile --room <hex> "
102 "--tiles <x,y,tile>[;<x,y,tile>...] "
103 "[--write] [--format <json|text>]";
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Place a dungeon object (track segment, door, etc.) in a room.
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.
std::string GetUsage() const override
Get the command usage string.
std::string GetName() const override
Get the command name.
Place a sprite in a dungeon room and optionally write to ROM.
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.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
Remove a sprite from a dungeon room by index or position.
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.
Set individual custom collision tiles in a dungeon room.
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.
std::string GetDescription() const
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.