--文件是自动生成,请勿手动修改.来自数据文件:AuctionCareMenu local L_CompressMaxColumn = 2 local L_CompressData = { 17397860,1, --100,男性装备,,,,,,, 288377992316025957,16992, --101,5阶,100,100,1,1,2000433_2000434_2000435_2000436_2000437_2000438_2000439_2000440_2000457_2000458_2000459_2000460_2000461_2000462_2000463_2000464,, 288380741095097446,16994, --102,6阶,100,140,1,1,2000537_2000538_2000539_2000540_2000541_2000542_2000543_2000544_2000561_2000562_2000563_2000564_2000565_2000566_2000567_2000568,, 288384177068936295,16996, --103,7阶,100,190,1,1,2000641_2000642_2000643_2000644_2000645_2000646_2000647_2000648_2000665_2000666_2000667_2000668_2000669_2000670_2000671_2000672,, 288387613042775144,16998, --104,8阶,100,240,1,1,2000745_2000746_2000747_2000748_2000749_2000750_2000751_2000752_2000769_2000770_2000771_2000772_2000773_2000774_2000775_2000776,, 288391736211381353,17000, --105,9阶,100,300,1,1,2000849_2000850_2000851_2000852_2000853_2000854_2000855_2000856_2000873_2000874_2000875_2000876_2000877_2000878_2000879_2000880,, 288395859379987562,17002, --106,10阶,100,360,1,1,2000953_2000954_2000955_2000956_2000957_2000958_2000959_2000960_2000977_2000978_2000979_2000980_2000981_2000982_2000983_2000984,, 288398608159059051,17004, --107,11阶,100,400,1,1,2001057_2001058_2001059_2001060_2001061_2001062_2001063_2001064_2001081_2001082_2001083_2001084_2001085_2001086_2001087_2001088,, 288403418522432620,17006, --108,12阶,100,470,1,1,2001161_2001162_2001163_2001164_2001165_2001166_2001167_2001168_2001185_2001186_2001187_2001188_2001189_2001190_2001191_2001192,, 288408916080573549,17008, --109,13阶,100,550,1,1,2001265_2001266_2001267_2001268_2001269_2001270_2001271_2001272_2001289_2001290_2001291_2001292_2001293_2001294_2001295_2001296,, 288414413638714478,17010, --110,14阶,100,630,1,1,2001369_2001370_2001371_2001372_2001373_2001374_2001375_2001376_2001393_2001394_2001395_2001396_2001397_2001398_2001399_2001400,, 288419911196855407,17012, --111,15阶,100,710,1,1,2001473_2001474_2001475_2001476_2001477_2001478_2001479_2001480_2001497_2001498_2001499_2001500_2001501_2001502_2001503_2001504,, 288422659975926896,17014, --112,16阶,100,750,1,1,2001577_2001578_2001579_2001580_2001581_2001582_2001583_2001584_2001601_2001602_2001603_2001604_2001605_2001606_2001607_2001608,, 17423560,1, --200,女性装备,,,,,,, 288377999026912457,17016, --201,5阶,200,100,1,1,2002097_2002098_2002099_2002100_2002101_2002102_2002103_2002104_2002121_2002122_2002123_2002124_2002125_2002126_2002127_2002128,, 288380747805983946,17017, --202,6阶,200,140,1,1,2002201_2002202_2002203_2002204_2002205_2002206_2002207_2002208_2002225_2002226_2002227_2002228_2002229_2002230_2002231_2002232,, 288384183779822795,17018, --203,7阶,200,190,1,1,2002305_2002306_2002307_2002308_2002309_2002310_2002311_2002312_2002329_2002330_2002331_2002332_2002333_2002334_2002335_2002336,, 288387619753661644,17019, --204,8阶,200,240,1,1,2002409_2002410_2002411_2002412_2002413_2002414_2002415_2002416_2002433_2002434_2002435_2002436_2002437_2002438_2002439_2002440,, 288391742922267853,17020, --205,9阶,200,300,1,1,2002513_2002514_2002515_2002516_2002517_2002518_2002519_2002520_2002537_2002538_2002539_2002540_2002541_2002542_2002543_2002544,, 288395866090874062,17021, --206,10阶,200,360,1,1,2002617_2002618_2002619_2002620_2002621_2002622_2002623_2002624_2002641_2002642_2002643_2002644_2002645_2002646_2002647_2002648,, 288398614869945551,17022, --207,11阶,200,400,1,1,2002721_2002722_2002723_2002724_2002725_2002726_2002727_2002728_2002745_2002746_2002747_2002748_2002749_2002750_2002751_2002752,, 288403425233319120,17023, --208,12阶,200,470,1,1,2002825_2002826_2002827_2002828_2002829_2002830_2002831_2002832_2002849_2002850_2002851_2002852_2002853_2002854_2002855_2002856,, 288408922791460049,17024, --209,13阶,200,550,1,1,2002929_2002930_2002931_2002932_2002933_2002934_2002935_2002936_2002953_2002954_2002955_2002956_2002957_2002958_2002959_2002960,, 288414420349600978,17025, --210,14阶,200,630,1,1,2003033_2003034_2003035_2003036_2003037_2003038_2003039_2003040_2003057_2003058_2003059_2003060_2003061_2003062_2003063_2003064,, 288419917907741907,17026, --211,15阶,200,710,1,1,2003137_2003138_2003139_2003140_2003141_2003142_2003143_2003144_2003161_2003162_2003163_2003164_2003165_2003166_2003167_2003168,, 288422666686813396,17027, --212,16阶,200,750,1,1,2003241_2003242_2003243_2003244_2003245_2003246_2003247_2003248_2003265_2003266_2003267_2003268_2003269_2003270_2003271_2003272,, 576460752320860460,1, --300,男性圣装,,,,2,,, 576460841172960557,17029, --301,6阶,300,1,,2,4006611_4006612_4006613_4006614_4006615_4006616_4006617_4006618_4006619_4006620_4006621,, 576460841172962606,17030, --302,7阶,300,1,,2,4007611_4007612_4007613_4007614_4007615_4007616_4007617_4007618_4007619_4007620_4007621,, 864691217324676399,17031, --303,8阶,300,1,,3,4008611_4008612_4008613_4008614_4008615_4008616_4008617_4008618_4008619_4008620_4008621,, 864691217324678448,17032, --304,9阶,300,1,,3,4009611_4009612_4009613_4009614_4009615_4009616_4009617_4009618_4009619_4009620_4009621,, 864691217324680497,17033, --305,10阶,300,1,,3,4500045_4500046_4500047_4500048_4500049_4500050_4500051_4500052_4500053_4500054_4500055,, 2305843098083241266,17034, --306,11阶,300,1,,8,4500056_4500057_4500058_4500059_4500060_4500061_4500062_4500063_4500064_4500065_4500066,, 2305843098083243315,17035, --307,12阶,300,1,,8,4500067_4500068_4500069_4500070_4500071_4500072_4500073_4500074_4500075_4500076_4500077,, 4323455731145227572,17036, --308,13阶,300,1,,15,4500078_4500079_4500080_4500081_4500082_4500083_4500084_4500085_4500086_4500087_4500088,, 4323455731145229621,17037, --309,14阶,300,1,,15,4500089_4500090_4500091_4500092_4500093_4500094_4500095_4500096_4500097_4500098_4500099,, 4323455731145231670,17038, --310,15阶,300,1,,15,4500100_4500101_4500102_4500103_4500104_4500105_4500106_4500107_4500108_4500109_4500110,, 4323455731145233719,17039, --311,16阶,300,1,,15,4500111_4500112_4500113_4500114_4500115_4500116_4500117_4500118_4500119_4500120_4500121,, 6123206732233195832,17041, --312,17阶,300,1,500,21,4500122_4500123_4500124_4500125_4500126_4500127_4500128_4500129_4500130_4500131_4500132,, 6123347469721553209,17043, --313,18阶,300,1,501,21,4500133_4500134_4500135_4500136_4500137_4500138_4500139_4500140_4500141_4500142_4500143,, 6126865906930438458,17045, --314,19阶,300,1,526,21,4500144_4500145_4500146_4500147_4500148_4500149_4500150_4500151_4500152_4500153_4500154,, 6130384344139323707,17047, --315,20阶,300,1,551,21,4500155_4500156_4500157_4500158_4500159_4500160_4500161_4500162_4500163_4500164_4500165,, 6133902781348208956,17049, --316,21阶,300,1,576,21,4500166_4500167_4500168_4500169_4500170_4500171_4500172_4500173_4500174_4500175_4500176,, 6137421218557094205,17051, --317,22阶,300,1,601,21,4500177_4500178_4500179_4500180_4500181_4500182_4500183_4500184_4500185_4500186_4500187,, 6140939655765979454,17053, --318,23阶,300,1,626,21,4500188_4500189_4500190_4500191_4500192_4500193_4500194_4500195_4500196_4500197_4500198,, 6144458092974864703,17055, --319,24阶,300,1,651,21,4500199_4500200_4500201_4500202_4500203_4500204_4500205_4500206_4500207_4500208_4500209,, 6147976530183749952,17057, --320,25阶,300,1,676,21,4500210_4500211_4500212_4500213_4500214_4500215_4500216_4500217_4500218_4500219_4500220,, 6151494967392635201,17059, --321,26阶,300,1,701,21,4500221_4500222_4500223_4500224_4500225_4500226_4500227_4500228_4500229_4500230_4500231,, 6155013404601520450,17061, --322,27阶,300,1,726,21,4500232_4500233_4500234_4500235_4500236_4500237_4500238_4500239_4500240_4500241_4500242,, 6158531841810405699,17063, --323,28阶,300,1,751,21,4500243_4500244_4500245_4500246_4500247_4500248_4500249_4500250_4500251_4500252_4500253,, 6162050279019290948,17065, --324,29阶,300,1,776,21,4500254_4500255_4500256_4500257_4500258_4500259_4500260_4500261_4500262_4500263_4500264,, 6165568716228176197,17067, --325,30阶,300,1,801,21,4500265_4500266_4500267_4500268_4500269_4500270_4500271_4500272_4500273_4500274_4500275,, 576460752320901520,1, --400,女性圣装,,,,2,,, 576460847883847057,17069, --401,6阶,400,1,,2,4106611_4106612_4106613_4106614_4106615_4106616_4106617_4106618_4106619_4106620_4106621,, 576460847883849106,17070, --402,7阶,400,1,,2,4107611_4107612_4107613_4107614_4107615_4107616_4107617_4107618_4107619_4107620_4107621,, 864691224035562899,17071, --403,8阶,400,1,,3,4108611_4108612_4108613_4108614_4108615_4108616_4108617_4108618_4108619_4108620_4108621,, 864691224035564948,17074, --404,9阶,400,1,,3,4109611_4109612_4109613_4109614_4109615_4109616_4109617_4109618_4109619_4109620_4109621,, 864691224035566997,17075, --405,10阶,400,1,,3,4500320_4500321_4500322_4500323_4500324_4500325_4500326_4500327_4500328_4500329_4500330,, 2305843104794127766,17076, --406,11阶,400,1,,8,4500331_4500332_4500333_4500334_4500335_4500336_4500337_4500338_4500339_4500340_4500341,, 2305843104794129815,17077, --407,12阶,400,1,,8,4500342_4500343_4500344_4500345_4500346_4500347_4500348_4500349_4500350_4500351_4500352,, 4323455737856114072,17078, --408,13阶,400,1,,15,4500353_4500354_4500355_4500356_4500357_4500358_4500359_4500360_4500361_4500362_4500363,, 4323455737856116121,17079, --409,14阶,400,1,,15,4500364_4500365_4500366_4500367_4500368_4500369_4500370_4500371_4500372_4500373_4500374,, 4323455737856118170,17080, --410,15阶,400,1,,15,4500375_4500376_4500377_4500378_4500379_4500380_4500381_4500382_4500383_4500384_4500385,, 4323455737856120219,17081, --411,16阶,400,1,,15,4500386_4500387_4500388_4500389_4500390_4500391_4500392_4500393_4500394_4500395_4500396,, 6123206738944082332,17082, --412,17阶,400,1,500,21,4500397_4500398_4500399_4500400_4500401_4500402_4500403_4500404_4500405_4500406_4500407,, 6123347476432439709,17083, --413,18阶,400,1,501,21,4500408_4500409_4500410_4500411_4500412_4500413_4500414_4500415_4500416_4500417_4500418,, 6126865913641324958,17084, --414,19阶,400,1,526,21,4500419_4500420_4500421_4500422_4500423_4500424_4500425_4500426_4500427_4500428_4500429,, 6130384350850210207,17085, --415,20阶,400,1,551,21,4500430_4500431_4500432_4500433_4500434_4500435_4500436_4500437_4500438_4500439_4500440,, 6133902788059095456,17086, --416,21阶,400,1,576,21,4500441_4500442_4500443_4500444_4500445_4500446_4500447_4500448_4500449_4500450_4500451,, 6137421225267980705,17087, --417,22阶,400,1,601,21,4500452_4500453_4500454_4500455_4500456_4500457_4500458_4500459_4500460_4500461_4500462,, 6140939662476865954,17088, --418,23阶,400,1,626,21,4500463_4500464_4500465_4500466_4500467_4500468_4500469_4500470_4500471_4500472_4500473,, 6144458099685751203,17089, --419,24阶,400,1,651,21,4500474_4500475_4500476_4500477_4500478_4500479_4500480_4500481_4500482_4500483_4500484,, 6147976536894636452,17090, --420,25阶,400,1,676,21,4500485_4500486_4500487_4500488_4500489_4500490_4500491_4500492_4500493_4500494_4500495,, 6151494974103521701,17091, --421,26阶,400,1,701,21,4500496_4500497_4500498_4500499_4500500_4500501_4500502_4500503_4500504_4500505_4500506,, 6155013411312406950,17092, --422,27阶,400,1,726,21,4500507_4500508_4500509_4500510_4500511_4500512_4500513_4500514_4500515_4500516_4500517,, 6158531848521292199,17093, --423,28阶,400,1,751,21,4500518_4500519_4500520_4500521_4500522_4500523_4500524_4500525_4500526_4500527_4500528,, 6162050285730177448,17094, --424,29阶,400,1,776,21,4500529_4500530_4500531_4500532_4500533_4500534_4500535_4500536_4500537_4500538_4500539,, 6165568722939062697,17095, --425,30阶,400,1,801,21,4500540_4500541_4500542_4500543_4500544_4500545_4500546_4500547_4500548_4500549_4500550,, 17506804,1, --500,材料,,,,,,, 33571939829,17098, --501,套装材料,500,,,,24001_24002_24003_24004_24005_24006_24007_24008_24009_24010_24011_24012_24013_24014_24015_24016_24017_24018_24019_24020_24021_24022_24023,, 33571941878,17100, --502,器灵材料,500,,,,15103_15104_15105_15106_15107_15108_15109_15110_15111,, 33571943927,17102, --503,法宝外观,500,,,,15002_15003_15004_15005_15006_15007,, 33571945976,17104, --504,翅膀外观,500,,,,11010_11011_11012_11013_11014_11015_11016_11017_11018_11019,, 33571948025,17106, --505,装备材料,500,,,,19007_19008,, 33571950074,17108, --506,魔魂碎片,500,,,,1323_1324_1325_1326_1327_1328_1329_1330_1331_1332_1333_1334_1335_1336_1337_1338,, } local L_MainKeyDic = { [100]=1,[101]=2,[102]=3,[103]=4,[104]=5,[105]=6,[106]=7,[107]=8,[108]=9,[109]=10,[110]=11,[111]=12,[112]=13,[200]=14,[201]=15, [202]=16,[203]=17,[204]=18,[205]=19,[206]=20,[207]=21,[208]=22,[209]=23,[210]=24,[211]=25,[212]=26,[300]=27,[301]=28,[302]=29,[303]=30, [304]=31,[305]=32,[306]=33,[307]=34,[308]=35,[309]=36,[310]=37,[311]=38,[312]=39,[313]=40,[314]=41,[315]=42,[316]=43,[317]=44,[318]=45, [319]=46,[320]=47,[321]=48,[322]=49,[323]=50,[324]=51,[325]=52,[400]=53,[401]=54,[402]=55,[403]=56,[404]=57,[405]=58,[406]=59,[407]=60, [408]=61,[409]=62,[410]=63,[411]=64,[412]=65,[413]=66,[414]=67,[415]=68,[416]=69,[417]=70,[418]=71,[419]=72,[420]=73,[421]=74,[422]=75, [423]=76,[424]=77,[425]=78,[500]=79,[501]=80,[502]=81,[503]=82,[504]=83,[505]=84,[506]=85,} local L_NamesByNum = { Id = 1, ParentId = 3, LevelLimit = 4, WorldLevelLimit = 5, OpenServerDayLimit = 6, } local L_NamesByString = { Name = 2, ItemList = 7, } local L_ColNameIndexs = { Id = 0, Name = 1, ParentId = 2, LevelLimit = 3, WorldLevelLimit = 4, OpenServerDayLimit = 5, ItemList = 6, } --local L_ColumnUseBitCount = {10,16,10,11,11,6,16,} --local L_ColumnList = {1,1,1,1,1,1,2,} --local L_ShiftDataList = {0,10,26,36,47,58,0,} --local L_AndDataList = {511,32767,511,1023,1023,31,32767,} local L_ColumnShiftAndList = {1,0,511,1,10,32767,1,26,511,1,36,1023,1,47,1023,1,58,31,2,0,32767,} 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 - 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 = 85 } 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