yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::handlers::DungeonGroupCommandHandler Class Reference

Command handler for organizing rooms by dungeon ID. More...

#include <dungeon_group_commands.h>

Inheritance diagram for yaze::cli::handlers::DungeonGroupCommandHandler:
Collaboration diagram for yaze::cli::handlers::DungeonGroupCommandHandler:

Public Member Functions

std::string GetName () const
 Get the command name.
 
std::string GetDescription () const
 
std::string GetUsage () const
 Get the command usage string.
 
absl::Status ValidateArgs (const resources::ArgumentParser &) override
 Validate command arguments.
 
absl::Status Execute (Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
 Execute the command business logic.
 
- Public Member Functions inherited from yaze::cli::resources::CommandHandler
virtual ~CommandHandler ()=default
 
absl::Status Run (const std::vector< std::string > &args, Rom *rom_context, std::string *captured_output=nullptr)
 Execute the command.
 
virtual Descriptor Describe () const
 Provide metadata for TUI/help summaries.
 
virtual bool RequiresRom () const
 Check if the command requires a loaded ROM.
 
virtual bool RequiresLabels () const
 Check if the command requires ROM labels.
 
virtual void SetProjectContext (project::YazeProject *project)
 Set the YazeProject context. Default implementation does nothing, override if tool needs project info.
 
virtual void SetAsarWrapper (core::AsarWrapper *asar_wrapper)
 Set the AsarWrapper context. Default implementation does nothing, override if tool needs Asar access.
 
virtual void SetRomContext (Rom *rom)
 Set the ROM context for tools that need ROM access. Default implementation stores the ROM pointer for subclass use.
 
virtual void SetSymbolProvider (emu::debug::SymbolProvider *provider)
 Set the SymbolProvider context.
 

Additional Inherited Members

- Protected Member Functions inherited from yaze::cli::resources::CommandHandler
virtual std::string GetDefaultFormat () const
 Get the default output format ("json" or "text")
 
virtual std::string GetOutputTitle () const
 Get the output title for formatting.
 
- Protected Attributes inherited from yaze::cli::resources::CommandHandler
Romrom_ = nullptr
 
emu::debug::SymbolProvidersymbol_provider_ = nullptr
 
project::YazeProjectproject_ = nullptr
 
core::AsarWrapperasar_wrapper_ = nullptr
 

Detailed Description

Command handler for organizing rooms by dungeon ID.

Groups dungeon rooms by their associated dungeon, showing start rooms, boss rooms, and room counts. Useful for understanding dungeon structure and verifying room assignments.

Definition at line 20 of file dungeon_group_commands.h.

Member Function Documentation

◆ GetName()

std::string yaze::cli::handlers::DungeonGroupCommandHandler::GetName ( ) const
inlinevirtual

Get the command name.

Override this to provide a unique identifier for the command. This is used for command registration and lookup.

Implements yaze::cli::resources::CommandHandler.

Definition at line 22 of file dungeon_group_commands.h.

◆ GetDescription()

std::string yaze::cli::handlers::DungeonGroupCommandHandler::GetDescription ( ) const
inline

Definition at line 23 of file dungeon_group_commands.h.

◆ GetUsage()

std::string yaze::cli::handlers::DungeonGroupCommandHandler::GetUsage ( ) const
inlinevirtual

Get the command usage string.

Implements yaze::cli::resources::CommandHandler.

Definition at line 26 of file dungeon_group_commands.h.

◆ ValidateArgs()

absl::Status yaze::cli::handlers::DungeonGroupCommandHandler::ValidateArgs ( const resources::ArgumentParser & parser)
inlineoverridevirtual

Validate command arguments.

Implements yaze::cli::resources::CommandHandler.

Definition at line 31 of file dungeon_group_commands.h.

◆ Execute()


The documentation for this class was generated from the following files: