format

package
v0.0.0-...-b729ba2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumberOfClassesMap = map[Format]int{
		Highlander: 9,
		Sixes:      6,
		Fours:      4,
		Ultiduo:    2,
		Bball:      2,
		Debug:      1,
	}

	FriendlyNamesMap = map[Format]string{
		Highlander: "Highlander",
		Sixes:      "6s",
		Fours:      "4v4",
		Ultiduo:    "Ultiduo",
		Bball:      "Bball",
		Debug:      "Debug",
	}
)

Functions

func GetClasses

func GetClasses(format Format) []string

func GetSlot

func GetSlot(lobbytype Format, teamStr string, classStr string) (int, error)

GetSlot returns the slot number for given team, class strings and the lobby format

func GetSlotTeamClass

func GetSlotTeamClass(lobbytype Format, slot int) (team, class string, err error)

GetSlotTeamClass returns the team and class strings for a given slot number

Types

type Format

type Format int
const (
	Sixes      Format = iota
	Highlander        // lol
	Fours
	Ultiduo
	Bball
	Debug
)

Jump to

Keyboard shortcuts

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