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

191 lines
11 KiB
Lua

--文件是自动生成,请勿手动修改.来自数据文件:bossstate
local L_CompressMaxColumn = 4
local L_CompressData = {
2111134296938210369,3102387546756243280,161376446886113,2621571073,
--1,1,1_30,15001,1,30001,24400,75,-20,12_500_1_9,,0_2000009;0_2000010;0_2000011;0_2000013;0_2000014;0_2000015;1_2001673;1_2001674;1_2001675;1_2001677;1_2001678;1_2001679;2_2000009;2_2000010;2_2000011;2_2000013;2_2000014;2_2000015;3_2001673;3_2001674;3_2001675;3_2001677;3_2001678;3_2001679,24_34,300,2,0,0,,1,5000,,
2111135396492229186,3102390341169348640,161376446886125,2621571073,
--2,1,1_55,15002,2,30001,32800,160,-30,12_500_1_9,,0_2000113;0_2000114;0_2000115;0_2000117;0_2000118;0_2000119;1_2001777;1_2001778;1_2001779;1_2001781;1_2001782;1_2001783;2_2000113;2_2000114;2_2000115;2_2000117;2_2000118;2_2000119;3_2001777;3_2001778;3_2001779;3_2001781;3_2001782;3_2001783,24_34,300,2,0,0,,1,5000,,
2111136496028562243,3102390314325864140,161376446886129,2621571073,
--3,1,1_85,15003,3,30001,93900,110,-30,12_500_1_9,,0_2000330;1_2001994;2_2000330;3_2001994,24_34,300,2,0,0,,1,5000,,
2111137595573787972,3102346878247888168,161376446886133,1,
--4,1,1_122,15004,4,30001,124200,100,0,12_500_1_9,,0_2000329;0_2101;1_2001993;1_2101;2_2000329;2_2101;3_2001993;3_2101,24_34,300,2,0,0,,,,,
2111138695124503365,3102390346538230660,161376446886137,1,
--5,1,1_160,15005,5,30001,205700,170,-30,12_500_1_9,,0_2000335;0_2000330;0_2000333;0_2101;1_2001999;1_2001997;1_2001994;1_2101;2_2000335;2_2000330;2_2000333;2_2101;3_2001999;3_2001997;3_2001994;3_2101,24_34,300,2,0,0,,,,,
2111139794672959302,3102390308957343920,5790875981099265,44097,
--6,1,1_170,15006,6,30001,282800,100,-30,12_500_1_9,,0_2000457;0_2000458;0_2000459;0_2000461;0_2000462;0_2101;1_2002121;1_2002122;1_2002123;1_2002125;1_2002126;1_2101;2_2000457;2_2000458;2_2000459;2_2000461;2_2000462;2_2101;3_2002121;3_2002122;3_2002123;3_2002125;3_2002126;3_2101,24_34,300,2,1,1,0_15002;0_2035;1_15002;1_2035;2_15002;2_2035;3_15002;3_2035,,,,
2111140894209271367,3102390319694880660,6001982213632265,44099,
--7,1,1_200,15007,7,30001,401300,120,-30,12_500_1_9,,0_2000561;0_2000562;0_2000563;0_2000565;0_2000566;0_2101;1_2002225;1_2002226;1_2002227;1_2002229;1_2002230;1_2101;2_2000561;2_2000562;2_2000563;2_2000565;2_2000566;2_2101;3_2002225;3_2002226;3_2002227;3_2002229;3_2002230;3_2101,24_34,300,5,1,1,0_15002;0_2036;1_15002;1_2036;2_15002;2_2036;3_15002;3_2036,,,,
2111141993754524744,3102393041631219400,6001982213632273,44101,
--8,1,1_240,15008,8,30001,1216200,70,-40,12_500_1_9,,0_2000665;0_2000666;0_2000667;0_2000669;0_2000670;0_2101;1_2002329;1_2002330;1_2002331;1_2002333;1_2002334;1_2101;2_2000665;2_2000666;2_2000667;2_2000669;2_2000670;2_2101;3_2002329;3_2002330;3_2002331;3_2002333;3_2002334;3_2101,24_34,300,5,1,1,0_15003;0_15002;0_2036;1_15003;1_15002;1_2036;2_15003;2_15002;2_2036;3_15003;3_15002;3_2036,,,,
2111143093299648585,3102390346541064060,6001982213632281,44103,
--9,1,1_300,15009,9,30001,3039100,170,-30,12_500_1_9,,0_2000769;0_2000770;0_2000771;0_2000773;0_2000774;0_2101;1_2002433;1_2002434;1_2002435;1_2002437;1_2002438;1_2101;2_2000769;2_2000770;2_2000771;2_2000773;2_2000774;2_2101;3_2002433;3_2002434;3_2002435;3_2002437;3_2002438;3_2101,24_34,300,5,1,1,0_15003;0_15002;0_2037;1_15003;1_15002;1_2037;2_15003;2_15002;2_2037;3_15003;3_15002;3_2037,,,,
2111144192844871754,3102387608501362860,6001982213632289,44105,
--10,1,1_360,15010,10,30001,4989100,190,-20,12_500_1_9,,0_2000873;0_2000874;0_2000875;0_2000877;0_2000878;0_2101;1_2002537;1_2002538;1_2002539;1_2002541;1_2002542;1_2101;2_2000873;2_2000874;2_2000875;2_2000877;2_2000878;2_2101;3_2002537;3_2002538;3_2002539;3_2002541;3_2002542;3_2101,24_34,300,5,1,1,0_15004;0_15003;0_2037;1_15004;1_15003;1_2037;2_15004;2_15003;2_2037;3_15004;3_15003;3_2037,,,,
2111145292394416971,3102393079218291340,6001982213632297,44107,
--11,1,1_400,15011,11,30001,7324300,140,-40,12_500_1_9,,0_2000977;0_2000978;0_2000979;0_2000981;0_2000982;0_2101;1_2002641;1_2002642;1_2002643;1_2002645;1_2002646;1_2101;2_2000977;2_2000978;2_2000979;2_2000981;2_2000982;2_2101;3_2002641;3_2002642;3_2002643;3_2002645;3_2002646;3_2101,24_34,300,5,1,1,0_15004;0_15003;0_2038;1_15004;1_15003;1_2038;2_15004;2_15003;2_2038;3_15004;3_15003;3_2038,,,,
2111146391935236428,3102390314334973240,6001982213632305,44109,
--12,1,1_470,15012,12,30001,9203000,110,-30,12_500_1_9,,0_2001081;0_2001082;0_2001083;0_2001085;0_2001086;0_2101;1_2002745;1_2002746;1_2002747;1_2002749;1_2002750;1_2101;2_2001081;2_2001082;2_2001083;2_2001085;2_2001086;2_2101;3_2002745;3_2002746;3_2002747;3_2002749;3_2002750;3_2101,24_34,300,5,1,1,0_15005;0_15004;0_2038;1_15005;1_15004;1_2038;2_15005;2_15004;2_2038;3_15005;3_15004;3_2038,,,,
2111147491484794957,3102409531646554480,6001982213632313,44111,
--13,1,1_550,15013,13,30001,26489200,65,-100,12_500_1_9,,0_2001185;0_2001186;0_2001187;0_2001189;0_2001190;0_2101;1_2002849;1_2002850;1_2002851;1_2002853;1_2002854;1_2101;2_2001185;2_2001186;2_2001187;2_2001189;2_2001190;2_2101;3_2002849;3_2002850;3_2002851;3_2002853;3_2002854;3_2101,24_34,300,5,1,1,0_15005;0_15004;0_2039;1_15005;1_15004;1_2039;2_15005;2_15004;2_2039;3_15005;3_15004;3_2039,,,,
2111148591029984590,3102409604134267900,6001982213632321,44113,
--14,1,1_630,15014,14,30001,36629500,200,-100,12_500_1_9,,0_2001289;0_2001290;0_2001291;0_2001293;0_2001294;0_2101;1_2002953;1_2002954;1_2002955;1_2002957;1_2002958;1_2101;2_2001289;2_2001290;2_2001291;2_2001293;2_2001294;2_2101;3_2002953;3_2002954;3_2002955;3_2002957;3_2002958;3_2101,24_34,300,5,1,1,0_15006;0_15005;0_2039;1_15006;1_15005;1_2039;2_15006;2_15005;2_2039;3_15006;3_15005;3_2039,,,,
2111149690575174479,3102409545087766380,6001982213632329,44115,
--15,1,1_710,15015,15,30001,45928300,90,-100,12_500_1_9,,0_2001393;0_2001394;0_2001395;0_2001397;0_2001398;0_2101;1_2003057;1_2003058;1_2003059;1_2003061;1_2003062;1_2101;2_2001393;2_2001394;2_2001395;2_2001397;2_2001398;2_2101;3_2003057;3_2003058;3_2003059;3_2003061;3_2003062;3_2101,24_34,300,5,1,1,0_15006;0_15005;0_2040;1_15006;1_15005;1_2040;2_15006;2_15005;2_2040;3_15006;3_15005;3_2040,,,,
2111150790119257680,3102409566582331360,6001982213632337,44117,
--16,1,1_750,15016,16,30001,65656800,130,-100,12_500_1_9,,0_2001497;0_2001498;0_2001499;0_2001501;0_2001502;0_2101;1_2003161;1_2003162;1_2003163;1_2003165;1_2003166;1_2101;2_2001497;2_2001498;2_2001499;2_2001501;2_2001502;2_2101;3_2003161;3_2003162;3_2003163;3_2003165;3_2003166;3_2101,24_34,300,5,1,1,0_15007;0_15006;0_2040;1_15007;1_15006;1_2040;2_15007;2_15006;2_2040;3_15007;3_15006;3_2040,,,,
2111151889660881489,3102404074514297300,6001982213632345,44117,
--17,1,1_800,15017,17,30001,187052500,140,-80,12_500_1_9,,0_2001601;0_2001602;0_2001603;0_2001605;0_2001606;0_2101;1_2003265;1_2003266;1_2003267;1_2003269;1_2003270;1_2101;2_2001601;2_2001602;2_2001603;2_2001605;2_2001606;2_2101;3_2003265;3_2003266;3_2003267;3_2003269;3_2003270;3_2101,24_34,300,5,1,1,0_15007;0_15006;0_2040;1_15007;1_15006;1_2040;2_15007;2_15006;2_2040;3_15007;3_15006;3_2040,,,,
}
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,}
local L_NamesByNum = {
ID = 1,
CanShow = 2,
Monster = 4,
Layer = 5,
CloneID = 6,
Power = 7,
Size = 8,
ModelYPos = 9,
Time = 14,
MinGrade = 15,
ShowPanel = 16,
ShowBoss = 17,
IsGuide = 19,
HPper = 20,
}
local L_NamesByString = {
StateLevel = 3,
FristReward = 10,
Reward = 11,
Drop = 12,
Pos = 13,
PreciousDrop = 18,
}
local L_ColNameIndexs = {
ID = 0,
CanShow = 1,
StateLevel = 2,
Monster = 3,
Layer = 4,
CloneID = 5,
Power = 6,
Size = 7,
ModelYPos = 8,
FristReward = 9,
Reward = 10,
Drop = 11,
Pos = 12,
Time = 13,
MinGrade = 14,
ShowPanel = 15,
ShowBoss = 16,
PreciousDrop = 17,
IsGuide = 18,
HPper = 19,
}
--local L_ColumnUseBitCount = {6,2,17,15,6,16,29,9,8,17,2,17,17,10,4,2,2,17,2,14,}
--local L_ColumnList = {1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,4,4,4,}
--local L_ShiftDataList = {0,6,8,25,40,46,0,29,38,46,0,2,19,36,46,50,52,0,17,19,}
--local L_AndDataList = {31,1,65535,16383,31,32767,268435455,255,127,65535,1,65535,65535,511,7,1,1,65535,1,8191,}
local L_ColumnShiftAndList = {1,0,31,1,6,1,1,8,65535,1,25,16383,1,40,31,1,46,32767,2,0,268435455,2,29,255,2,38,127,2,46,65535,3,0,1,3,2,65535,3,19,65535,3,36,511,3,46,7,3,50,1,3,52,1,4,0,65535,4,17,1,4,19,8191,}
local L_ColNum = 20;
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 = 17
}
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