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

258 lines
11 KiB
Lua

--文件是自动生成,请勿手动修改.来自数据文件:state_xisui_acupoint
local L_CompressMaxColumn = 2
local L_CompressData = {
51840279981953,165247122499891808,
--1,下丹田,1,1_89;2_2401;3_44;4_44,,1_89;2_2401;3_44;4_44,60093_1,1_10,73,,
51841085288706,165247122499891812,
--2,督脉,1,1_188;2_5042;3_94;4_94,,1_99;2_2641;3_50;4_50,60093_1,1_10,73,,
51841890595459,165247122500809319,
--3,尾闾,1,1_384;2_10325;3_191;4_191,,1_196;2_5283;3_97;4_97,60094_1,1_10,73,,
51842964337796,164608598302847595,
--4,夹脊,1,1_600;2_16087;3_300;4_300,,1_216;2_5762;3_109;4_109,60094_1,1_20,73,,
51843769644549,164608598303765102,
--5,上鹊桥,1,1_921;2_24732;3_459;4_459,,1_321;2_8645;3_159;4_159,60095_1,1_20,73,,
51844843386886,164608598303765106,
--6,上丹田,1,1_1272;2_34096;3_636;4_636,,1_351;2_9364;3_177;4_177,60095_1,1_20,73,,
51845648693639,164608598304682613,
--7,玉枕,1,1_1736;2_46583;3_866;4_866,,1_464;2_12487;3_230;4_230,60096_1,1_20,73,,
51846722435976,164545840242553465,
--8,中丹田,1,1_2240;2_60029;3_1119;4_1119,,1_504;2_13446;3_253;4_253,60096_1,1_30,73,,
51847527742729,164545840243470972,
--9,任脉,1,1_2865;2_76839;3_1430;4_1430,,1_625;2_16810;3_311;4_311,60097_1,1_30,73,,
2184227299131997962,164545840243470976,
--10,下鹊桥,1,1_3539;2_94847;3_1768;4_1768,1_3539;2_94847;3_1768;4_1768,1_674;2_18008;3_338;4_338,60097_1,1_30,73,,
51848618262667,17180000257,
--11,玄体星窍,2,1_3539;2_94847;3_1768;4_1768,,,,,,,
51849692004620,167008368333449492,
--12,白虎伐,2,1_3615;2_96895;3_1806;4_1806,,1_76;2_2048;3_38;4_38,60054_1,1_15,74,,
51850497311373,167008368333484679,
--13,从革,2,1_3699;2_99148;3_1848;4_1848,,1_84;2_2253;3_42;4_42,60054_1,1_15,74,,
51851302618126,167008368333450199,
--14,金窍,2,1_3867;2_103653;3_1932;4_1932,,1_168;2_4505;3_84;4_84,60054_1,1_15,74,,
51851839489295,164756568519799436,
--15,玄武护,2,1_4050;2_108569;3_2023;4_2023,,1_183;2_4916;3_91;4_91,60054_1,1_15,73,,
51852644796048,164756568519799439,
--16,润下,2,1_4325;2_115941;3_2161;4_2161,,1_275;2_7372;3_138;4_138,60054_1,1_15,73,,
51853450102801,164545840246354578,
--17,水窍,2,1_4623;2_123930;3_2309;4_2309,,1_298;2_7989;3_148;4_148,60054_2,1_30,73,,
51854523845138,169049439873725078,
--18,青龙腾,2,1_5020;2_134579;3_2508;4_2508,,1_397;2_10649;3_199;4_199,60054_2,1_30,75,,
51855329151891,169049439873725081,
--19,曲直,2,1_5448;2_146049;3_2721;4_2721,,1_428;2_11470;3_213;4_213,60054_2,1_30,75,,
51856134458644,169049439873725084,
--20,木窍,2,1_5983;2_160385;3_2989;4_2989,,1_535;2_14336;3_268;4_268,60054_2,1_30,75,,
51856939765397,171301239687410335,
--21,朱雀焚,2,1_6556;2_175747;3_3275;4_3275,,1_573;2_15362;3_286;4_286,60054_2,1_30,76,,
51857745072150,171300260436964002,
--22,炎上,2,1_7244;2_194179;3_3619;4_3619,,1_688;2_18432;3_344;4_344,60054_3,1_45,76,,
51858818814487,171300260436964006,
--23,火窍,2,1_7977;2_213842;3_3985;4_3985,,1_733;2_19663;3_366;4_366,60054_3,1_45,76,,
51859624121240,173552060250649257,
--24,黄麟镇,2,1_8834;2_236780;3_4414;4_4414,,1_857;2_22938;3_429;4_429,60054_3,1_45,77,,
51860429427993,173552060250649260,
--25,稼穑,2,1_9743;2_261154;3_4867;4_4867,,1_909;2_24374;3_453;4_453,60054_3,1_45,77,,
2185916161625511578,173552060250649264,
--26,土窍,2,1_10783;2_289007;3_5388;4_5388,1_7244;2_194160;3_3620;4_3620,1_1040;2_27853;3_521;4_521,60054_3,1_45,77,,
51861251512475,17180000257,
--27,灵体星窍,3,1_10783;2_289007;3_5388;4_5388,,,,,,,
51862593689884,171300174539822518,
--28,延寿,3,1_11302;2_302934;3_5647;4_5647,,1_519;2_13927;3_259;4_259,60056_8,1_125,76,,
51863398996637,171296841645748919,
--29,拘魂,3,1_11874;2_318254;3_5933;4_5933,,1_572;2_15320;3_286;4_286,60056_9,1_150,76,,
51864472738974,171297992696984251,
--30,制魄,3,1_13017;2_348894;3_6504;4_6504,,1_1143;2_30640;3_571;4_571,60056_9,1_175,76,,
51865278045727,171297992697901758,
--31,却灾,3,1_14265;2_382319;3_7128;4_7128,,1_1248;2_33425;3_624;4_624,60056_11,1_175,76,,
51866351788064,171297992697901762,
--32,度危,3,1_16136;2_432458;3_8063;4_8063,,1_1871;2_50139;3_935;4_935,60056_11,1_175,76,,
2186690223733825953,171299075030708934,
--33,度厄,3,1_18164;2_486774;3_9077;4_9077,1_7381;2_197767;3_3689;4_3689,1_2028;2_54316;3_1014;4_1014,60056_12,1_200,76,,
51867173872674,17180000257,
--34,金身星窍,4,1_18164;2_486774;3_9077;4_9077,,,,,,,
51868784485539,171299332729235742,
--35,祖劫化生,4,1_18367;2_492235;3_9178;4_9178,,1_203;2_5461;3_101;4_101,60057_3,1_100,76,,
51869589792292,171299332729236703,
--36,赤书焕发,4,1_18592;2_498243;3_9291;4_9291,,1_225;2_6008;3_113;4_113,60057_3,1_100,76,,
51870126663461,171299332730057424,
--37,开九霄,4,1_19039;2_510258;3_9514;4_9514,,1_447;2_12015;3_223;4_223,60057_4,1_100,76,,
51871200405798,171299332730057428,
--38,分五劫,4,1_19529;2_523366;3_9759;4_9759,,1_490;2_13108;3_245;4_245,60057_4,1_100,76,,
51872005712551,171299332730974935,
--39,枢阴机阳,4,1_20262;2_543028;3_10125;4_10125,,1_733;2_19662;3_366;4_366,60057_5,1_100,76,,
51872808147496,166793242022572762,
--40,梵炁弥罗,4,1_21058;2_564328;3_10523;4_10523,,1_796;2_21300;3_398;4_398,60057_5,1_150,74,,
51873616326057,166793242022572765,
--41,森罗净泓,4,1_22117;2_592729;3_11052;4_11052,,1_1059;2_28401;3_529;4_529,60057_5,1_150,74,,
51874421632810,166793242022572768,
--42,玄元一炁,4,1_23259;2_623314;3_11623;4_11623,,1_1142;2_30585;3_571;4_571,60057_5,1_150,74,,
51875226939563,166795475407139555,
--43,化生诸天,4,1_24685;2_661546;3_12336;4_12336,,1_1426;2_38232;3_713;4_713,60057_6,1_200,74,,
51876300681900,166795475407139559,
--44,万道之宗,4,1_26215;2_702508;3_13100;4_13100,,1_1530;2_40962;3_764;4_764,60057_6,1_200,74,,
51877105988653,164543675593454314,
--45,为皇者师,4,1_28048;2_751664;3_14017;4_14017,,1_1833;2_49156;3_917;4_917,60057_6,1_200,73,,
51877911295406,164543675593454317,
--46,隐圣显凡,4,1_30006;2_804095;3_14995;4_14995,,1_1958;2_52431;3_978;4_978,60057_6,1_200,73,,
51878716602159,164549001354605296,
--47,化行今古,4,1_32288;2_865267;3_16137;4_16137,,1_2282;2_61172;3_1142;4_1142,60057_7,1_250,73,,
51879790344496,164549001354605300,
--48,主握阴阳,4,1_34715;2_930260;3_17349;4_17349,,1_2427;2_64993;3_1212;4_1212,60057_7,1_250,73,,
2188449455776823985,164549001355653880,
--49,大圣大慈,4,1_37486;2_1004540;3_18736;4_18736,1_19322;2_517766;3_9659;4_9659,1_2771;2_74280;3_1387;4_1387,60057_8,1_250,73,,
51880612429106,17180000257,
--50,玉体星窍,5,1_37486;2_1004540;3_18736;4_18736,,,,,,,
51882223041971,164544534590321405,
--51,前世之柄,5,1_38001;2_1018356;3_18993;4_18993,,1_515;2_13816;3_257;4_257,60058_8,1_300,73,,
51883296784308,164544534590845697,
--52,前世之护,5,1_38569;2_1033555;3_19277;4_19277,,1_568;2_15199;3_284;4_284,60058_9,1_300,73,,
51884370526645,164547283369915141,
--53,前世之锋,5,1_39702;2_1063951;3_19843;4_19843,,1_1133;2_30396;3_566;4_566,60058_9,1_360,73,,
51885175833398,164547283370832648,
--54,今世之柄,5,1_40941;2_1097112;3_20463;4_20463,,1_1239;2_33161;3_620;4_620,60058_11,1_360,73,,
51886249575735,164756774695662348,
--55,今世之护,5,1_42796;2_1146852;3_21390;4_21390,,1_1855;2_49740;3_927;4_927,60058_11,1_420,73,,
51887054882488,164756774696579855,
--56,今世之锋,5,1_44809;2_1200738;3_22396;4_22396,,1_2013;2_53886;3_1006;4_1006,60058_12,1_420,73,,
51888128624825,164756774696579859,
--57,来世之柄,5,1_47489;2_1272585;3_23736;4_23736,,1_2680;2_71847;3_1340;4_1340,60058_12,1_420,73,,
51888933931578,164669449422435094,
--58,来世之护,5,1_50379;2_1349960;3_25180;4_25180,,1_2890;2_77375;3_1444;4_1444,60058_14,1_480,73,,
2189680918211955771,164669500962042651,
--59,来世之锋,5,1_53987;2_1446677;3_26985;4_26985,1_16501;2_442137;3_8249;4_8249,1_3608;2_96717;3_1805;4_1805,60058_14,1_540,73,,
51890024451644,17180000257,
--60,星窍名60,6,1_53987;2_1446677;3_26985;4_26985,,,,,,,
}
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,[29]=29,[30]=30,
[31]=31,[32]=32,[33]=33,[34]=34,[35]=35,[36]=36,[37]=37,[38]=38,[39]=39,[40]=40,[41]=41,[42]=42,[43]=43,[44]=44,[45]=45,
[46]=46,[47]=47,[48]=48,[49]=49,[50]=50,[51]=51,[52]=52,[53]=53,[54]=54,[55]=55,[56]=56,[57]=57,[58]=58,[59]=59,[60]=60,
}
local L_NamesByNum = {
Id = 1,
Group = 3,
VFX = 9,
}
local L_NamesByString = {
Name = 2,
PropAll = 4,
PropStarAll = 5,
PropAdd = 6,
ItemCost = 7,
CoinCost = 8,
}
local L_ColNameIndexs = {
Id = 0,
Name = 1,
Group = 2,
PropAll = 3,
PropStarAll = 4,
PropAdd = 5,
ItemCost = 6,
CoinCost = 7,
VFX = 8,
}
--local L_ColumnUseBitCount = {7,17,4,17,17,17,17,17,8,}
--local L_ColumnList = {1,1,1,1,1,2,2,2,2,}
--local L_ShiftDataList = {0,7,24,28,45,0,17,34,51,}
--local L_AndDataList = {63,65535,7,65535,65535,65535,65535,65535,127,}
local L_ColumnShiftAndList = {1,0,63,1,7,65535,1,24,7,1,28,65535,1,45,65535,2,0,65535,2,17,65535,2,34,65535,2,51,127,}
local L_ColNum = 9;
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 = 60
}
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