17 lines
200 B
Go
17 lines
200 B
Go
package server
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Player struct {
|
|
uuid uuid.UUID
|
|
//Websocket connection here
|
|
}
|
|
|
|
func NewPlayer(uuid uuid.UUID) *Player {
|
|
return &Player{
|
|
uuid: uuid,
|
|
}
|
|
}
|