房间内玩家对象管理单独做进新模块netPlayer,为未来消息气泡和发表情做准备

This commit is contained in:
MrZ626
2021-05-04 02:21:52 +08:00
parent a21e7a5e8d
commit 9836bda502
7 changed files with 211 additions and 111 deletions

View File

@@ -10,14 +10,9 @@ return{
},
load=function()
PLY.newPlayer(1)
local N=2
for i=1,#PLY_NET do
if PLY_NET[i].uid==USER.uid then
PLAYERS[1].sid=PLY_NET[1].sid
else
PLY.newRemotePlayer(N,false,PLY_NET[i])
N=N+1
end
PLAYERS[1].sid=netPLY.getSID(1)
for i=2,netPLY.getCount()do
PLY.newRemotePlayer(i,false,netPLY.getUID(i))
end
end,
}