23 lines
1002 B
Go
23 lines
1002 B
Go
![]() |
package data
|
||
|
|
||
|
type Planet struct {
|
||
|
Id int `json:"id"` //序号(星球ID)
|
||
|
GalaxyId int `json:"galaxy_id"` //星域ID
|
||
|
DropId int `json:"drop_id"` //星球掉落ID
|
||
|
SweepCostId int `json:"sweep_cost_id"` //扫荡消耗ID
|
||
|
SweepCostNum int `json:"sweep_cost_num"` //扫荡消耗数量
|
||
|
CivilizationType int `json:"civilization_type"` //推荐文明ID
|
||
|
CivilizationAddition int `json:"civilization_addition"` //推荐文明加成(万分比)
|
||
|
CivilizationCostId []int `json:"civilization_cost_id"` //文明打造消耗ID
|
||
|
CivilizationCostNum []int `json:"civilization_cost_num"` //文明打造消耗数量
|
||
|
CivilizationWeights [][3]float64 `json:"civilization_weights"` //文明随机权重
|
||
|
}
|
||
|
|
||
|
func (data *Planet) id() int {
|
||
|
return data.Id
|
||
|
}
|
||
|
|
||
|
type PlanetTable struct {
|
||
|
table[int, *Planet]
|
||
|
}
|