client/lua_probject/extend_project/extend/zipai/fulushou/main/FZData.lua

45 lines
714 B
Lua
Raw Normal View History

2025-04-01 10:48:36 +08:00
RB_FZTypeFLS =
{
--Chi = 1,
2025-06-13 13:33:34 +08:00
-- Peng = 2,
-- Pao = 3,
-- Ti = 4,
--zhao = 5,
-- HU = 6,
Chi = 1,
2025-04-01 10:48:36 +08:00
Peng = 2,
2025-06-13 13:33:34 +08:00
Gang = 3,
SGang = 4,
Zhao = 5,
SZhao = 6,
HU = 7,
2025-04-01 10:48:36 +08:00
}
local FZTipList = {
tip_map_id = nil,
2025-06-13 13:33:34 +08:00
tip_map_type = nil,
2025-04-01 10:48:36 +08:00
}
local M = FZTipList
function M.new()
local self = {}
2025-06-13 13:33:34 +08:00
setmetatable(self, { __index = FZTipList })
2025-04-01 10:48:36 +08:00
self.tip_map_id = {}
self.tip_map_type = {}
return self
end
function M:AddTip(tip)
self.tip_map_id[tip.id] = tip
local tiplist = self.tip_map_type[tip.weight]
if not tiplist then
tiplist = {}
self.tip_map_type[tip.weight] = tiplist
end
2025-06-13 13:33:34 +08:00
tiplist[#tiplist + 1] = tip
2025-04-01 10:48:36 +08:00
end
2025-06-13 13:33:34 +08:00
return M