拆分全员准备和连接ws准备开局的提示

This commit is contained in:
MrZ626
2021-05-03 13:17:36 +08:00
parent 18b5efcc0e
commit d90f0f3e86
8 changed files with 15 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ local NET={
allow_online=false,
allReady=false,
serverGaming=false,
connectingStream=false,
roomList={},
accessToken=false,
rid=false,
@@ -441,6 +442,7 @@ function NET.updateWS_play()
NET.allReady=true
elseif res.action==8 then--Set
NET.rsid=d.rid
NET.connectingStream=true
NET.wsconn_stream()
elseif res.action==9 then--Game finished
NET.allReady=false
@@ -474,6 +476,7 @@ function NET.updateWS_stream()
if res.type=='Connect'then
NET.unlock('wsc_stream')
elseif res.action==0 then--Game start
NET.connectingStream=false
SCN.socketRead('Go',d)
elseif res.action==1 then--Game finished
--?