aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_command_queue.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/game/core_command_queue.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/game/core_command_queue.go')
-rw-r--r--internal/game/core_command_queue.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/core_command_queue.go b/internal/game/core_command_queue.go
index 8fce71d..0108ecd 100644
--- a/internal/game/core_command_queue.go
+++ b/internal/game/core_command_queue.go
@@ -89,6 +89,14 @@ func (q *CommandQueue) PeekActive(name string) (*QueuedCommand, bool) {
return qc, ok
}
+// PeekConsume returns the pending consume command without removing it.
+func (q *CommandQueue) PeekConsume(name string) (*QueuedCommand, bool) {
+ q.mu.Lock()
+ defer q.mu.Unlock()
+ qc, ok := q.consumeQueue[name]
+ return qc, ok
+}
+
// PeekFree returns a copy of the free commands for the player without removing.
func (q *CommandQueue) PeekFree(name string) []QueuedCommand {
q.mu.Lock()