qclient

package
v0.1.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortPlayers added in v0.1.35

func SortPlayers(players []Client)

Types

type Client

type Client struct {
	Name   qstring.QuakeString
	Team   qstring.QuakeString
	Skin   string
	Colors [2]uint8
	Frags  int
	Ping   int
	Time   uint8
	CC     string
}

func NewFromString

func NewFromString(clientString string) (Client, error)

func NewFromStrings

func NewFromStrings(clientStrings []string) []Client

func (Client) IsBot

func (client Client) IsBot() bool

func (Client) IsPlayer added in v0.1.39

func (client Client) IsPlayer() bool

func (Client) IsSpectator added in v0.1.10

func (client Client) IsSpectator() bool

func (Client) MarshalJSON added in v0.1.21

func (client Client) MarshalJSON() ([]byte, error)

type ClientExport added in v0.1.21

type ClientExport struct {
	Name      qstring.QuakeString
	NameColor string
	Team      qstring.QuakeString
	TeamColor string
	Skin      string
	Colors    [2]uint8
	Frags     int
	Ping      int
	Time      uint8
	CC        string
	IsBot     bool
}

func Export added in v0.1.21

func Export(client Client) ClientExport

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL