From 8300d259adbb69d86d930d277d58bd1d0ee59ed0 Mon Sep 17 00:00:00 2001 From: huahua132 <958677003@qq.com> Date: Mon, 30 Sep 2024 11:28:15 +0800 Subject: [PATCH] =?UTF-8?q?room=5Fgame=5Fhall=5Fm=E5=A2=9E=E5=8A=A0=20queu?= =?UTF-8?q?e=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/room_game_hall_m.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/room_game_hall_m.lua b/module/room_game_hall_m.lua index 420374ad0..eb900a7eb 100644 --- a/module/room_game_hall_m.lua +++ b/module/room_game_hall_m.lua @@ -449,6 +449,16 @@ function interface:get_table_id(player_id) return agent.table_id or "0:0" end + +--执行队列 +function interface:queue(player_id, func, ...) + local agent = g_player_map[player_id] + if not agent then + log.warn("queue agent not exists ", player_id) + return nil + end + return agent.queue(func, ...) +end ---------------------------------------------------------------------------------- --CMD ----------------------------------------------------------------------------------