171 lines
7.9 KiB
Lua
171 lines
7.9 KiB
Lua
--文件是自动生成,请勿手动修改.来自数据文件:VIPTrueRecharge
|
|
local L_CompressMaxColumn = 3
|
|
local L_CompressData = {
|
|
44989245585441,80323728104751105,642624964193980080,
|
|
--1,1,120,2000497_1_1_0;2002161_1_1_1;2000497_1_1_2;2002161_1_1_3;19021_3_1_9;60002_2_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44990319368226,80323728104751105,642624964193980080,
|
|
--2,1,280,2000499_1_1_0;2002163_1_1_1;2000499_1_1_2;2002163_1_1_3;60034_1_1_9;60002_4_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44990587860003,80323728104751105,642624964193980080,
|
|
--3,1,500,2000501_1_1_0;2002165_1_1_1;2000501_1_1_2;2002165_1_1_3;19021_5_1_9;60002_5_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44990856423460,80323728104751105,642624964193980080,
|
|
--4,1,1000,2000502_1_1_0;2002166_1_1_1;2000502_1_1_2;2002166_1_1_3;19021_5_1_9;60002_5_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44991124986917,80323728104751105,642624964193980080,
|
|
--5,1,1500,2000503_1_1_0;2002167_1_1_1;2000503_1_1_2;2002167_1_1_3;19021_6_1_9;60002_6_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44991393806374,80323728104751105,642624964193980080,
|
|
--6,1,3000,2000498_1_1_0;2002162_1_1_1;2000498_1_1_2;2002162_1_1_3;19021_7_1_9;60002_6_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44991662753831,80323728104751105,642624964193980080,
|
|
--7,1,5000,2003453_1_1_9;19021_8_1_9;60002_7_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44991931957288,80323728104751105,642624964193980080,
|
|
--8,1,8000,2003479_1_1_9;19021_9_1_9;60002_8_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44992200904745,80323728104751105,642624964193980080,
|
|
--9,1,10000,10022_1_1_9;10003_5_1_9;16003_5_1_9,,,43100,0_330_0,0_0_0,330,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
44992471900202,80324521995927553,642624964157148859,
|
|
--10,1,20000,15009_1_1_9;16198_10_1_9;10004_10_1_9,,,6100009,0_330_0,0_25_0,49,,累计充值[78F568]10000灵玉[-]赠送,,
|
|
1285681949139812427,2199023292094,642893751525572609,
|
|
--11,2,40000,70068_1_1_9;15010_1_1_9;16199_10_1_9;10005_10_1_9,26_27_28_29,26_100_100;27_9000_9;28_9000_9;29_9000_9,,,,,xs-guizi,修持之人,始也不悟大道,而欲于速成。形如槁木,心若死灰,神识内守,一志不散。定中以出阴神,乃清灵之鬼,非纯阳之仙。以其一志阴灵不散,故曰鬼仙。虽曰仙,其实鬼也。古今佛徒,正致力于此,乃曰得道,诚可笑也。,,
|
|
1285857872357793868,2199023292099,642981713126883329,
|
|
--12,2,100000,70069_1_1_9;20005_12_1_9;21005_12_1_9;10006_10_1_9,26_27_28_29_30,26_200_200;27_8000_8;28_8000_8;29_8000_8;30_2_2,,,,,xs-renzi,人仙者,五仙之下二也。修真之士,不悟大道,道中得一法,法中得一术,信心苦志,终世不移。五行之气,误交误会,形质且固,八邪之疫不能为害,多安少病,乃曰人仙。,,
|
|
1285857873712771149,2199023292103,643052082407931905,
|
|
--13,2,150000,70070_1_1_9;10023_1_1_9;60021_10_1_9;10007_10_1_9,26_27_28_29_30,26_500_500;27_7000_7;28_7000_7;29_7000_7;30_3_3,,,,,xs-dizi,地仙者,天地之半,神仙之才。不悟大道,止于小成之法。不可见功,唯以长生住世,而不死于人间者也。,,
|
|
1285857874812112974,2199023292107,643122451688980481,
|
|
--14,2,250000,70071_1_1_9;10025_1_1_9;24020_15_1_9;24021_15_1_9,26_27_28_29_30,26_800_800;27_6000_6;28_6000_6;29_6000_6;30_4_4,,,,,xs-shenzi,“神仙者,以地仙厌居尘世,用功不已,关节相连,抽铅添汞而金精炼顶。玉液还丹,炼形成气而五气朝元,三阳聚顶。功满忘形,胎仙自化。阴尽阳纯,身外有身。脱质升仙,超凡入圣。谢绝尘俗以返三山,乃曰神仙。”,,
|
|
1285857875949854799,2199023292111,643192820970160129,
|
|
--15,2,500000,70072_1_1_9;10024_1_1_9;24022_12_1_9;24023_12_1_9,26_27_28_29_30,26_1000_1000;27_5000_5;28_5000_5;29_5000_5;30_5_5,,,,1,xs-tianzi,若能修成上乘的天仙,便可神光普照,化身万千;一得永得,一证永证,神通恢廓,法力无边。天地闭时而不同闭,浩劫无碍。天地开时,开辟度人。五眼六通全开——五眼是肉眼、天眼、慧眼、法眼、佛眼;六通——天眼通、天耳通、他心通、宿命通、神足通、漏尽通。,,
|
|
}
|
|
local L_MainKeyDic = {
|
|
[1]=1,[2]=2,[3]=3,[4]=4,[5]=5,[6]=6,[7]=7,[8]=8,[9]=9,[10]=10,[11]=11,[12]=12,[13]=13,[14]=14,[15]=15,
|
|
}
|
|
local L_NamesByNum = {
|
|
Id = 1,
|
|
Type = 2,
|
|
RechargeLimit = 3,
|
|
ModelId = 7,
|
|
ModelScale = 10,
|
|
}
|
|
local L_NamesByString = {
|
|
RechargeReward = 4,
|
|
TrueRewardPowerId = 5,
|
|
TrueRewardPowerPra = 6,
|
|
ModelRotate = 8,
|
|
ModelPos = 9,
|
|
Title = 11,
|
|
Desc = 12,
|
|
}
|
|
local L_ColNameIndexs = {
|
|
Id = 0,
|
|
Type = 1,
|
|
RechargeLimit = 2,
|
|
RechargeReward = 3,
|
|
TrueRewardPowerId = 4,
|
|
TrueRewardPowerPra = 5,
|
|
ModelId = 6,
|
|
ModelRotate = 7,
|
|
ModelPos = 8,
|
|
ModelScale = 9,
|
|
Title = 10,
|
|
Desc = 11,
|
|
}
|
|
--local L_ColumnUseBitCount = {5,3,20,17,17,17,24,17,17,10,17,17,}
|
|
--local L_ColumnList = {1,1,1,1,1,2,2,2,3,3,3,3,}
|
|
--local L_ShiftDataList = {0,5,8,28,45,0,17,41,0,17,27,44,}
|
|
--local L_AndDataList = {15,3,524287,65535,65535,65535,8388607,65535,65535,511,65535,65535,}
|
|
local L_ColumnShiftAndList = {1,0,15,1,5,3,1,8,524287,1,28,65535,1,45,65535,2,0,65535,2,17,8388607,2,41,65535,3,0,65535,3,17,511,3,27,65535,3,44,65535,}
|
|
local L_ColNum = 12;
|
|
local L_UseDataK = setmetatable({ },{ __mode = 'k'});
|
|
local L_UseDataV = setmetatable({ },{ __mode = 'v'});
|
|
local L_UseDataRow = setmetatable({ },{ __mode = 'v'});
|
|
local L_IsCache = false;
|
|
local mt = {}
|
|
local function GetData(row, column)
|
|
local startIndex = (column - 1) * 3
|
|
local _compressData = L_CompressData[(row - 1)*L_CompressMaxColumn+L_ColumnShiftAndList[startIndex + 1]]
|
|
local _tempData = _compressData >> L_ColumnShiftAndList[startIndex + 2]
|
|
local _data = _tempData & L_ColumnShiftAndList[startIndex + 3]
|
|
local _andSign = L_ColumnShiftAndList[startIndex + 3] + 1
|
|
local _isMinus = (_andSign & _tempData) == _andSign
|
|
return _isMinus and -_data or _data;
|
|
end
|
|
|
|
mt.__index = function (t,key)
|
|
local _key = L_UseDataK[t];
|
|
local _row = L_MainKeyDic[_key];
|
|
local _column = L_NamesByNum[key];
|
|
if _column ~= nil then
|
|
if L_IsCache then
|
|
local _data = L_UseDataRow[_row * L_ColNum + _column]
|
|
if not _data then
|
|
_data = GetData(_row, _column)
|
|
L_UseDataRow[_row * L_ColNum + _column] = _data
|
|
end
|
|
return _data
|
|
else
|
|
return GetData(_row, _column)
|
|
end
|
|
end
|
|
_column = L_NamesByString[key]
|
|
if _column ~= nil then
|
|
return StringDefines[GetData(_row, _column)]
|
|
end
|
|
if string.find(key, '_') then
|
|
local _newKey = string.gsub(key, '_', '')
|
|
_column = L_NamesByString[_newKey]
|
|
if _column ~= nil then
|
|
return GetData(_row, _column)
|
|
end
|
|
end
|
|
if key ~= '_OnCopyAfter_' then
|
|
return
|
|
end
|
|
end
|
|
|
|
local M = {
|
|
_CompressData_ = L_CompressData,
|
|
_ColumnShiftAndList_ = L_ColumnShiftAndList,
|
|
_CompressMaxColumn_ = L_CompressMaxColumn,
|
|
_ColumnNameIndexs_ = L_ColNameIndexs,
|
|
Count = 15
|
|
}
|
|
|
|
function M:Foreach(func)
|
|
for i=1,M.Count do
|
|
local _key = GetData(i, 1)
|
|
func(_key, M[_key])
|
|
end
|
|
end
|
|
|
|
function M:ForeachCanBreak(func)
|
|
for i = 1,M.Count do
|
|
local _key = GetData(i, 1)
|
|
if func(_key, M[_key]) then
|
|
break
|
|
end
|
|
end
|
|
end
|
|
|
|
function M:GetByIndex(index)
|
|
return M[GetData(index, 1)];
|
|
end
|
|
|
|
function M:IsContainKey(key)
|
|
return not(not L_MainKeyDic[key]);
|
|
end
|
|
|
|
function M:SetIsCache(isCh)
|
|
L_IsCache = isCh;
|
|
end
|
|
|
|
setmetatable(M, {__index = function(t, key)
|
|
if not L_MainKeyDic[key] then
|
|
return;
|
|
end
|
|
local _t = L_UseDataV[key];
|
|
if not _t then
|
|
_t = setmetatable({}, mt);
|
|
L_UseDataV[key] = _t;
|
|
L_UseDataK[_t] = key;
|
|
end
|
|
return _t
|
|
end})
|
|
|
|
return M
|