30 lines
459 B
Lua
30 lines
459 B
Lua
local MJPlayer = import(".MJPlayer")
|
|
|
|
local MJRoom = {
|
|
-- 记录此游戏使用的牌型
|
|
card_type = 0,
|
|
|
|
curren_outcard_seat = -1,
|
|
left_count = 0,
|
|
last_outcard_seat = 0
|
|
}
|
|
|
|
local M = MJRoom
|
|
|
|
--- Create a new EXPlayer
|
|
function M.new()
|
|
setmetatable(M,{__index = Room})
|
|
local self = setmetatable({}, {__index = M})
|
|
self.left_count = 0
|
|
self.last_outcard_seat = 0
|
|
self:init()
|
|
return self
|
|
end
|
|
|
|
|
|
|
|
function M:NewPlayer()
|
|
return MJPlayer.new()
|
|
end
|
|
|
|
return M |