- ambits en la consola

- verifica que la habitacio de debug.yaml existisca
This commit is contained in:
2026-04-02 22:45:27 +02:00
parent 7287d65ca3
commit 9ffd29bea8
7 changed files with 120 additions and 9 deletions

View File

@@ -14,9 +14,12 @@
# dynamic_completions - (optional) Completions generated at runtime (default: false)
# completions - (optional) Static TAB completion tree
# debug_extras - (optional) Overrides applied in debug builds
# scope - (optional) Visibility scope: global, game, editor, debug (default: global)
# Can be a string or a list. Categories can set a default scope for all commands.
categories:
- name: VIDEO
scope: game
commands:
- keyword: SS
handler: cmd_ss
@@ -86,6 +89,7 @@ categories:
dynamic_completions: true
- name: AUDIO
scope: game
commands:
- keyword: AUDIO
handler: cmd_audio
@@ -109,6 +113,7 @@ categories:
SOUND: [ON, OFF, VOL]
- name: GAME
scope: game
commands:
- keyword: PLAYER
handler: cmd_player
@@ -137,6 +142,7 @@ categories:
description: Quit application
usage: EXIT
instant: true
scope: global
- keyword: QUIT
handler: cmd_quit
@@ -144,8 +150,10 @@ categories:
usage: QUIT
instant: true
help_hidden: true
scope: global
- name: INFO
scope: global
commands:
- keyword: SHOW
handler: cmd_show
@@ -182,6 +190,7 @@ categories:
- name: DEBUG
debug_only: true
scope: debug
commands:
- keyword: DEBUG
handler: cmd_debug
@@ -202,6 +211,7 @@ categories:
handler: cmd_room
description: "Change to room number (GAME only)"
usage: "ROOM <1-60>|NEXT|PREV|LEFT|RIGHT|UP|DOWN"
scope: [debug, editor]
completions:
ROOM: [NEXT, PREV, LEFT, RIGHT, UP, DOWN, NEW, DELETE]
ROOM NEW: [LEFT, RIGHT, UP, DOWN]
@@ -216,30 +226,35 @@ categories:
- keyword: EDIT
handler: cmd_edit
description: "Map editor mode (GAME only)"
usage: "EDIT [ON|OFF|REVERT|SHOW|HIDE|MAPBG] [...]"
usage: "EDIT [ON|OFF|REVERT|SHOW|HIDE|MAPBG|MAPCONN] [...]"
scope: [debug, editor]
dynamic_completions: true
completions:
EDIT: [ON, OFF, REVERT, SHOW, HIDE, MAPBG, MAPCONN]
EDIT SHOW: [INFO, GRID]
EDIT HIDE: [INFO, GRID]
- name: EDITOR
debug_only: true
scope: editor
commands:
- keyword: ENEMY
handler: cmd_enemy
description: "Add, delete or duplicate enemy (editor)"
description: "Add, delete or duplicate enemy"
usage: "ENEMY <ADD|DELETE|DUPLICATE>"
completions:
ENEMY: [ADD, DELETE, DUPLICATE]
- keyword: ITEM
handler: cmd_item
description: "Add, delete or duplicate item (editor)"
description: "Add, delete or duplicate item"
usage: "ITEM <ADD|DELETE|DUPLICATE>"
completions:
ITEM: [ADD, DELETE, DUPLICATE]
- keyword: SET
handler: cmd_set
description: "Set property (enemy or room, editor mode)"
description: "Set property (enemy, item or room)"
usage: "SET <property> <value>"
dynamic_completions: true
completions:
@@ -249,6 +264,7 @@ categories:
SET CONVEYOR: [LEFT, NONE, RIGHT]
- name: CHEATS
scope: [game, editor]
commands:
- keyword: CHEAT
handler: cmd_cheat