package tw

import (
	"encoding/xml"
)

type Building struct {
	MaxLevel        int     `xml:"max_level"`
	MinLevel        int     `xml:"min_level"`
	Wood            int     `xml:"wood"`
	Stone           int     `xml:"stone"`
	Iron            int     `xml:"iron"`
	Pop             int     `xml:"pop"`
	WoodFactor      float64 `xml:"wood_factor"`
	StoneFactor     float64 `xml:"stone_factor"`
	IronFactor      float64 `xml:"iron_factor"`
	PopFactor       float64 `xml:"pop_factor"`
	BuildTime       float64 `xml:"build_time"`
	BuildTimeFactor float64 `xml:"build_time_factor"`
}

type BuildingInfo struct {
	XMLName    xml.Name `xml:"config"`
	Text       string   `xml:",chardata"`
	Main       Building `xml:"main"`
	Barracks   Building `xml:"barracks"`
	Stable     Building `xml:"stable"`
	Garage     Building `xml:"garage"`
	Watchtower Building `xml:"watchtower"`
	Snob       Building `xml:"snob"`
	Smith      Building `xml:"smith"`
	Place      Building `xml:"place"`
	Statue     Building `xml:"statue"`
	Market     Building `xml:"market"`
	Wood       Building `xml:"wood"`
	Stone      Building `xml:"stone"`
	Iron       Building `xml:"iron"`
	Farm       Building `xml:"farm"`
	Storage    Building `xml:"storage"`
	Hide       Building `xml:"hide"`
	Wall       Building `xml:"wall"`
}
