yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_object_validate_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_DUNGEON_OBJECT_VALIDATE_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_DUNGEON_OBJECT_VALIDATE_COMMANDS_H
3
6
7namespace yaze::cli {
8
9namespace detail {
10
11zelda3::DimensionService::DimensionResult ClipSelectionBoundsToRoom(
12 int object_id, int size,
13 const zelda3::DimensionService::DimensionResult& bounds, int object_x,
14 int object_y);
15
16} // namespace detail
17
19 public:
20 std::string GetName() const override { return "dungeon-object-validate"; }
21
22 std::string GetDescription() const {
23 return "Validate dungeon object draw bounds against dimension table";
24 }
25
26 std::string GetUsage() const override {
27 return "dungeon-object-validate --rom <path> [--object <hex>] [--size <n>] "
28 "[--room <id>] [--report <path>] [--trace-out <path>] "
29 "[--format json|text] [--verbose]";
30 }
31
32 std::string GetDefaultFormat() const override { return "text"; }
33
34 std::string GetOutputTitle() const override {
35 return "Dungeon Object Validation";
36 }
37
38 Descriptor Describe() const override {
39 Descriptor desc;
40 desc.display_name = "dungeon-object-validate";
41 desc.summary =
42 "Trace dungeon object draws and compare bounds to selection "
43 "dimensions.";
44 desc.todo_reference = "todo#dungeon-object-validate";
45 return desc;
46 }
47
48 absl::Status ValidateArgs(const resources::ArgumentParser& parser) override {
49 (void)parser;
50 return absl::OkStatus();
51 }
52
53 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
54 resources::OutputFormatter& formatter) override;
55};
56
57} // namespace yaze::cli
58
59#endif // YAZE_CLI_HANDLERS_TOOLS_DUNGEON_OBJECT_VALIDATE_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:28
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 GetName() const override
Get the command name.
std::string GetUsage() const override
Get the command usage string.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
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.
zelda3::DimensionService::DimensionResult ClipSelectionBoundsToRoom(int object_id, int size, const zelda3::DimensionService::DimensionResult &bounds, int object_x, int object_y)
Namespace for the command line interface.