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