xml

package
v0.0.0-...-155dca2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModsConfigFilename = "ModsConfig.xml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ModsConfigData

type ModsConfigData struct {
	XMLName    xml.Name `xml:"ModsConfigData"`
	Text       string   `xml:",chardata"`
	Version    string   `xml:"version"`
	ActiveMods struct {
		Text string   `xml:",chardata"`
		Mod  []string `xml:"li"`
	} `xml:"activeMods"`
	KnownExpansions struct {
		Text      string `xml:",chardata"`
		Expansion string `xml:"li"`
	} `xml:"knownExpansions"`
	// contains filtered or unexported fields
}

func LoadModsConfig

func LoadModsConfig(configFile string) (mcd *ModsConfigData, err error)

func (*ModsConfigData) Save

func (m *ModsConfigData) Save()

type Savegame

type Savegame struct {
	XMLName xml.Name `xml:"savegame"`
	Text    string   `xml:",chardata"`
	Meta    struct {
		Text        string `xml:",chardata"`
		GameVersion string `xml:"gameVersion"`
		ModIds      struct {
			Text  string   `xml:",chardata"`
			ModId []string `xml:"li"`
		} `xml:"modIds"`
		ModNames struct {
			Text    string   `xml:",chardata"`
			ModName []string `xml:"li"`
		} `xml:"modNames"`
	} `xml:"meta"`
}

Jump to

Keyboard shortcuts

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