diff options
Diffstat (limited to 'internal/casino/types.go')
| -rw-r--r-- | internal/casino/types.go | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/internal/casino/types.go b/internal/casino/types.go index c28b471..52c4bfa 100644 --- a/internal/casino/types.go +++ b/internal/casino/types.go @@ -181,10 +181,18 @@ const ( // presentation layer can enrich it (balances, command colors) without parsing // message prefixes. type MenuView struct { - Kind MenuKind - Body string // command list (MenuSlotCommands) - Title string // prompt heading (MenuBlackjackTurn) - Actions []string // available commands (MenuBlackjackTurn) + Kind MenuKind + Body string // command list (MenuSlotCommands) + Title string // prompt heading (MenuBlackjackTurn) + Actions []string // available commands (MenuBlackjackTurn) + Commands []MenuCommand // unified command list for all casino menus +} + +// MenuCommand is one selectable command shown in a casino menu: the typed +// command text plus a short human-readable description. +type MenuCommand struct { + Command string + Desc string } type Event struct { |
