把所有网络操作抽象到NET中

This commit is contained in:
MrZ626
2021-03-28 21:08:15 +08:00
parent 35ac6eacbc
commit 4222fff2e3
8 changed files with 105 additions and 73 deletions

View File

@@ -1813,7 +1813,7 @@ function Player.lose(P,force)
gameOver()
P:newTask(#PLAYERS>1 and tick_lose or tick_finish)
if GAME.net then
WS.send("play","D")
NET.signal_die()
else
TASK.new(tick_autoPause)
end