21 lines
714 B
Go
21 lines
714 B
Go
![]() |
package data
|
||
|
|
||
|
type PlanetCivilization struct {
|
||
|
Id int `json:"id"` //序号(ID)
|
||
|
CivilizationId int `json:"civilization_id"` //文明ID
|
||
|
CivilizationType int `json:"civilization_type"` //文明类型
|
||
|
Level int `json:"level"` //等级
|
||
|
CostItemId []int `json:"cost_item_id"` //升级消耗ID
|
||
|
CostItemNum []int `json:"cost_item_num"` //升级消耗数量
|
||
|
AttrType1 int `json:"attr_type1"` //属性类型1
|
||
|
AttrValue1 int `json:"attr_value1"` //加成固定值1
|
||
|
}
|
||
|
|
||
|
func (data *PlanetCivilization) id() int {
|
||
|
return data.Id
|
||
|
}
|
||
|
|
||
|
type PlanetCivilizationTable struct {
|
||
|
table[int, *PlanetCivilization]
|
||
|
}
|