Files
Main/Assets/GameAssets/Resources/Lua/Config/Data/DataSoulArmorSignetSuit.lua
2025-01-25 04:38:09 +08:00

193 lines
8.8 KiB
Lua

--文件是自动生成,请勿手动修改.来自数据文件:SoulArmor_signet_suit
local L_CompressMaxColumn = 2
local L_CompressData = {
422295719887222785,422401276123328227,
--1,1_2_3_4_5_6,0,3,7010010_7010011_7010012_7010013_7010014_7010015,风雷,1_200;2_4290;3_50,,2_2145;3_150;4_140,1_200;2_4290;4_60,,
422506832562207106,48075036045027,
--2,7_8_9_10,0,3,7010016_7010017_7010018_7010019,阳炎,1_200;2_4290;3_50,2_2145;3_150;4_140,1_200;2_4290;4_60,,,
422577203487422467,422682759689973483,
--3,1_2_3_4_5_6,0,4,7010020_7010021_7010022_7010023_7010024_7010025,紫电,1_350;2_7508;3_87,,2_3754;3_262;4_245,1_350;2_7508;4_105,,
422753130716576132,48083626241771,
--4,7_8_9_10,0,4,7010026_7010027_7010028_7010029,狂雷,1_350;2_7508;3_87,2_3754;3_262;4_245,1_350;2_7508;4_105,,,
422823501610334213,422929057810788082,
--5,1_2_3_4_5_6,1,4,7010030_7010031_7010032_7010033_7010034_7010035,阴雷,1_500;2_10726;3_125,,2_5363;3_375;4_350,1_500;2_10726;4_150,,
422999428839487878,48091142663922,
--6,7_8_9_10,1,4,7010036_7010037_7010038_7010039,阳雷,1_500;2_10726;3_125,2_5363;3_375;4_350,1_500;2_10726;4_150,,,
423069799798257671,423175355931602681,
--7,1_2_3_4_5_6,1,6,7010040_7010041_7010042_7010043_7010044_7010045,灵龟,1_1101;2_23598;3_275,,2_11799;3_825;4_770,1_1101;2_23598;4_330,,
423245727027411336,48098659086073,
--8,7_8_9_10,1,6,7010046_7010047_7010048_7010049,玄蛇,1_1101;2_23598;3_275,2_11799;3_825;4_770,1_1101;2_23598;4_330,,,
423316097921169417,423421654052417280,
--9,1_2_3_4_5_6,2,6,7010050_7010051_7010052_7010053_7010054_7010055,龙龟,1_1701;2_36470;3_425,,2_18235;3_1276;4_1191,1_1701;2_36470;4_510,,
423492025150323082,48106175508224,
--10,7_8_9_10,2,6,7010056_7010057_7010058_7010059,潜蛟,1_1701;2_36470;3_425,2_18235;3_1276;4_1191,1_1701;2_36470;4_510,,,
423562396044081163,423667952173231879,
--11,1_2_3_4_5_6,3,6,7010060_7010061_7010062_7010063_7010064_7010065,玄武,1_2302;2_49342;3_575,,2_24671;3_1726;4_1611,1_2302;2_49342;4_690,,
423738323273234828,48113691930375,
--12,7_8_9_10,3,6,7010066_7010067_7010068_7010069,青龙,1_2302;2_49342;3_575,2_24671;3_1726;4_1611,1_2302;2_49342;4_690,,,
423808694194255885,423914250294046478,
--13,1_2_3_4_5_6,1,7,7010070_7010071_7010072_7010073_7010074_7010075,凤舞,1_3103;2_66504;3_775,,2_33252;3_2327;4_2172;31_50;32_50,1_3103;2_66504;4_930;29_50;30_50,,
423984621423409550,48121208352526,
--14,7_8_9_10,1,7,7010076_7010077_7010078_7010079,龙游,1_3103;2_66504;3_775,2_33252;3_2327;4_2172;31_50;32_50,1_3103;2_66504;4_930;29_50;30_50,,,
424054992317167631,424160548414861077,
--15,1_2_3_4_5_6,2,7,7010080_7010081_7010082_7010083_7010084_7010085,九转,1_3903;2_83667;3_975,,2_41833;3_2927;4_2732;31_80;32_80,1_3903;2_83667;4_1171;29_80;30_80,,
424230919546321296,48128724774677,
--16,7_8_9_10,2,7,7010086_7010087_7010088_7010089,风云,1_3903;2_83667;3_975,2_41833;3_2927;4_2732;31_80;32_80,1_3903;2_83667;4_1171;29_80;30_80,,,
424301290440079377,424406846535675676,
--17,1_2_3_4_5_6,3,7,7010090_7010091_7010092_7010093_7010094_7010095,无生,1_4704;2_100829;3_1176,,2_50414;3_3528;4_3293;31_120;32_120,1_4704;2_100829;4_1411;29_120;30_120,,
424477217669233042,48136241196828,
--18,7_8_9_10,3,7,7010096_7010097_7010098_7010099,雨泽,1_4704;2_100829;3_1176,2_50414;3_3528;4_3293;31_120;32_120,1_4704;2_100829;4_1411;29_120;30_120,,,
424547588562991123,424653144656490275,
--19,1_2_3_4_5_6,4,7,7010100_7010101_7010102_7010103_7010104_7010105,耀世,1_5505;2_117992;3_1376,,2_58996;3_4128;4_3853;31_160;32_160,1_5505;2_117992;4_1651;29_160;30_160,,
424723515792144788,48143757618979,
--20,7_8_9_10,4,7,7010106_7010107_7010108_7010109,八极,1_5505;2_117992;3_1376,2_58996;3_4128;4_3853;31_160;32_160,1_5505;2_117992;4_1651;29_160;30_160,,,
341160634230749205,424864257331474217,
--21,1_2_3_4_5_6,5,7,7010110_7010111_7010112_7010113_7010114_7010115,焚天,1_6306;2_135155;3_1576,,2_67577;3_4729;4_4414;31_180;32_180,1_6306;2_135155;4_1891;29_180;30_180,,
424934628469225878,48150200266537,
--22,7_8_9_10,5,7,7010116_7010117_7010118_7010119,镇海,1_6306;2_135155;3_1576,2_67577;3_4729;4_4414;31_180;32_180,1_6306;2_135155;4_1891;29_180;30_180,,,
425004999394441239,425110555452288816,
--23,1_2_3_4_5_6,5,8,7010120_7010121_7010122_7010123_7010124_7010125,天灾,1_11311;2_242420;3_2827,,2_121210;3_8483;4_7917;31_200;32_200,1_11311;2_242420;4_3393;29_200;30_200,,
425180926623594904,48157716688688,
--24,7_8_9_10,5,8,7010126_7010127_7010128_7010129,天劫,1_11311;2_242420;3_2827,2_121210;3_8483;4_7917;31_200;32_200,1_11311;2_242420;4_3393;29_200;30_200,,,
266851254404888601,425321668127272758,
--25,1_2_3_4_5_6,5,9,7010130_7010131_7010132_7010133_7010134_7010135,寂灭,1_16315;2_349686;3_4078,,2_174843;3_12236;4_11421;31_240;32_240,1_16315;2_349686;4_4894;29_240;30_240,,
425392039332133274,48164159336246,
--26,7_8_9_10,5,9,7010136_7010137_7010138_7010139,轮回,1_16315;2_349686;3_4078,2_174843;3_12236;4_11421;31_240;32_240,1_16315;2_349686;4_4894;29_240;30_240,,,
425462410257348635,425567966248087357,
--27,1_2_3_4_5_6,5,10,7010140_7010141_7010142_7010143_7010144_7010145,元始,1_22321;2_478406;3_5580,,2_239203;3_16741;4_15625;31_300;32_300,1_22321;2_478406;4_6696;29_300;30_300,,
425638337486502300,48171675758397,
--28,7_8_9_10,5,10,7010146_7010147_7010148_7010149,洪荒,1_22321;2_478406;3_5580,2_239203;3_16741;4_15625;31_300;32_300,1_22321;2_478406;4_6696;29_300;30_300,,,
}
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,
[16]=16,[17]=17,[18]=18,[19]=19,[20]=20,[21]=21,[22]=22,[23]=23,[24]=24,[25]=25,[26]=26,[27]=27,[28]=28,}
local L_NamesByNum = {
Id = 1,
Star = 3,
Quality = 4,
}
local L_NamesByString = {
Part = 2,
Suit = 5,
Name = 6,
ValueOf2 = 7,
ValueOf3 = 8,
ValueOf4 = 9,
ValueOf6 = 10,
}
local L_ColNameIndexs = {
Id = 0,
Part = 1,
Star = 2,
Quality = 3,
Suit = 4,
Name = 5,
ValueOf2 = 6,
ValueOf3 = 7,
ValueOf4 = 8,
ValueOf6 = 9,
}
--local L_ColumnUseBitCount = {6,15,4,5,15,15,15,15,15,15,}
--local L_ColumnList = {1,1,1,1,1,1,2,2,2,2,}
--local L_ShiftDataList = {0,6,21,25,30,45,0,15,30,45,}
--local L_AndDataList = {31,16383,7,15,16383,16383,16383,16383,16383,16383,}
local L_ColumnShiftAndList = {1,0,31,1,6,16383,1,21,7,1,25,15,1,30,16383,1,45,16383,2,0,16383,2,15,16383,2,30,16383,2,45,16383,}
local L_ColNum = 10;
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 = 28
}
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