20 lines
550 B
Go
20 lines
550 B
Go
![]() |
package data
|
||
|
|
||
|
type TalentLevel struct {
|
||
|
Id int `json:"id"` //索引(ID)
|
||
|
TalentId int `json:"talent_id"` //天赋ID
|
||
|
Level int `json:"level"` //天赋等级
|
||
|
MoneyType int `json:"money_type"` //升级消耗货币类型
|
||
|
MoneyNum int `json:"money_num"` //升级消耗货币数量
|
||
|
AttrType1 int `json:"attr_type1"` //天赋属性类型1
|
||
|
AttrValue1 int `json:"attr_value1"` //天赋属性值1
|
||
|
}
|
||
|
|
||
|
func (data *TalentLevel) id() int {
|
||
|
return data.Id
|
||
|
}
|
||
|
|
||
|
type TalentLevelTable struct {
|
||
|
table[int, *TalentLevel]
|
||
|
}
|