45 lines
723 B
Lua
45 lines
723 B
Lua
|
|
RB_FZType =
|
||
|
|
{
|
||
|
|
Chi = 1,
|
||
|
|
Peng = 2,
|
||
|
|
Kan = 3,
|
||
|
|
Wei = 4,
|
||
|
|
ChouWei=5,
|
||
|
|
Pao = 6,
|
||
|
|
Ti = 7,
|
||
|
|
HU = 8,
|
||
|
|
Bi = 9,
|
||
|
|
PengPao =10,
|
||
|
|
WeiPao =11,
|
||
|
|
WeiTi =12,
|
||
|
|
KanTi =13,
|
||
|
|
DuiZi = 14,
|
||
|
|
zhao = 15,
|
||
|
|
}
|
||
|
|
|
||
|
|
local FZTipList = {
|
||
|
|
tip_map_id = nil,
|
||
|
|
tip_map_type = nil
|
||
|
|
}
|
||
|
|
|
||
|
|
local M = FZTipList
|
||
|
|
|
||
|
|
function M.new()
|
||
|
|
local self = {}
|
||
|
|
setmetatable(self,{__index = FZTipList})
|
||
|
|
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
|
||
|
|
tiplist[#tiplist+1] = tip
|
||
|
|
end
|
||
|
|
|
||
|
|
return M
|