client/lua_probject/extend_project/extend/zipai/fanpaofa/EXRoomConfig.lua

68 lines
1.7 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

local M = {}
--- Create a new RoomConfig
function M.new(config)
setmetatable(M,{__index = RoomConfig})
local self = setmetatable({}, {__index = M})
RoomConfig.init(self,config)
self.config=config
self.class = "RoomConfig"
self.round = config["times"]
self.mode = config["mode"]
self.tun = config["tun"]
self.fengding = config["fengding"]
self.tuanyuan = config["tuanyuan"]
self.hanghangxi = config["hanghangxi"]
self.siqi = config["siqi"]
self.shuahou = config["shuahou"]
self.huangfan = config["huangfan"]
self.jiaxingxing = config["jiaxingxing"]
self.tinghu = config["tinghu"]
self.duizifu = config["duizifu"]
self.back = config["back"]
self.yuan = config["yuan"]
self.tianhu =config["tianhu"]
self.dihu =config["dihu"]
self.haihu =config["haihu"]
self.maxPlayers = config["maxPlayers"]
self.qupai = config["qupai"]
self.isHidden = config.isHidden
self.qixihu =config["qixihu"]
self.weipai =config["weipai"]
self.xidouble30 =config["xidouble30"]
self.zimo =config["zimo"]
self.daxiaozi =config["daxiaozi"]
self.hongheihu =config["hongheihu"]
self.yidianhu =config["yidianhu"]
return self
end
function M:GetDes(sp)
sp = ""
local str = "娄底放炮罚200息" .. sp
str = str .. RoomConfig.GetDes(self, sp)
if self.maxPlayers == 2 then
if self.qupai then
str = str .."去牌"
str = str .. sp
end
end
str = str .. "十五息起胡打鸟20分首局随机庄闲。"
return str
end
function M:GetGameName()
return "娄底放炮罚"
end
function M:GetGameJS()
local gamerulepanel= UIPackage.CreateObjectFromURL("ui://Extend_Poker_FanPaoFa/gamerule")
return gamerulepanel
end
return M