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

@ -1,8 +1,8 @@
package server
import (
"crypto/rsa"
_ "embed"
"github.com/Tnze/go-mc/server/auth"
"github.com/google/uuid"
"github.com/Tnze/go-mc/net"
@ -13,5 +13,5 @@ type GamePlay interface {
//
// Note: the connection will be closed after this function returned.
// You don't need to close the connection, but to keep not returning while the player is playing.
AcceptPlayer(name string, id uuid.UUID, profilePubKey *rsa.PublicKey, protocol int32, conn *net.Conn)
AcceptPlayer(name string, id uuid.UUID, profilePubKey *auth.PublicKey, properties []auth.Property, protocol int32, conn *net.Conn)
}