internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const ReleaseRequestFailed = "failed"

Variables

This section is empty.

Functions

func CheckAccount added in v0.2.1

func CheckAccount()

func CheckForUpdate added in v0.2.1

func CheckForUpdate()

func Compile

func Compile(botDir string) error

func FetchBot

func FetchBot(url string, name string, customBotDir string)

func FetchBotByLanguage

func FetchBotByLanguage(lang string, name string)

func GenerateGame

func GenerateGame(bot1Dir string, bot2Dir string, gameFlags *GameFlags)

func GetBotLanguage

func GetBotLanguage(botDir string) (*config.Language, error)

func Login added in v0.2.1

func Login()

func Logout added in v0.2.1

func Logout()

func Play

func Play(bot1Dir string, bot2Dir string, gameFlags *GameFlags, viewReplay bool, replayViewerWidth string)

func ShowReplayViewer

func ShowReplayViewer(replayFile string, replayViewerWidth string)

func ShowSupportedLanguages

func ShowSupportedLanguages()

func ShowVersions

func ShowVersions()

func Update

func Update()

func Upload added in v0.2.1

func Upload(botDir string)

Types

type CommandRef

type CommandRef struct {
	// contains filtered or unexported fields
}

type GameFlags

type GameFlags struct {
	GameSeed   int
	MapSeed    int
	Port       int
	MapPath    string
	ReplayPath string
	ConfigPath string
	DebugBots  []int
}

type LiaConfig

type LiaConfig struct {
	Language string `json:"language"`
}

type ReleaseConfig

type ReleaseConfig struct {
	Tag         string `json:"tag"`
	LastChecked string `json:"lastChecked"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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