game

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Username string
	Operator string
}

type RoundInfo

type RoundInfo struct {
	MatchID    string
	RoundIndex int
	Time       time.Time
	SeasonSlug string
	MatchType  string `tstype:"MatchType"`
	GameMode   string `tstype:"GameMode"`
	MapName    string
	Teams      [2]Team
	Site       string
	// the following attributes relate to the recording player's team
	Won          bool
	WinCondition dissect.WinCondition `tstype:"WinCondition"`
	TeamIndex    int
	PlayerName   string
}

type RoundsWatcher added in v0.4.3

type RoundsWatcher struct {
	// contains filtered or unexported fields
}

func NewRoundsWatcher added in v0.4.3

func NewRoundsWatcher(gameDir string) (r *RoundsWatcher, err error)

func (*RoundsWatcher) Start added in v0.4.3

func (r *RoundsWatcher) Start(ctx context.Context) (<-chan RoundInfo, <-chan error)

type Team added in v0.5.0

type Team struct {
	Role    dissect.TeamRole `tstype:"TeamRole"`
	Players []Player
}

Jump to

Keyboard shortcuts

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