93 lines
2.0 KiB
Lua
93 lines
2.0 KiB
Lua
|
|
---
|
||
|
|
--- Created by 谌建军.
|
||
|
|
--- DateTime: 2017/12/19 10:54
|
||
|
|
---
|
||
|
|
local M = {}
|
||
|
|
|
||
|
|
|
||
|
|
--- Create a new RoomConfig
|
||
|
|
function M.new(config)
|
||
|
|
setmetatable(M,{__index = RoomConfig})
|
||
|
|
local self = setmetatable({}, {__index = M})
|
||
|
|
RoomConfig.init(self,config)
|
||
|
|
self.class = "ChunTian_RoomConfig"
|
||
|
|
self.config=config
|
||
|
|
self.AA = config.aa
|
||
|
|
self.Times = config.times
|
||
|
|
self.PlayerNum = config.maxPlayers
|
||
|
|
|
||
|
|
self.selectDiqu = config.selectDiqu
|
||
|
|
self.youdabida = config.youdabida
|
||
|
|
self.baodanbida = config.baodanbida
|
||
|
|
self.sandaier = config.sandaier
|
||
|
|
self.sidaiyi = config.sidaiyi
|
||
|
|
self.fanchun = config.fanchun
|
||
|
|
self.shachunfanbei = config.shachunfanbei
|
||
|
|
self.ziranchunfanbei = config.ziranchunfanbei
|
||
|
|
self.sigeAziranchun = config.sigeAziranchun
|
||
|
|
return self
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
function M:GetDes(sp)
|
||
|
|
sp = sp or " "
|
||
|
|
local str = ""
|
||
|
|
-- str = str.. self.Times.."局"..sp
|
||
|
|
str = str .. RoomConfig.GetDes(self, sp)
|
||
|
|
if self.selectDiqu == 1 then
|
||
|
|
str = str.. "去掉234"..sp
|
||
|
|
else
|
||
|
|
str = str.. "单QKA2"..sp
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
if self.youdabida == 1 then
|
||
|
|
str = str.. "有大必大"..sp
|
||
|
|
end
|
||
|
|
if self.baodanbida == 1 then
|
||
|
|
str = str.. "报单必大"..sp
|
||
|
|
end
|
||
|
|
if self.sandaier == 1 then
|
||
|
|
str = str.. "三带二"..sp
|
||
|
|
end
|
||
|
|
|
||
|
|
if self.sidaiyi == 1 then
|
||
|
|
str = str.. "四带一"..sp
|
||
|
|
end
|
||
|
|
if self.fanchun == 1 then
|
||
|
|
str = str.. "反春"..sp
|
||
|
|
end
|
||
|
|
|
||
|
|
if self.shachunfanbei == 1 then
|
||
|
|
str = str.. "反春翻倍"..sp
|
||
|
|
end
|
||
|
|
if self.ziranchunfanbei == 1 then
|
||
|
|
str = str.. "自然春翻倍"..sp
|
||
|
|
end
|
||
|
|
if self.sigeAziranchun == 1 then
|
||
|
|
str = str.. "4个A自然春"..sp
|
||
|
|
end
|
||
|
|
|
||
|
|
return str
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
function M:GetGameJS()
|
||
|
|
local gamerulepanel= UIPackage.CreateObjectFromURL("ui://Extend_Poker_ChunTian/gamerule")
|
||
|
|
return gamerulepanel
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
function M:GetGameSMSize()
|
||
|
|
return 467,500
|
||
|
|
end
|
||
|
|
|
||
|
|
function M:GetGameName()
|
||
|
|
return "春天扑克"
|
||
|
|
end
|
||
|
|
|
||
|
|
--function M:GetIsShowCardNumber()
|
||
|
|
-- return self.ShowNumber == 1
|
||
|
|
--end
|
||
|
|
|
||
|
|
return M
|