changhong/lua_probject/main_project/main/majiang/MJRoom.lua

30 lines
459 B
Lua
Raw Normal View History

2025-05-24 14:29:14 +08:00
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