queue

package
v0.0.0-...-e6cb9b4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BIsInReadyUp bool
View Source
var GenInviteCode = make(chan string)
View Source
var I64MaxQueueWait int64 = 15 * 60 * 1000 //ms
View Source
var IPlayersCount int
View Source
var IReadyPlayers int
View Source
var MapDuoOffers = make(map[string]*players.EntPlayer, 0)
View Source
var NewGamesBlocked bool
View Source
var PLongestWaitPlayer *players.EntPlayer

Functions

func AcceptDuo

func AcceptDuo(pPlayer *players.EntPlayer, sInviteCode string) error

func AreDuoQueued

func AreDuoQueued(pPlayer1 *players.EntPlayer, pPlayer2 *players.EntPlayer) bool

func CancelDuo

func CancelDuo(pPlayer *players.EntPlayer)

func DuoOfferIDGenerator

func DuoOfferIDGenerator()

func FindPlayerInArray

func FindPlayerInArray(pPlayer *players.EntPlayer, arPlayers []*players.EntPlayer) int

func GetAvgMmr

func GetAvgMmr(arPlayers []*players.EntPlayer) int

func GetLongestWaitPlayer

func GetLongestWaitPlayer() *players.EntPlayer

func GetNearestByMmrSinglePlayer

func GetNearestByMmrSinglePlayer(arTrimmedQueue []*players.EntPlayer, iFirstInDuo int) int

func GetNewerSinglePlayer

func GetNewerSinglePlayer(arReadyOnly []*players.EntPlayer, iGamePlayers int) int

func GetReadyPlayersOnly

func GetReadyPlayersOnly() []*players.EntPlayer

func IsGroupRanked

func IsGroupRanked(arPlayers []*players.EntPlayer) bool

func Join

func Join(pPlayer *players.EntPlayer)

func KickOffline

func KickOffline()

func KickUnready

func KickUnready()

func Leave

func Leave(pPlayer *players.EntPlayer, bGameStart bool)

func OfferDuo

func OfferDuo(pPlayer *players.EntPlayer)

func ReadyUp

func ReadyUp(pPlayer *players.EntPlayer)

func RequestReadyUp

func RequestReadyUp()

func SetLastUpdated

func SetLastUpdated()

func SortTrimmedByMmr

func SortTrimmedByMmr(arTrimmedQueue []*players.EntPlayer) []*players.EntPlayer

func StopReadyUp

func StopReadyUp()

func TrimQueue

func TrimQueue(arReadyOnly []*players.EntPlayer) []*players.EntPlayer

func WatchKickOffline

func WatchKickOffline()

func WatchQueue

func WatchQueue()

func Watchers

func Watchers()

Types

This section is empty.

Jump to

Keyboard shortcuts

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