package tw import ( "encoding/xml" ) type Building struct { BuildTime float64 `xml:"build_time"` BuildTimeFactor float64 `xml:"build_time_factor"` Iron int `xml:"iron"` IronFactor float64 `xml:"iron_factor"` MaxLevel int `xml:"max_level"` MinLevel int `xml:"min_level"` Pop int `xml:"pop"` PopFactor float64 `xml:"pop_factor"` Stone int `xml:"stone"` StoneFactor float64 `xml:"stone_factor"` Wood int `xml:"wood"` WoodFactor float64 `xml:"wood_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"` }