qclient

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) 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