2022-12-14 21:19:47 +00:00
|
|
|
package server
|
|
|
|
|
2023-04-18 20:19:28 +00:00
|
|
|
import (
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
2022-12-14 21:19:47 +00:00
|
|
|
|
|
|
|
type Player struct {
|
2023-04-18 20:19:28 +00:00
|
|
|
uuid uuid.UUID
|
2023-04-22 17:23:46 +00:00
|
|
|
//Websocket connection here
|
2022-12-14 21:19:47 +00:00
|
|
|
}
|
|
|
|
|
2023-04-18 20:19:28 +00:00
|
|
|
func NewPlayer(uuid uuid.UUID) *Player {
|
2022-12-14 21:19:47 +00:00
|
|
|
return &Player{
|
2023-04-18 20:19:28 +00:00
|
|
|
uuid: uuid,
|
2022-12-14 21:19:47 +00:00
|
|
|
}
|
|
|
|
}
|