qteam

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Team

type Team struct {
	Name    qstring.QuakeString `json:"name"`
	Players []qclient.Client    `json:"players"`
}

func FromPlayers

func FromPlayers(players []qclient.Client) []Team

func (Team) Colors

func (t Team) Colors() [2]uint8

func (Team) Frags

func (t Team) Frags() int

func (Team) MarshalJSON

func (t Team) MarshalJSON() ([]byte, error)

func (Team) Ping added in v0.2.3

func (t Team) Ping() int

func (Team) String

func (t Team) String() string

type TeamExport

type TeamExport struct {
	Name      qstring.QuakeString `json:"name"`
	NameColor string              `json:"name_color"`
	Frags     int                 `json:"frags"`
	Ping      int                 `json:"ping"`
	Colors    [2]uint8            `json:"colors"`
	Players   []qclient.Client    `json:"players"`
}

func Export

func Export(t Team) TeamExport

Jump to

Keyboard shortcuts

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