同步测试时间消息队列
parent
6e7ebe64a6
commit
6a0fd7e4f3
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue