Documentation ¶
Index ¶
- Variables
- func AcceptDuo(pPlayer *players.EntPlayer, sInviteCode string) error
- func AreDuoQueued(pPlayer1 *players.EntPlayer, pPlayer2 *players.EntPlayer) bool
- func CancelDuo(pPlayer *players.EntPlayer)
- func DuoOfferIDGenerator()
- func FindPlayerInArray(pPlayer *players.EntPlayer, arPlayers []*players.EntPlayer) int
- func GetAvgMmr(arPlayers []*players.EntPlayer) int
- func GetLongestWaitPlayer() *players.EntPlayer
- func GetNearestByMmrSinglePlayer(arTrimmedQueue []*players.EntPlayer, iFirstInDuo int) int
- func GetNewerSinglePlayer(arReadyOnly []*players.EntPlayer, iGamePlayers int) int
- func GetReadyPlayersOnly() []*players.EntPlayer
- func IsGroupRanked(arPlayers []*players.EntPlayer) bool
- func Join(pPlayer *players.EntPlayer)
- func KickOffline()
- func KickUnready()
- func Leave(pPlayer *players.EntPlayer, bGameStart bool)
- func OfferDuo(pPlayer *players.EntPlayer)
- func ReadyUp(pPlayer *players.EntPlayer)
- func RequestReadyUp()
- func SetLastUpdated()
- func SortTrimmedByMmr(arTrimmedQueue []*players.EntPlayer) []*players.EntPlayer
- func StopReadyUp()
- func TrimQueue(arReadyOnly []*players.EntPlayer) []*players.EntPlayer
- func WatchKickOffline()
- func WatchQueue()
- func Watchers()
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 AreDuoQueued ¶
func DuoOfferIDGenerator ¶
func DuoOfferIDGenerator()
func FindPlayerInArray ¶
func GetLongestWaitPlayer ¶
func GetNewerSinglePlayer ¶
func GetReadyPlayersOnly ¶
func IsGroupRanked ¶
func KickOffline ¶
func KickOffline()
func KickUnready ¶
func KickUnready()
func RequestReadyUp ¶
func RequestReadyUp()
func SetLastUpdated ¶
func SetLastUpdated()
func SortTrimmedByMmr ¶
func StopReadyUp ¶
func StopReadyUp()
func WatchKickOffline ¶
func WatchKickOffline()
func WatchQueue ¶
func WatchQueue()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.