2023-12-15 07:16:51 +00:00
|
|
|
package tw
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Building struct {
|
2024-02-10 12:28:41 +00:00
|
|
|
BuildTime float64 `xml:"build_time"`
|
|
|
|
BuildTimeFactor float64 `xml:"build_time_factor"`
|
|
|
|
Iron int `xml:"iron"`
|
|
|
|
IronFactor float64 `xml:"iron_factor"`
|
2023-12-15 07:16:51 +00:00
|
|
|
MaxLevel int `xml:"max_level"`
|
|
|
|
MinLevel int `xml:"min_level"`
|
|
|
|
Pop int `xml:"pop"`
|
|
|
|
PopFactor float64 `xml:"pop_factor"`
|
2024-02-10 12:28:41 +00:00
|
|
|
Stone int `xml:"stone"`
|
|
|
|
StoneFactor float64 `xml:"stone_factor"`
|
|
|
|
Wood int `xml:"wood"`
|
|
|
|
WoodFactor float64 `xml:"wood_factor"`
|
2023-12-15 07:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|