lobbySettings

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LobbyFormats []LobbyFormat
View Source
var LobbyLeagues []LobbyLeague
View Source
var LobbyMaps []LobbyMap
View Source
var LobbyWhitelists []LobbyWhitelist

Functions

func LoadLobbySettings

func LoadLobbySettings(data []byte) error

func LoadLobbySettingsFromFile

func LoadLobbySettingsFromFile(fileName string) error

func LobbySettingsToJSON

func LobbySettingsToJSON() *simplejson.Json

Types

type LobbyFormat

type LobbyFormat struct {
	//gorm.Model -- not in a database yet
	Name       string
	PrettyName string
	Important  bool
}

func GetLobbyFormat

func GetLobbyFormat(formatName string) (*LobbyFormat, bool)

type LobbyLeague

type LobbyLeague struct {
	//gorm.Model -- not in a database yet
	Name         string
	PrettyName   string
	Descriptions []*LobbyLeagueDescription `gorm:"many2many:lobby_league_descriptions"`
	Formats      []*LobbyLeagueFormat      `gorm:"many2many:lobby_league_formats"`
}

func GetLobbyLeague

func GetLobbyLeague(leagueName string) (*LobbyLeague, bool)

type LobbyLeagueDescription

type LobbyLeagueDescription struct {
	//gorm.Model -- not in a database yet
	MapType     MapType
	Description string
}

type LobbyLeagueFormat

type LobbyLeagueFormat struct {
	//gorm.Model -- not in a database yet
	Format *LobbyFormat
	Used   bool
}

type LobbyMap

type LobbyMap struct {
	//gorm.Model -- not in a database yet
	Name    string
	Formats []*LobbyMapFormat `gorm:"many2many:lobby_map_formats"`
}

func GetLobbyMap

func GetLobbyMap(mapName string) (*LobbyMap, bool)

func (*LobbyMap) GetFormat

func (m *LobbyMap) GetFormat(formatName string) (*LobbyMapFormat, bool)

type LobbyMapFormat

type LobbyMapFormat struct {
	//gorm.Model -- not in a database yet
	Format     *LobbyFormat
	Importance int
}

type LobbyWhitelist

type LobbyWhitelist struct {
	//gorm.Model -- not in a database yet
	ID         int
	PrettyName string
	League     *LobbyLeague
	Format     *LobbyFormat
}

func GetLobbyWhitelist

func GetLobbyWhitelist(whitelistId int) (*LobbyWhitelist, bool)

type MapType

type MapType string

TODO make int?

Jump to

Keyboard shortcuts

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