Player now supports WS

incorrect_closing_investigation
Evgeny Kovalev 2 years ago
parent 66f2cf6cc2
commit 4bc24431d2
  1. 7
      internal/player/player.go

@ -1,9 +1,14 @@
package player
import "github.com/gorilla/websocket"
type Player struct {
Name string `json:"Name"`
Password string `json:"Password"`
//Connection WS variable TODO
Conn *websocket.Conn
AuthString string `json:"AuthString"`
Level string `json:"Level"` // hidden from user, for balancing purposes
@ -14,4 +19,6 @@ type Player struct {
Won int `json:"Won"`
Lost int `json:"Lost"`
WinRate int `json:"WinRate"`
Health int `json:"Health"`
}

Loading…
Cancel
Save