change building_config, server_config, unit_config field types

This commit is contained in:
Dawid Wysokiński 2020-06-19 17:57:26 +02:00
parent b2cab5452b
commit 3476188924
3 changed files with 452 additions and 452 deletions

View File

@ -3,261 +3,261 @@ package models
import "encoding/xml"
type BuildingConfig struct {
XMLName xml.Name `xml:"config" json:"xmlName" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"text" gqlgen:"text"`
XMLName xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Main struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"main" json:"main" gqlgen:"main"`
Barracks struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"barracks" json:"barracks" gqlgen:"barracks"`
Stable struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"stable" json:"stable" gqlgen:"stable"`
Garage struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"garage" json:"garage" gqlgen:"garage"`
Watchtower struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"watchtower" json:"watchtower" gqlgen:"watchtower"`
Snob struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"snob" json:"snob" gqlgen:"snob"`
Smith struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"smith" json:"smith" gqlgen:"smith"`
Place struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"place" json:"place" gqlgen:"place"`
Statue struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"statue" json:"statue" gqlgen:"statue"`
Market struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"market" json:"market" gqlgen:"market"`
Wood struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"wood" json:"wood" gqlgen:"wood"`
Stone struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"stone" json:"stone" gqlgen:"stone"`
Iron struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"iron" json:"iron" gqlgen:"iron"`
Farm struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"farm" json:"farm" gqlgen:"farm"`
Storage struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"storage" json:"storage" gqlgen:"storage"`
Hide struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"hide" json:"hide" gqlgen:"hide"`
Wall struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MaxLevel string `xml:"max_level" json:"maxLevel" gqlgen:"maxLevel"`
MinLevel string `xml:"min_level" json:"minLevel" gqlgen:"minLevel"`
Wood string `xml:"wood" json:"wood" gqlgen:"wood"`
Stone string `xml:"stone" json:"stone" gqlgen:"stone"`
Iron string `xml:"iron" json:"iron" gqlgen:"iron"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor string `xml:"wood_factor" json:"woodFactor" gqlgen:"woodFactor"`
StoneFactor string `xml:"stone_factor" json:"stoneFactor" gqlgen:"stoneFactor"`
IronFactor string `xml:"iron_factor" json:"ironFactor" gqlgen:"ironFactor"`
PopFactor string `xml:"pop_factor" json:"popFactor" gqlgen:"popFactor"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
BuildTimeFactor string `xml:"build_time_factor" json:"buildTimeFactor" gqlgen:"buildTimeFactor"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MaxLevel int `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
MinLevel int `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
Wood int `xml:"wood" json:"wood" gqlgen:"wood"`
Stone int `xml:"stone" json:"stone" gqlgen:"stone"`
Iron int `xml:"iron" json:"iron" gqlgen:"iron"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
WoodFactor float32 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
StoneFactor float32 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
IronFactor float32 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
PopFactor float32 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
BuildTimeFactor float32 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
} `xml:"wall" json:"wall" gqlgen:"wall"`
}

View File

@ -3,140 +3,140 @@ package models
import "encoding/xml"
type Config struct {
XMLName xml.Name `xml:"config" json:"xmlName" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
UnitSpeed string `xml:"unit_speed" json:"unitSpeed" gqlgen:"unitSpeed"`
Moral string `xml:"moral" json:"moral" gqlgen:"moral"`
XMLName xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
UnitSpeed float32 `xml:"unit_speed" json:"unit_speed" gqlgen:"unitSpeed"`
Moral float32 `xml:"moral" json:"moral" gqlgen:"moral"`
Build struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Destroy string `xml:"destroy" json:"destroy" gqlgen:"destroy"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Destroy float32 `xml:"destroy" json:"destroy" gqlgen:"destroy"`
} `xml:"build" json:"build" gqlgen:"build"`
Misc struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
KillRanking string `xml:"kill_ranking" json:"killRanking" gqlgen:"killRanking"`
Tutorial string `xml:"tutorial" json:"tutorial" gqlgen:"tutorial"`
TradeCancelTime string `xml:"trade_cancel_time" json:"tradeCancelTime" gqlgen:"tradeCancelTime"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
KillRanking int `xml:"kill_ranking" json:"kill_ranking" gqlgen:"killRanking"`
Tutorial int `xml:"tutorial" json:"tutorial" gqlgen:"tutorial"`
TradeCancelTime int `xml:"trade_cancel_time" json:"trade_cancel_time" gqlgen:"tradeCancelTime"`
} `xml:"misc" json:"misc" gqlgen:"misc"`
Commands struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MillisArrival string `xml:"millis_arrival" json:"millisArrival" gqlgen:"millisArrival"`
CommandCancelTime string `xml:"command_cancel_time" json:"commandCancelTime" gqlgen:"commandCancelTime"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MillisArrival int `xml:"millis_arrival" json:"millis_arrival" gqlgen:"millisArrival"`
CommandCancelTime int `xml:"command_cancel_time" json:"command_cancel_time" gqlgen:"commandCancelTime"`
} `xml:"commands" json:"commands" gqlgen:"commands"`
Newbie struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Days string `xml:"days" json:"days" gqlgen:"days"`
RatioDays string `xml:"ratio_days" json:"ratioDays" gqlgen:"ratioDays"`
Ratio string `xml:"ratio" json:"ratio" gqlgen:"ratio"`
RemoveNewbieVillages string `xml:"removeNewbieVillages" json:"removeNewbieVillages" gqlgen:"removeNewbieVillages"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Days int `xml:"days" json:"days" gqlgen:"days"`
RatioDays int `xml:"ratio_days" json:"ratio_days" gqlgen:"ratioDays"`
Ratio int `xml:"ratio" json:"ratio" gqlgen:"ratio"`
RemoveNewbieVillages int `xml:"removeNewbieVillages" json:"remove_newbie_villages" gqlgen:"removeNewbieVillages"`
} `xml:"newbie" json:"newbie" gqlgen:"newbie"`
Game struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildtimeFormula string `xml:"buildtime_formula" json:"buildtimeFormula" gqlgen:"buildtimeFormula"`
Knight string `xml:"knight" json:"knight" gqlgen:"knight"`
KnightNewItems string `xml:"knight_new_items" json:"knightNewItems" gqlgen:"knightNewItems"`
Archer string `xml:"archer" json:"archer" gqlgen:"archer"`
Tech string `xml:"tech" json:"tech" gqlgen:"tech"`
FarmLimit string `xml:"farm_limit" json:"farmLimit" gqlgen:"farmLimit"`
Church string `xml:"church" json:"church" gqlgen:"church"`
Watchtower string `xml:"watchtower" json:"watchtower" gqlgen:"watchtower"`
Stronghold string `xml:"stronghold" json:"stronghold" gqlgen:"stronghold"`
FakeLimit string `xml:"fake_limit" json:"fakeLimit" gqlgen:"fakeLimit"`
BarbarianRise string `xml:"barbarian_rise" json:"barbarianRise" gqlgen:"barbarianRise"`
BarbarianShrink string `xml:"barbarian_shrink" json:"barbarianShrink" gqlgen:"barbarianShrink"`
BarbarianMaxPoints string `xml:"barbarian_max_points" json:"barbarianMaxPoints" gqlgen:"barbarianMaxPoints"`
Hauls string `xml:"hauls" json:"hauls" gqlgen:"hauls"`
HaulsBase string `xml:"hauls_base" json:"haulsBase" gqlgen:"haulsBase"`
HaulsMax string `xml:"hauls_max" json:"haulsMax" gqlgen:"haulsMax"`
BaseProduction string `xml:"base_production" json:"baseProduction" gqlgen:"baseProduction"`
Event string `xml:"event" json:"event" gqlgen:"event"`
SuppressEvents string `xml:"suppress_events" json:"suppressEvents" gqlgen:"suppressEvents"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildtimeFormula int `xml:"buildtime_formula" json:"buildtime_formula" gqlgen:"buildtimeFormula"`
Knight int `xml:"knight" json:"knight" gqlgen:"knight"`
KnightNewItems bool `xml:"knight_new_items" json:"knight_new_items" gqlgen:"knightNewItems"`
Archer int `xml:"archer" json:"archer" gqlgen:"archer"`
Tech int `xml:"tech" json:"tech" gqlgen:"tech"`
FarmLimit int `xml:"farm_limit" json:"farm_limit" gqlgen:"farmLimit"`
Church int `xml:"church" json:"church" gqlgen:"church"`
Watchtower int `xml:"watchtower" json:"watchtower" gqlgen:"watchtower"`
Stronghold int `xml:"stronghold" json:"stronghold" gqlgen:"stronghold"`
FakeLimit int `xml:"fake_limit" json:"fake_limit" gqlgen:"fakeLimit"`
BarbarianRise float32 `xml:"barbarian_rise" json:"barbarian_rise" gqlgen:"barbarianRise"`
BarbarianShrink int `xml:"barbarian_shrink" json:"barbarian_shrink" gqlgen:"barbarianShrink"`
BarbarianMaxPoints int `xml:"barbarian_max_points" json:"barbarian_max_points" gqlgen:"barbarianMaxPoints"`
Hauls int `xml:"hauls" json:"hauls" gqlgen:"hauls"`
HaulsBase int `xml:"hauls_base" json:"hauls_base" gqlgen:"haulsBase"`
HaulsMax int `xml:"hauls_max" json:"hauls_max" gqlgen:"haulsMax"`
BaseProduction int `xml:"base_production" json:"base_production" gqlgen:"baseProduction"`
Event int `xml:"event" json:"event" gqlgen:"event"`
SuppressEvents int `xml:"suppress_events" json:"suppress_events" gqlgen:"suppressEvents"`
} `xml:"game" json:"game" gqlgen:"game"`
Buildings struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
CustomMain string `xml:"custom_main" json:"customMain" gqlgen:"customMain"`
CustomFarm string `xml:"custom_farm" json:"customFarm" gqlgen:"customFarm"`
CustomStorage string `xml:"custom_storage" json:"customStorage" gqlgen:"customStorage"`
CustomPlace string `xml:"custom_place" json:"customPlace" gqlgen:"customPlace"`
CustomBarracks string `xml:"custom_barracks" json:"customBarracks" gqlgen:"customBarracks"`
CustomChurch string `xml:"custom_church" json:"customChurch" gqlgen:"customChurch"`
CustomSmith string `xml:"custom_smith" json:"customSmith" gqlgen:"customSmith"`
CustomWood string `xml:"custom_wood" json:"customWood" gqlgen:"customWood"`
CustomStone string `xml:"custom_stone" json:"customStone" gqlgen:"customStone"`
CustomIron string `xml:"custom_iron" json:"customIron" gqlgen:"customIron"`
CustomMarket string `xml:"custom_market" json:"customMarket" gqlgen:"customMarket"`
CustomStable string `xml:"custom_stable" json:"customStable" gqlgen:"customStable"`
CustomWall string `xml:"custom_wall" json:"customWall" gqlgen:"customWall"`
CustomGarage string `xml:"custom_garage" json:"customGarage" gqlgen:"customGarage"`
CustomHide string `xml:"custom_hide" json:"customHide" gqlgen:"customHide"`
CustomSnob string `xml:"custom_snob" json:"customSnob" gqlgen:"customSnob"`
CustomStatue string `xml:"custom_statue" json:"customStatue" gqlgen:"customStatue"`
CustomWatchtower string `xml:"custom_watchtower" json:"customWatchtower" gqlgen:"customWatchtower"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
CustomMain int `xml:"custom_main" json:"custom_main" gqlgen:"customMain"`
CustomFarm int `xml:"custom_farm" json:"custom_farm" gqlgen:"customFarm"`
CustomStorage int `xml:"custom_storage" json:"custom_storage" gqlgen:"customStorage"`
CustomPlace int `xml:"custom_place" json:"custom_place" gqlgen:"customPlace"`
CustomBarracks int `xml:"custom_barracks" json:"custom_barracks" gqlgen:"customBarracks"`
CustomChurch int `xml:"custom_church" json:"custom_church" gqlgen:"customChurch"`
CustomSmith int `xml:"custom_smith" json:"custom_smith" gqlgen:"customSmith"`
CustomWood int `xml:"custom_wood" json:"custom_wood" gqlgen:"customWood"`
CustomStone int `xml:"custom_stone" json:"custom_stone" gqlgen:"customStone"`
CustomIron int `xml:"custom_iron" json:"custom_iron" gqlgen:"customIron"`
CustomMarket int `xml:"custom_market" json:"custom_market" gqlgen:"customMarket"`
CustomStable int `xml:"custom_stable" json:"custom_stable" gqlgen:"customStable"`
CustomWall int `xml:"custom_wall" json:"custom_wall" gqlgen:"customWall"`
CustomGarage int `xml:"custom_garage" json:"custom_garage" gqlgen:"customGarage"`
CustomHide int `xml:"custom_hide" json:"custom_hide" gqlgen:"customHide"`
CustomSnob int `xml:"custom_snob" json:"custom_snob" gqlgen:"customSnob"`
CustomStatue int `xml:"custom_statue" json:"custom_statue" gqlgen:"customStatue"`
CustomWatchtower int `xml:"custom_watchtower" json:"custom_watchtower" gqlgen:"customWatchtower"`
} `xml:"buildings" json:"buildings" gqlgen:"buildings"`
Snob struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Gold string `xml:"gold" json:"gold" gqlgen:"gold"`
CheapRebuild string `xml:"cheap_rebuild" json:"cheapRebuild" gqlgen:"cheapRebuild"`
Rise string `xml:"rise" json:"rise" gqlgen:"rise"`
MaxDist string `xml:"max_dist" json:"maxDist" gqlgen:"maxDist"`
Factor string `xml:"factor" json:"factor" gqlgen:"factor"`
CoinWood string `xml:"coin_wood" json:"coinWood" gqlgen:"coinWood"`
CoinStone string `xml:"coin_stone" json:"coinStone" gqlgen:"coinStone"`
CoinIron string `xml:"coin_iron" json:"coinIron" gqlgen:"coinIron"`
NoBarbConquer string `xml:"no_barb_conquer" json:"noBarbConquer" gqlgen:"noBarbConquer"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Gold int `xml:"gold" json:"gold" gqlgen:"gold"`
CheapRebuild int `xml:"cheap_rebuild" json:"cheap_rebuild" gqlgen:"cheapRebuild"`
Rise int `xml:"rise" json:"rise" gqlgen:"rise"`
MaxDist int `xml:"max_dist" json:"max_dist" gqlgen:"maxDist"`
Factor float32 `xml:"factor" json:"factor" gqlgen:"factor"`
CoinWood int `xml:"coin_wood" json:"coin_wood" gqlgen:"coinWood"`
CoinStone int `xml:"coin_stone" json:"coin_stone" gqlgen:"coinStone"`
CoinIron int `xml:"coin_iron" json:"coin_iron" gqlgen:"coinIron"`
NoBarbConquer bool `xml:"no_barb_conquer" json:"no_barb_conquer" gqlgen:"noBarbConquer"`
} `xml:"snob" json:"snob" gqlgen:"snob"`
Ally struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
NoHarm string `xml:"no_harm" json:"noHarm" gqlgen:"noHarm"`
NoOtherSupport string `xml:"no_other_support" json:"noOtherSupport" gqlgen:"noOtherSupport"`
AllytimeSupport string `xml:"allytime_support" json:"allytimeSupport" gqlgen:"allytimeSupport"`
NoLeave string `xml:"no_leave" json:"noLeave" gqlgen:"noLeave"`
NoJoin string `xml:"no_join" json:"noJoin" gqlgen:"noJoin"`
Limit string `xml:"limit" json:"limit" gqlgen:"limit"`
FixedAllies string `xml:"fixed_allies" json:"fixedAllies" gqlgen:"fixedAllies"`
PointsMemberCount string `xml:"points_member_count" json:"pointsMemberCount" gqlgen:"pointsMemberCount"`
WarsMemberRequirement string `xml:"wars_member_requirement" json:"warsMemberRequirement" gqlgen:"warsMemberRequirement"`
WarsPointsRequirement string `xml:"wars_points_requirement" json:"warsPointsRequirement" gqlgen:"warsPointsRequirement"`
WarsAutoacceptDays string `xml:"wars_autoaccept_days" json:"warsAutoacceptDays" gqlgen:"warsAutoacceptDays"`
Levels string `xml:"levels" json:"levels" gqlgen:"levels"`
XpRequirements string `xml:"xp_requirements" json:"xpRequirements" gqlgen:"xpRequirements"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
NoHarm int `xml:"no_harm" json:"no_harm" gqlgen:"noHarm"`
NoOtherSupport int `xml:"no_other_support" json:"no_other_support" gqlgen:"noOtherSupport"`
AllytimeSupport int `xml:"allytime_support" json:"allytime_support" gqlgen:"allytimeSupport"`
NoLeave int `xml:"no_leave" json:"no_leave" gqlgen:"noLeave"`
NoJoin int `xml:"no_join" json:"no_join" gqlgen:"noJoin"`
Limit int `xml:"limit" json:"limit" gqlgen:"limit"`
FixedAllies int `xml:"fixed_allies" json:"fixed_allies" gqlgen:"fixedAllies"`
PointsMemberCount int `xml:"points_member_count" json:"points_member_count" gqlgen:"pointsMemberCount"`
WarsMemberRequirement int `xml:"wars_member_requirement" json:"wars_member_requirement" gqlgen:"warsMemberRequirement"`
WarsPointsRequirement int `xml:"wars_points_requirement" json:"wars_points_requirement" gqlgen:"warsPointsRequirement"`
WarsAutoacceptDays int `xml:"wars_autoaccept_days" json:"wars_autoaccept_days" gqlgen:"warsAutoacceptDays"`
Levels int `xml:"levels" json:"levels" gqlgen:"levels"`
XpRequirements string `xml:"xp_requirements" json:"xp_requirements" gqlgen:"xpRequirements"`
} `xml:"ally" json:"ally" gqlgen:"ally"`
Coord struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
MapSize string `xml:"map_size" json:"mapSize" gqlgen:"mapSize"`
Func string `xml:"func" json:"func" gqlgen:"func"`
EmptyVillages string `xml:"empty_villages" json:"emptyVillages" gqlgen:"emptyVillages"`
BonusVillages string `xml:"bonus_villages" json:"bonusVillages" gqlgen:"bonusVillages"`
Inner string `xml:"inner" json:"inner" gqlgen:"inner"`
SelectStart string `xml:"select_start" json:"selectStart" gqlgen:"selectStart"`
VillageMoveWait string `xml:"village_move_wait" json:"villageMoveWait" gqlgen:"villageMoveWait"`
NobleRestart string `xml:"noble_restart" json:"nobleRestart" gqlgen:"nobleRestart"`
StartVillages string `xml:"start_villages" json:"startVillages" gqlgen:"startVillages"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
MapSize int `xml:"map_size" json:"map_size" gqlgen:"mapSize"`
Func int `xml:"func" json:"func" gqlgen:"func"`
EmptyVillages int `xml:"empty_villages" json:"empty_villages" gqlgen:"emptyVillages"`
BonusVillages int `xml:"bonus_villages" json:"bonus_villages" gqlgen:"bonusVillages"`
BonusNew int `xml:"bonus_new" json:"bonus_new" gqlgen:"bonusNew"`
Inner int `xml:"inner" json:"inner" gqlgen:"inner"`
SelectStart int `xml:"select_start" json:"select_start" gqlgen:"selectStart"`
VillageMoveWait int `xml:"village_move_wait" json:"village_move_wait" gqlgen:"villageMoveWait"`
NobleRestart int `xml:"noble_restart" json:"noble_restart" gqlgen:"nobleRestart"`
StartVillages int `xml:"start_villages" json:"start_villages" gqlgen:"startVillages"`
} `xml:"coord" json:"coord" gqlgen:"coord"`
Sitter struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Allow string `xml:"allow" json:"allow" gqlgen:"allow"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Allow int `xml:"allow" json:"allow" gqlgen:"allow"`
} `xml:"sitter" json:"sitter" gqlgen:"sitter"`
Sleep struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Active string `xml:"active" json:"active" gqlgen:"active"`
Delay string `xml:"delay" json:"delay" gqlgen:"delay"`
Min string `xml:"min" json:"min" gqlgen:"min"`
Max string `xml:"max" json:"max" gqlgen:"max"`
MinAwake string `xml:"min_awake" json:"minAwake" gqlgen:"minAwake"`
MaxAwake string `xml:"max_awake" json:"maxAwake" gqlgen:"maxAwake"`
WarnTime string `xml:"warn_time" json:"warnTime" gqlgen:"warnTime"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Active int `xml:"active" json:"active" gqlgen:"active"`
Delay int `xml:"delay" json:"delay" gqlgen:"delay"`
Min int `xml:"min" json:"min" gqlgen:"min"`
Max int `xml:"max" json:"max" gqlgen:"max"`
MinAwake int `xml:"min_awake" json:"min_awake" gqlgen:"minAwake"`
MaxAwake int `xml:"max_awake" json:"max_awake" gqlgen:"maxAwake"`
WarnTime int `xml:"warn_time" json:"warn_time" gqlgen:"warnTime"`
} `xml:"sleep" json:"sleep" gqlgen:"sleep"`
Night struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Active string `xml:"active" json:"active" gqlgen:"active"`
StartHour string `xml:"start_hour" json:"startHour" gqlgen:"startHour"`
EndHour string `xml:"end_hour" json:"endHour" gqlgen:"endHour"`
DefFactor string `xml:"def_factor" json:"defFactor" gqlgen:"defFactor"`
Duration string `xml:"duration" json:"duration" gqlgen:"duration"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Active int `xml:"active" json:"active" gqlgen:"active"`
StartHour int `xml:"start_hour" json:"start_hour" gqlgen:"startHour"`
EndHour int `xml:"end_hour" json:"end_hour" gqlgen:"endHour"`
DefFactor int `xml:"def_factor" json:"def_factor" gqlgen:"defFactor"`
} `xml:"night" json:"night" gqlgen:"night"`
Win struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
Check string `xml:"check" json:"check" gqlgen:"check"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Check int `xml:"check" json:"check" gqlgen:"check"`
} `xml:"win" json:"win" gqlgen:"win"`
}

View File

@ -3,149 +3,149 @@ package models
import "encoding/xml"
type UnitConfig struct {
XMLName xml.Name `xml:"config" json:"xmlName" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"text" gqlgen:"text"`
XMLName xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
Spear struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"spear" json:"spear" gqlgen:"spear"`
Sword struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"sword" json:"sword" gqlgen:"sword"`
Axe struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"axe" json:"axe" gqlgen:"axe"`
Archer struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"archer" json:"archer" gqlgen:"archer"`
Spy struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"spy" json:"spy" gqlgen:"spy"`
Light struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"light" json:"light" gqlgen:"light"`
Marcher struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"marcher" json:"marcher" gqlgen:"marcher"`
Heavy struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"heavy" json:"heavy" gqlgen:"heavy"`
Ram struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"ram" json:"ram" gqlgen:"ram"`
Catapult struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"catapult" json:"catapult" gqlgen:"catapult"`
Knight struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"knight" json:"knight" gqlgen:"knight"`
Snob struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"snob" json:"snob" gqlgen:"snob"`
Militia struct {
Text string `xml:",chardata" json:"text" gqlgen:"text"`
BuildTime string `xml:"build_time" json:"buildTime" gqlgen:"buildTime"`
Pop string `xml:"pop" json:"pop" gqlgen:"pop"`
Speed string `xml:"speed" json:"speed" gqlgen:"speed"`
Attack string `xml:"attack" json:"attack" gqlgen:"attack"`
Defense string `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry string `xml:"defense_cavalry" json:"defenseCavalry" gqlgen:"defenseCavalry"`
DefenseArcher string `xml:"defense_archer" json:"defenseArcher" gqlgen:"defenseArcher"`
Carry string `xml:"carry" json:"carry" gqlgen:"carry"`
Text string `xml:",chardata" json:"-" gqlgen:"text"`
BuildTime float32 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
Speed float32 `xml:"speed" json:"speed" gqlgen:"speed"`
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
Defense int `xml:"defense" json:"defense" gqlgen:"defense"`
DefenseCavalry int `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
DefenseArcher int `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
Carry int `xml:"carry" json:"carry" gqlgen:"carry"`
} `xml:"militia" json:"militia" gqlgen:"militia"`
}