PlayerList in game

This commit is contained in:
Tnze
2022-06-23 13:13:38 +08:00
parent eecfa6d8a8
commit d829c47731
7 changed files with 119 additions and 56 deletions

View File

@ -70,7 +70,7 @@ func (s *Server) acceptConn(conn *net.Conn) {
case 1: // list ping
s.acceptListPing(conn)
case 2: // login
name, id, profilePubKey, err := s.AcceptLogin(conn, protocol)
name, id, profilePubKey, properties, err := s.AcceptLogin(conn, protocol)
if err != nil {
var loginErr *LoginFailErr
if errors.As(err, &loginErr) {
@ -84,6 +84,6 @@ func (s *Server) acceptConn(conn *net.Conn) {
}
return
}
s.AcceptPlayer(name, id, profilePubKey, protocol, conn)
s.AcceptPlayer(name, id, profilePubKey, properties, protocol, conn)
}
}