commands

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler struct {
	ShowHints bool // Configurable: show tips in help command
	// contains filtered or unexported fields
}

CommandHandler maneja la ejecución de comandos del juego

func NewCommandHandler

func NewCommandHandler(vfs *filesystem.VirtualFS, game *entity.Game) *CommandHandler

NewCommandHandler crea un nuevo manejador de comandos

func (*CommandHandler) Execute

func (h *CommandHandler) Execute(input string) CommandResult

Execute ejecuta un comando y devuelve el resultado

type CommandResult

type CommandResult struct {
	Output      string
	Error       error
	NoiseLevel  int // Ruido generado (0-30)
	Success     bool
	SpecialFlag string // Flags especiales (key_found, level_complete, etc.)
}

CommandResult representa el resultado de ejecutar un comando

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL