增加正在联网提示

This commit is contained in:
MrZ626
2020-10-20 13:37:08 +08:00
parent 33df3fcb49
commit 8ac1720e9d
4 changed files with 30 additions and 19 deletions

View File

@@ -1,7 +1,9 @@
local rem=table.remove
local tasks={}
local TASK={}
local TASK={
netTaskCount=0,
}
function TASK.getCount()
return #tasks
end
@@ -9,6 +11,9 @@ function TASK.update()
for i=#tasks,1,-1 do
local T=tasks[i]
if T.code(T.data)then
if T.data.net then
TASK.netTaskCount=TASK.netTaskCount-1
end
rem(tasks,i)
end
end