some change field types from float to int
This commit is contained in:
parent
783d3512bc
commit
8109f286e3
|
@ -3,8 +3,8 @@ package models
|
|||
import "encoding/xml"
|
||||
|
||||
type ServerConfigBuild struct {
|
||||
Text string `xml:",chardata" json:"-" gqlgen:"text"`
|
||||
Destroy float64 `xml:"destroy" json:"destroy" gqlgen:"destroy"`
|
||||
Text string `xml:",chardata" json:"-" gqlgen:"text"`
|
||||
Destroy int `xml:"destroy" json:"destroy" gqlgen:"destroy"`
|
||||
}
|
||||
|
||||
type ServerConfigMisc struct {
|
||||
|
@ -151,7 +151,7 @@ type ServerConfig struct {
|
|||
Text string `xml:",chardata" json:"-" gqlgen:"text"`
|
||||
Speed float64 `xml:"speed" json:"speed" gqlgen:"speed"`
|
||||
UnitSpeed float64 `xml:"unit_speed" json:"unit_speed" gqlgen:"unitSpeed"`
|
||||
Moral float64 `xml:"moral" json:"moral" gqlgen:"moral"`
|
||||
Moral int `xml:"moral" json:"moral" gqlgen:"moral"`
|
||||
Build ServerConfigBuild `xml:"build" json:"build" gqlgen:"build"`
|
||||
Misc ServerConfigMisc `xml:"misc" json:"misc" gqlgen:"misc"`
|
||||
Commands ServerConfigCommands `xml:"commands" json:"commands" gqlgen:"commands"`
|
||||
|
|
|
@ -4,7 +4,7 @@ import "encoding/xml"
|
|||
|
||||
type Unit struct {
|
||||
Text string `xml:",chardata" json:"-" gqlgen:"text"`
|
||||
BuildTime float64 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
|
||||
BuildTime int `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
|
||||
Pop int `xml:"pop" json:"pop" gqlgen:"pop"`
|
||||
Speed float64 `xml:"speed" json:"speed" gqlgen:"speed"`
|
||||
Attack int `xml:"attack" json:"attack" gqlgen:"attack"`
|
||||
|
|
Reference in New Issue