--Info By Stapx Steve
--本模块包含一些用于获取底层数据的功能
local p = {} --p代表一个包(package)
function p.getGameID(name)
local userList = {}
local page_name = {
"Stapx Steve",
"123154567",
"159357890",
"DoctorX",
"ClownPiece",
"Lemon tea",
"Mars Cloud",
"Doodle",
"New Stars",
"Craft Kevin",
"Himokes",
"Sakuraa",
"Silver Lights",
"InitAuther97",
"Sjfhsjfh",
"A90ml",
"Czz",
"Jack Nero233",
"小龙",
"Xiaotao Jwhite",
"Kuai123",
"Ynnad",
"Dinnerbone",
"Kubor Kelp",
"NSTeno",
"L Ac",
"Wu NaO",
"Klcz 05",
"Windsky77",
"732Bread",
}
local game_name = {
"Stapx_Steve",
"123154567",
"159357890",
"DoctorX",
"Wakamiya_Eve",
"Lemon_tea",
"Mars_Cloud",
"DoodleHuang",
"new_stars",
"Craft_Kevin",
"himokes",
"sakuraa",
"Silver_Lights",
"InitAuther97",
"sjfhsjfh",
"a90ml",
"Czz",
"Jack_Nero233",
"xiaolong2011",
"xiaotao_jwhite",
"Kuai123",
"Ynnad",
"Dinnerbone",
"Kubor_Kelp",
"NSTeno_",
"L_Ac",
"Wu_NaO",
"klcz05",
"Windsky77",
"732Bread",
}
userList[1] = page_name
userList[2] = game_name
-- 检索数组
for i = 1, #userList[1] do
if(userList[1][i] == name)
then
return userList[2][i]
end
end
return "Steve"
end
-- 根据页面 frame 直接获取游戏 ID
function p.getGameIDPage(frame)
local page_name = tostring(mw.title.getCurrentTitle())
return p.getGameID(page_name)
end
return p