local propertyTable = { HeroType = 1,UIName = 2,Money = 3, } local mainPropertyTable = { HeroType = 1,UIName = 2,PageIndex = 3,LineIndex = 4, } local primaryTable = { "HeroType","UIName", } local DataPageEntry = {} local rawget = rawget local base = { __index = function(t, k) local propertyIndex = propertyTable[k] if propertyIndex then local mainPropertyIndex = mainPropertyTable[k] if mainPropertyIndex then return t[mainPropertyIndex] end local pageIndex = t[3] local pageData = DataPageEntry[pageIndex] if pageData == nil then pageData = require('Data/SuperGoldHUDData-page'..pageIndex) if DataSheetUtil then --skip fixedpoint process for data sheet checker DataSheetUtil.ProcessFixedPoint('SuperGoldHUDData', pageData) end DataPageEntry[pageIndex] = pageData end local lineIndex = t[4] local resultData = pageData[lineIndex] return resultData[propertyIndex] end end, __newindex = function() error('Attempt to modify read-only table') end } local dataTable = { setmetatable({1,"SuperGold/UISuperGoldMain",1,1},base), setmetatable({1,"SuperGold/SuperGoldStory/UISuperGoldStoryMain",1,2},base), setmetatable({1,"SuperGold/SuperGoldBoss/UISuperGoldBossMain",1,3},base), setmetatable({1,"SuperGold/SuperGoldDrawCard/UISuperGoldDrawCardMain",1,4},base), setmetatable({1,"SuperGold/SuperGoldHonorOrder/UISuperGoldHonorOrderMain",1,5},base), setmetatable({1,"SuperGold/SuperGoldLottery/UISuperGoldLotteryMain",1,6},base), setmetatable({1,"OperationActivity/OACommonDirectGift/UIOACommonDirectGiftPanel",1,7},base), setmetatable({2,"SuperGold/UISuperGoldMain",1,8},base), setmetatable({2,"SuperGold/SuperGoldStory/UISuperGoldStoryMain",1,9},base), setmetatable({2,"SuperGold/SuperGoldBoss/UISuperGoldBossMain",1,10},base), setmetatable({2,"SuperGold/SuperGoldDrawCard/UISuperGoldDrawCardMain",1,11},base), setmetatable({2,"SuperGold/SuperGoldHonorOrder/UISuperGoldHonorOrderMain",1,12},base), setmetatable({2,"SuperGold/SuperGoldLottery/UISuperGoldLotteryMain",1,13},base), setmetatable({2,"OperationActivity/OACommonDirectGift/UIOACommonDirectGiftPanel",1,14},base), setmetatable({3,"SuperGold/UISuperGoldMain",1,15},base), setmetatable({3,"SuperGold/SuperGoldStory/UISuperGoldStoryMain",1,16},base), setmetatable({3,"SuperGold/SuperGoldBoss/UISuperGoldBossMain",1,17},base), setmetatable({3,"SuperGold/SuperGoldDrawCard/UISuperGoldDrawCardMain",1,18},base), setmetatable({3,"SuperGold/SuperGoldHonorOrder/UISuperGoldHonorOrderMain",1,19},base), setmetatable({3,"SuperGold/SuperGoldLottery/UISuperGoldLotteryMain",1,20},base), setmetatable({3,"OperationActivity/OACommonDirectGift/UIOACommonDirectGiftPanel",1,21},base), setmetatable({4,"SuperGold/UISuperGoldMain",1,22},base), setmetatable({4,"SuperGold/SuperGoldStory/UISuperGoldStoryMain",1,23},base), setmetatable({4,"SuperGold/SuperGoldBoss/UISuperGoldBossMain",1,24},base), setmetatable({4,"SuperGold/SuperGoldDrawCard/UISuperGoldDrawCardMain",1,25},base), setmetatable({4,"SuperGold/SuperGoldHonorOrder/UISuperGoldHonorOrderMain",1,26},base), setmetatable({4,"SuperGold/SuperGoldLottery/UISuperGoldLotteryMain",1,27},base), setmetatable({4,"OperationActivity/OACommonDirectGift/UIOACommonDirectGiftPanel",1,28},base), setmetatable({5,"SuperGold/UISuperGoldMain",1,29},base), setmetatable({5,"SuperGold/SuperGoldStory/UISuperGoldStoryMain",1,30},base), setmetatable({5,"SuperGold/SuperGoldBoss/UISuperGoldBossMain",1,31},base), setmetatable({5,"SuperGold/SuperGoldDrawCard/UISuperGoldDrawCardMain",1,32},base), setmetatable({5,"SuperGold/SuperGoldHonorOrder/UISuperGoldHonorOrderMain",1,33},base), setmetatable({5,"SuperGold/SuperGoldLottery/UISuperGoldLotteryMain",1,34},base), setmetatable({5,"OperationActivity/OACommonDirectGift/UIOACommonDirectGiftPanel",1,35},base), } return { dataTable = dataTable, propertyTable = propertyTable, primaryTable = primaryTable, }