16 lines
309 B
Go
16 lines
309 B
Go
![]() |
package data
|
||
|
|
||
|
type TalentTree struct {
|
||
|
Id int `json:"id"` //索引(ID)
|
||
|
Parents []int `json:"parents"` //前置天赋ID
|
||
|
MaxLevel int `json:"max_level"` //天赋最高等级
|
||
|
}
|
||
|
|
||
|
func (data *TalentTree) id() int {
|
||
|
return data.Id
|
||
|
}
|
||
|
|
||
|
type TalentTreeTable struct {
|
||
|
table[int, *TalentTree]
|
||
|
}
|