32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
package report
|
|
|
|
type OtherPlanet struct {
|
|
Owner string `json:"owner"`
|
|
LocalPlanet
|
|
}
|
|
|
|
type LocalPlanet struct {
|
|
UninhabitedPlanet
|
|
Industry Float `json:"industry"` // I - Промышленность
|
|
Population Float `json:"population"` // P - Население
|
|
Colonists Float `json:"colonists"` // COL C - Количество колонистов
|
|
Production string `json:"production"`
|
|
FreeIndustry Float `json:"freeInductry"` // Параметр "L" - Свободный производственный потенциал
|
|
// [ ] FreeIndustry - неактуальная информация, т.к. модернизация происходит в процессе производства хода
|
|
}
|
|
|
|
type UninhabitedPlanet struct {
|
|
UnidentifiedPlanet
|
|
Size Float `json:"size"`
|
|
Name string `json:"name"`
|
|
Resources Float `json:"resources"` // R - Ресурсы
|
|
Capital Float `json:"capital"` // CAP $ - Запасы промышленности
|
|
Material Float `json:"material"` // MAT M - Запасы ресурсов / сырьё
|
|
}
|
|
|
|
type UnidentifiedPlanet struct {
|
|
X Float `json:"x"`
|
|
Y Float `json:"y"`
|
|
Number uint `json:"number"`
|
|
}
|