Documentation
¶
Index ¶
- func ClientNames(clients []Client) []string
- type Client
- func NewFromLastStatsPlayer(player laststats.Player) Client
- func NewFromString(clientString string) (Client, error)
- func NewFromStrings(clientStrings []string) []Client
- func SortPlayers(players []Client) []Client
- func SortPlayersByFrags(players []Client) []Client
- func SortPlayersByName(players []Client) []Client
- func SortPlayersByTeamName(players []Client) []Client
- type ClientExport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientNames ¶ added in v0.1.65
Types ¶
type Client ¶
type Client struct {
Name qstring.QuakeString `json:"name"`
Team qstring.QuakeString `json:"team"`
Skin string `json:"skin"`
Colors [2]uint8 `json:"colors"`
Frags int `json:"frags"`
Ping int `json:"ping"`
Time int `json:"time"`
CC string `json:"cc"`
}
func NewFromLastStatsPlayer ¶ added in v0.3.0
func NewFromString ¶
func NewFromStrings ¶
func SortPlayers ¶ added in v0.1.35
func SortPlayersByFrags ¶ added in v0.2.4
func SortPlayersByName ¶ added in v0.2.4
func SortPlayersByTeamName ¶ added in v0.2.4
func (Client) IsSpectator ¶ added in v0.1.10
func (Client) MarshalJSON ¶ added in v0.1.21
type ClientExport ¶ added in v0.1.21
type ClientExport struct {
Name qstring.QuakeString `json:"name"`
NameColor string `json:"name_color"`
Team qstring.QuakeString `json:"team"`
TeamColor string `json:"team_color"`
Skin string `json:"skin"`
Colors [2]uint8 `json:"colors"`
Frags int `json:"frags"`
Ping int `json:"ping"`
Time int `json:"time"`
CC string `json:"cc"`
IsBot bool `json:"is_bot"`
}
func Export ¶ added in v0.1.21
func Export(client Client) ClientExport
Click to show internal directories.
Click to hide internal directories.