1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| local utils = require('lua.libs.utils')
function Main()
local v = ShowAllServers()
print(v)
end
function ShowAllServers()
local rows = {}
for coreServ in Each(Server:GetAllServers()) do
local coreState = coreServ:GetCoreStates()
local row = {
coreState:GetIndex(),
coreState:GetLongName(),
coreState:GetSummary(),
coreState:GetMark(),
utils.ToLuaDate(coreState:GetLastModifiedUtcTicks()),
coreState:GetStatus(),
}
table.insert(rows, row)
end
local columns = {"序号", "名称", "摘要", "标记", "修改日期", "测速"}
return Misc:ShowData("服务器列表:", columns, rows, 3)
end
Main()
|