New server framework, an example, and compressed packet fixed.

This commit is contained in:
Tnze
2021-11-27 15:25:55 +08:00
parent b909621c58
commit ab63acbd7e
13 changed files with 2792 additions and 69 deletions

10
server/gameplay.go Normal file
View File

@ -0,0 +1,10 @@
package server
import (
"github.com/Tnze/go-mc/net"
"github.com/google/uuid"
)
type GamePlay interface {
AcceptPlayer(name string, id uuid.UUID, protocol int32, conn *net.Conn)
}