From 6a0fd7e4f38eaa0ebd4eeb83364126ea19bfd025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=B6=E7=82=9C?= <2029049582@qq.com> Date: Tue, 10 Jun 2025 16:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=B5=8B=E8=AF=95=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=B6=88=E6=81=AF=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/majiang/lichuan/EXGameController.lua | 4 ++++ .../extend_project/extend/majiang/lichuan/EXWitnessView.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua index 13ac9c94..cf82f503 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua @@ -169,10 +169,12 @@ function M:OnEventSendCards(evt_data) end function M:OnEventOutCard(evt_data) + print("lingmeng OnEventOutCard") local seat = evt_data["seat"] local card = evt_data["card"] local ting_list = nil local p = self._room:GetPlayerBySeat(seat) + print("lingmeng OnEventOutCard1", #self._cacheEvent) self._cacheEvent:Enqueue(function() local _room = self._room _room.last_outcard_seat = seat @@ -187,9 +189,11 @@ function M:OnEventOutCard(evt_data) p.hand_left_count = p.hand_left_count - 1 if not p.outcard_list then p.outcard_list = {} end p.outcard_list[#p.outcard_list + 1] = card + print("lingmeng OnEventOutCard2") DispatchEvent(self._dispatcher, TX_GameEvent.OutCard, p, card) end end) + print("lingmeng OnEventOutCard1-2", #self._cacheEvent) end function M:OnEventTakeCard(evt_data) diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua index 8bb06723..e5644caa 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua @@ -52,6 +52,7 @@ end function M:EventInit() -- UIPackage.AddPackage("extend/majiang/hongzhong/ui/Extend_MJ_HongZhong") + print("lingmeng EventInit") MainView.EventInit(self) local _room = self._room local _view = self._view