gameconf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: GPL-3.0 Imports: 4 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChaoMap = enums.ChaoNameMap
View Source
var CharacterMap = map[string]string{
	"sonic":           enums.CTStrSonic,
	"tails":           enums.CTStrTails,
	"knuckles":        enums.CTStrTails,
	"amy":             enums.CTStrAmy,
	"shadow":          enums.CTStrShadow,
	"blaze":           enums.CTStrBlaze,
	"rouge":           enums.CTStrRouge,
	"omega":           enums.CTStrOmega,
	"big":             enums.CTStrBig,
	"cream":           enums.CTStrCream,
	"espio":           enums.CTStrEspio,
	"charmy":          enums.CTStrCharmy,
	"vector":          enums.CTStrVector,
	"silver":          enums.CTStrSilver,
	"metalSonic":      enums.CTStrMetalSonic,
	"classicSonic":    enums.CTStrClassicSonic,
	"werehog":         enums.CTStrWerehog,
	"sticks":          enums.CTStrSticks,
	"tikal":           enums.CTStrTikal,
	"mephiles":        enums.CTStrMephiles,
	"psiSilver":       enums.CTStrPSISilver,
	"espSilver":       enums.CTStrPSISilver,
	"amitieAmy":       enums.CTStrAmitieAmy,
	"gothicAmy":       enums.CTStrGothicAmy,
	"halloweenShadow": enums.CTStrHalloweenShadow,
	"halloweenRouge":  enums.CTStrHalloweenRouge,
	"halloweenOmega":  enums.CTStrHalloweenOmega,
	"xmasSonic":       enums.CTStrXMasSonic,
	"xmasTails":       enums.CTStrXMasTails,
	"xmasKnuckles":    enums.CTStrXMasKnuckles,
	"empty":           "-1",
	"none":            "-1",
}
View Source
var Defaults = map[string]interface{}{
	"DAllCharactersUnlocked": true,
	"DAllChaoUnlocked":       true,
	"DDefaultMainCharacter":  "sonic",
	"DDefaultSubCharacter":   "empty",
	"DDefaultMainChao":       "empty",
	"DDefaultSubChao":        "empty",
	"DStartingRings":         int64(5000),
	"DStartingRedRings":      int64(25),
	"DStartingEnergy":        int64(5),
	"DAllItemsFree":          true,
}

defaults

Functions

func Parse

func Parse(filename string) error

Types

type ConfigFile

type ConfigFile struct {
	AllCharactersUnlocked bool   `json:"allCharactersUnlocked,omitempty"`
	AllChaoUnlocked       bool   `json:"allChaoUnlocked,omitempty"`
	DefaultMainCharacter  string `json:"defaultMainCharacter,omitempty"`
	DefaultSubCharacter   string `json:"defaultSubCharacter,omitempty"`
	DefaultMainChao       string `json:"defaultMainChao,omitempty"`
	DefaultSubChao        string `json:"defaultSubChao,omitempty"`
	StartingRings         int64  `json:"startingRings,omitempty"`
	StartingRedRings      int64  `json:"startingRedRings,omitempty"`
	StartingEnergy        int64  `json:"startingEnergy,omitempty"`
	AllItemsFree          bool   `json:"allItemsFree,omitempty"`
}
var CFile ConfigFile

Jump to

Keyboard shortcuts

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