Documentation ¶
Index ¶
- func ArraysMatch(ar1 []int, ar2 []int) bool
- func DetermineFinalScores(oResult EntGameResult, arPlayers [2][]*players.EntPlayer) [2]int
- func GeneratePairingVariants()
- func GetHappyDuoPlayers(arTeams [2][]*players.EntPlayer) int
- func GetMmrDiff(arVariantP [2][]*players.EntPlayer) int
- func IncreaseUncertainty()
- func IsHappyDuoPlayer(pPlayer *players.EntPlayer, arPlayers []*players.EntPlayer) bool
- func Pair(arUnpairedPlayers []*players.EntPlayer) ([]*players.EntPlayer, []*players.EntPlayer)
- func PlacePlayers(arUnpairedPlayers []*players.EntPlayer, iBPicksTwo int) [2][]*players.EntPlayer
- func SetCron()
- func UpdateMmr(oResult EntGameResult, arFinalScores [2]int, arPlayers [2][]*players.EntPlayer)
- func VariantExists(arCheckedVariant [2][]int) bool
- func Watchers()
- type EntGameResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArraysMatch ¶
func DetermineFinalScores ¶
func DetermineFinalScores(oResult EntGameResult, arPlayers [2][]*players.EntPlayer) [2]int
func GeneratePairingVariants ¶
func GeneratePairingVariants()
func GetHappyDuoPlayers ¶
func GetMmrDiff ¶
func IncreaseUncertainty ¶
func IncreaseUncertainty()
func IsHappyDuoPlayer ¶
func PlacePlayers ¶
func UpdateMmr ¶
func UpdateMmr(oResult EntGameResult, arFinalScores [2]int, arPlayers [2][]*players.EntPlayer)
func VariantExists ¶
Types ¶
type EntGameResult ¶
type EntGameResult struct { SettledScores [2]int CurrentScores [2]int InRound bool CurrentHalf int //1 or 2 TeamsFlipped bool TankKilled bool //only valid if InRound == true TankInPlay bool //only valid if InRound == true Dominator [2]string Inferior [2]string GameEnded bool //no more results should be accepted InMapTransition bool IsLastMap bool AbsentPlayers []string ConnectedPlayers int MapsFinished int SomeoneBanned bool }
Click to show internal directories.
Click to hide internal directories.