15 lines
176 B
Go
15 lines
176 B
Go
package server
|
|
|
|
import "github.com/gorilla/websocket"
|
|
|
|
type Player struct {
|
|
id int
|
|
conn *websocket.Conn
|
|
}
|
|
|
|
func NewPlayer(id int) *Player {
|
|
return &Player{
|
|
id: id,
|
|
}
|
|
}
|