format

package
v0.0.0-...-937b28e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: GPL-3.0 Imports: 1 Imported by: 9

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,
		Prolander:  7,
	}

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

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 ErrorInvalidClass

type ErrorInvalidClass string

func (ErrorInvalidClass) Error

func (e ErrorInvalidClass) Error() string

type ErrorInvalidSlot

type ErrorInvalidSlot int

func (ErrorInvalidSlot) Error

func (e ErrorInvalidSlot) Error() string

type ErrorInvalidTeam

type ErrorInvalidTeam string

func (ErrorInvalidTeam) Error

func (e ErrorInvalidTeam) Error() string

type Format

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

Jump to

Keyboard shortcuts

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