--文件是自动生成,请勿手动修改.来自数据文件:universe_Task local L_CompressMaxColumn = 1 local L_CompressData = { 826840384530646081, --1,1,1,打通槃瓠通道,击杀[fe8625]槃瓠遗灵[-]([fe8625]{0}/1[-]),31101_31102_31103_31104_31105_31106_31107_31108_31109,1,, 826857976716690562, --2,2,1,打通槃瓠通道,击杀[fe8625]槃瓠遗灵[-]([fe8625]{0}/1[-]),32101_32102_32103_32104_32105_32106_32107_32108_32109,1,, 826875568902735043, --3,3,1,打通槃瓠通道,击杀[fe8625]槃瓠遗灵[-]([fe8625]{0}/1[-]),33101_33102_33103_33104_33105_33106_33107_33108_33109,1,, 826893161088779524, --4,4,1,打通槃瓠通道,击杀[fe8625]槃瓠遗灵[-]([fe8625]{0}/1[-]),34101_34102_34103_34104_34105_34106_34107_34108_34109,1,, 826945940868238661, --5,5,3,盘古凶兽,击杀[fe8625]盘古遗灵[-]([fe8625]{0}/1[-]),41001_41002_41003_41004_41005_41006_41007_41008_41009,1,, 826998719037032518, --6,1,2,妖界三魔,击杀[fe8625]重楼[-]([fe8625]{0}/1[-]),31201_31202_31203_31204_31205_31206_31207_31208_31209,1,, 827033904482863175, --7,1,2,妖界三魔,击杀[fe8625]蛟蠕[-]([fe8625]{0}/1[-]),31301_31302_31303_31304_31305_31306_31307_31308_31309,1,, 827069089928693832, --8,1,2,妖界三魔,击杀[fe8625]鬣虞[-]([fe8625]{0}/1[-]),31401_31402_31403_31404_31405_31406_31407_31408_31409,1,, 827086679967254665, --9,2,2,妖界三魔,击杀[fe8625]重楼[-]([fe8625]{0}/1[-]),32201_32202_32203_32204_32205_32206_32207_32208_32209,1,, 827104273227040906, --10,2,2,妖界三魔,击杀[fe8625]蛟蠕[-]([fe8625]{0}/1[-]),32301_32302_32303_32304_32305_32306_32307_32308_32309,1,, 827121866486827147, --11,2,2,妖界三魔,击杀[fe8625]鬣虞[-]([fe8625]{0}/1[-]),32401_32402_32403_32404_32405_32406_32407_32408_32409,1,, 827139456525387980, --12,3,2,妖界三魔,击杀[fe8625]重楼[-]([fe8625]{0}/1[-]),33201_33202_33203_33204_33205_33206_33207_33208_33209,1,, 827157049785174221, --13,3,2,妖界三魔,击杀[fe8625]蛟蠕[-]([fe8625]{0}/1[-]),33301_33302_33303_33304_33305_33306_33307_33308_33309,1,, 827174643044960462, --14,3,2,妖界三魔,击杀[fe8625]鬣虞[-]([fe8625]{0}/1[-]),33401_33402_33403_33404_33405_33406_33407_33408_33409,1,, 827192233083521295, --15,4,2,妖界三魔,击杀[fe8625]重楼[-]([fe8625]{0}/1[-]),34201_34202_34203_34204_34205_34206_34207_34208_34209,1,, 827209826343307536, --16,4,2,妖界三魔,击杀[fe8625]蛟蠕[-]([fe8625]{0}/1[-]),34301_34302_34303_34304_34305_34306_34307_34308_34309,1,, 827227419603093777, --17,4,2,妖界三魔,击杀[fe8625]鬣虞[-]([fe8625]{0}/1[-]),34401_34402_34403_34404_34405_34406_34407_34408_34409,1,, 827280202603942226, --18,5,4,八荒凶阵,击杀[fe8625]玄灵[-]([fe8625]{0}/1[-]),41101_41102_41103_41104_41105_41106_41107_41108_41109,1,, 827315388049772883, --19,5,4,八荒凶阵,击杀[fe8625]祝火[-]([fe8625]{0}/1[-]),41201_41202_41203_41204_41205_41206_41207_41208_41209,1,, 827350573495603540, --20,5,4,八荒凶阵,击杀[fe8625]御守[-]([fe8625]{0}/1[-]),41301_41302_41303_41304_41305_41306_41307_41308_41309,1,, 827385758941434197, --21,5,4,八荒凶阵,击杀[fe8625]饫餍[-]([fe8625]{0}/1[-]),41401_41402_41403_41404_41405_41406_41407_41408_41409,1,, 827420944387264854, --22,5,4,八荒凶阵,击杀[fe8625]八骨蛛[-]([fe8625]{0}/1[-]),41501_41502_41503_41504_41505_41506_41507_41508_41509,1,, 827456129833095511, --23,5,4,八荒凶阵,击杀[fe8625]狱魔[-]([fe8625]{0}/1[-]),41601_41602_41603_41604_41605_41606_41607_41608_41609,1,, 827491315278926168, --24,5,4,八荒凶阵,击杀[fe8625]斧灵[-]([fe8625]{0}/1[-]),41701_41702_41703_41704_41705_41706_41707_41708_41709,1,, 827526500724756825, --25,5,4,八荒凶阵,击杀[fe8625]巫凤[-]([fe8625]{0}/1[-]),41801_41802_41803_41804_41805_41806_41807_41808_41809,1,, } 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,} local L_NamesByNum = { Id = 1, Camp = 2, Group = 3, Num = 7, } local L_NamesByString = { Name = 4, Texture = 5, Target = 6, } local L_ColNameIndexs = { Id = 0, Camp = 1, Group = 2, Name = 3, Texture = 4, Target = 5, Num = 6, } --local L_ColumnUseBitCount = {6,4,4,15,15,15,2,} --local L_ColumnList = {1,1,1,1,1,1,1,} --local L_ShiftDataList = {0,6,10,14,29,44,59,} --local L_AndDataList = {31,7,7,16383,16383,16383,1,} local L_ColumnShiftAndList = {1,0,31,1,6,7,1,10,7,1,14,16383,1,29,16383,1,44,16383,1,59,1,} local L_ColNum = 7; 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] 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 = 25 } 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