You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
481 B
24 lines
481 B
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 |
|
|
|
Kills int `json:"Kills"` |
|
Killed int `json:"Killed"` |
|
|
|
Won int `json:"Won"` |
|
Lost int `json:"Lost"` |
|
WinRate int `json:"WinRate"` |
|
|
|
Health int `json:"Health"` |
|
}
|
|
|