config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SF6Stages = map[string]string{
	"enmas hollow":           "Enma's Hollow",
	"ruined lab":             "Ruined Lab",
	"barmaley steelworks":    "Barmaley Steelworks",
	"bathers beach":          "Bathers Beach",
	"carrier byron taylor":   "Carrier Byron Taylor",
	"colosseo":               "Colosseo",
	"dhalsimer temple":       "Dhalsimer Temple",
	"fête foraine":           "Fête Foraine",
	"genbu temple":           "Genbu Temple",
	"king street":            "King Street",
	"metro city downtown":    "Metro City Downtown",
	"old town market":        "Old Town Market",
	"ranger's hut":           "Ranger's Hut",
	"suval'hal arena":        "Suval'hal Arena",
	"the macho ring":         "The Macho Ring",
	"thunderfoot settlement": "Thunderfoot Settlement",
	"tian hong yuan":         "Tian Hong Yuan",
	"training Room":          "Training Room",
}
View Source
var T8Stages = map[string]string{
	"arena":                         "Arena",
	"arena (underground)":           "Arena (Underground)",
	"urban square":                  "Urban Square",
	"urban square (evening)":        "Urban Square (Evening)",
	"yakushima":                     "Yakushima",
	"coliseum of fate":              "Coliseum of Fate",
	"rebel hangar":                  "Rebel Hanger",
	"fallen destiny":                "Fallen Destiny",
	"descent into subconsciousness": "Descent into Subconsciousness",
	"sanctum":                       "Sanctum",
	"into the stratpsphere":         "Into the Stratosphere",
	"ortiz farm":                    "Ortiz Farm",
	"celebration on the seine":      "Celebration on the Seine",
	"secluded training ground":      "Secluded Training Ground",
	"elegant palace":                "Elegant Palace",
	"midnight siege":                "Midnight Siege",
	"seaside resort":                "Seaside Resort",
	"genmaji temple":                "Genmaji Temple",
	"genmaji temple (daytime)":      "Genmaji Temple (Daytime)",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Startgg ConfigStartGG        `toml:"startgg"`
	Discord ConfigDiscordBot     `toml:"discordbot"`
	Roles   ConfigRolesIdDiscord `toml:"roles"`
}

func LoadConfig

func LoadConfig(file string) (Config, error)

type ConfigDiscordBot

type ConfigDiscordBot struct {
	Token   string `toml:"token"`
	GuildID string `toml:"guildID"`
	AppID   string `toml:"appID"`
}

type ConfigGame added in v1.0.0

type ConfigGame struct {
	Name string `toml:"name"`
}

type ConfigRolesIdDiscord

type ConfigRolesIdDiscord struct {
	Ru string `toml:"ru"`
}

type ConfigStartGG

type ConfigStartGG struct {
	Token string `toml:"token"`
}

type ConfigTournament

type ConfigTournament struct {
	Rules  RulesMatches `toml:"rules"`
	Stream StreamLobby  `toml:"stream"`
	Csv    Csv          `toml:"csv"`
	Game   ConfigGame   `toml:"game"`
}

func LoadTournament

func LoadTournament(file string) (ConfigTournament, error)

type Csv added in v0.1.1

type Csv struct {
	NameFile string `toml:"nameFile"`
}
type Logo struct {
	Img string `toml:"img"`
}

type RulesMatches

type RulesMatches struct {
	StandardFormat int    `toml:"standardFormat"`
	FinalsFormat   int    `toml:"finalsFormat"`
	Stage          string `toml:"stage"`
	Rounds         int    `toml:"rounds"`
	Duration       int    `toml:"duration"`
	Crossplatform  bool   `toml:"crossplatform"`
	Waiting        int    `toml:"waiting"`
}

type StreamLobby

type StreamLobby struct {
	Area          string `toml:"area"`
	Language      string `toml:"language"`
	Conn          string `toml:"connection"`
	Crossplatform bool   `toml:"crossplatform"`
	Passcode      string `toml:"passcode"`
}

Jump to

Keyboard shortcuts

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