24 lines
1.0 KiB
Go
24 lines
1.0 KiB
Go
package data
|
||
|
||
type IdleProfit struct {
|
||
Index int `json:"index"` //序号
|
||
Id int `json:"id"` //场景(关卡ID)
|
||
ItemId []int `json:"item_id"` //固定收益道具
|
||
ItemNum []int `json:"item_num"` //固定收益道具数量
|
||
DropId int `json:"drop_id"` //掉落ID奖励
|
||
Interval int `json:"interval"` //掉落间隔(秒)
|
||
QuickRewardDuration int `json:"quick_reward_duration"` //快速战斗奖励时长(秒)
|
||
MoneyType int `json:"money_type"` //货币类型ID
|
||
MoneyNum int `json:"money_num"` //货币消耗数量
|
||
DailyTimes int `json:"daily_times"` //每日快速战斗次数
|
||
IdleLimit int `json:"idle_limit"` //挂机时长上限(秒)
|
||
}
|
||
|
||
func (data *IdleProfit) id() int {
|
||
return data.Id
|
||
}
|
||
|
||
type IdleProfitTable struct {
|
||
table[int, *IdleProfit]
|
||
}
|