24 lines
791 B
Go
24 lines
791 B
Go
package data
|
|
|
|
type Task struct {
|
|
Id int `json:"id"` //索引(任务id)
|
|
TaskType int `json:"task_type"` //任务类型
|
|
RearTaskId []int `json:"rear_task_id"` //后置任务id,后置任务最多20个
|
|
Gold int `json:"gold"` //金币
|
|
ExpBase int `json:"exp_base"` //经验
|
|
AutoAccept int `json:"auto_accept"` //是否自动接取
|
|
ItemIdList []int `json:"item_id_list"` //奖励物品id
|
|
ItemNumList []int `json:"item_num_list"` //奖励物品数量
|
|
Section1 []int `json:"section_1"` //目标参数1
|
|
Section2 []int `json:"section_2"` //目标参数2
|
|
Section3 []int `json:"section_3"` //目标参数3
|
|
}
|
|
|
|
func (data *Task) id() int {
|
|
return data.Id
|
|
}
|
|
|
|
type TaskTable struct {
|
|
table[int, *Task]
|
|
}
|