Compare commits
11 Commits
c5cf79f4b8
...
057fa83752
Author | SHA1 | Date | |
---|---|---|---|
057fa83752 | |||
00c07d4374 | |||
c9ae57c5bf | |||
e9a8793446 | |||
e1f4ac61f2 | |||
b64efd67e7 | |||
06e57e6650 | |||
c5f69fd093 | |||
805ea699ed | |||
7644cb48ec | |||
bc2a0b8a43 |
@ -51,12 +51,12 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
|
||||
//接取
|
||||
acceptBtn := widget.NewButton("接取", func() {
|
||||
groupId := widget.NewEntry()
|
||||
groupId.PlaceHolder = "分组ID"
|
||||
// groupId := widget.NewEntry()
|
||||
// groupId.PlaceHolder = "分组ID"
|
||||
taskIdEntry := widget.NewEntry()
|
||||
taskIdEntry.PlaceHolder = "任务ID"
|
||||
form := widget.NewForm(
|
||||
widget.NewFormItem("组ID", groupId),
|
||||
// widget.NewFormItem("组ID", groupId),
|
||||
widget.NewFormItem("任务ID", taskIdEntry),
|
||||
)
|
||||
|
||||
@ -67,8 +67,7 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
t.MainType,
|
||||
"accept",
|
||||
&pb.WorldtaskAcceptReq{
|
||||
GroupId: cast.ToInt32(groupId.Text),
|
||||
TaskId: cast.ToInt32(taskIdEntry.Text),
|
||||
TaskId: cast.ToInt32(taskIdEntry.Text),
|
||||
}); err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
@ -82,14 +81,14 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
|
||||
// 完成任务条件
|
||||
completeBtn := widget.NewButton("任务条件", func() {
|
||||
groupId := widget.NewEntry()
|
||||
groupId.PlaceHolder = "分组ID"
|
||||
// groupId := widget.NewEntry()
|
||||
// groupId.PlaceHolder = "分组ID"
|
||||
taskIdEntry := widget.NewEntry()
|
||||
taskIdEntry.PlaceHolder = "任务ID"
|
||||
condiId := widget.NewEntry()
|
||||
condiId.PlaceHolder = "条件"
|
||||
form := widget.NewForm(
|
||||
widget.NewFormItem("组ID", groupId),
|
||||
// widget.NewFormItem("组ID", groupId),
|
||||
widget.NewFormItem("任务ID", taskIdEntry),
|
||||
widget.NewFormItem("完成条件", condiId),
|
||||
)
|
||||
@ -101,7 +100,6 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
t.MainType,
|
||||
"completecondi",
|
||||
&pb.WorldtaskCompleteCondiReq{
|
||||
GroupId: cast.ToInt32(groupId.Text),
|
||||
TaskId: cast.ToInt32(taskIdEntry.Text),
|
||||
CondiId: cast.ToInt32(condiId.Text),
|
||||
}); err != nil {
|
||||
@ -117,12 +115,9 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
|
||||
// 交付任务
|
||||
this.juqingBtn = widget.NewButton("交付任务", func() {
|
||||
groupId := widget.NewEntry()
|
||||
groupId.PlaceHolder = "分组ID"
|
||||
taskIdEntry := widget.NewEntry()
|
||||
taskIdEntry.PlaceHolder = "任务ID"
|
||||
form := widget.NewForm(
|
||||
widget.NewFormItem("组ID", groupId),
|
||||
widget.NewFormItem("任务ID", taskIdEntry),
|
||||
)
|
||||
|
||||
@ -133,7 +128,6 @@ func (this *WorldtaskMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
t.MainType,
|
||||
worldtask.WorldtaskSubtypeFinish,
|
||||
&pb.WorldtaskFinishReq{
|
||||
GroupId: cast.ToInt32(groupId.Text),
|
||||
TaskId: cast.ToInt32(taskIdEntry.Text),
|
||||
}); err != nil {
|
||||
logrus.Error(err)
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
// 任务接取
|
||||
|
||||
func (a *apiComp) AcceptCheck(session comm.IUserSession, req *pb.WorldtaskAcceptReq) (errdata *pb.ErrorData) {
|
||||
if req.TaskId <= 0 || req.GroupId <= 0 {
|
||||
if req.TaskId <= 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
@ -67,7 +67,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
}
|
||||
|
||||
// 前置任务ID 只有世界任务才校验前置
|
||||
if !a.module.modelWorldtask.IsPreFinished(req.GroupId, myWorldtask, curTaskConf) {
|
||||
if !a.module.modelWorldtask.IsPreFinished(myWorldtask, curTaskConf) {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskLastUnFinished,
|
||||
Title: pb.ErrorCode_WorldtaskLastUnFinished.ToString(),
|
||||
@ -76,17 +76,49 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
return
|
||||
}
|
||||
|
||||
if myWorldtask.CurrentTask == nil {
|
||||
myWorldtask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if myWorldtask.CurrentTasks == nil {
|
||||
myWorldtask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
myWorldtask.CurrentTask[curTaskConf.Group] = &pb.Worldtask{
|
||||
TaskId: req.TaskId,
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1, //接取
|
||||
|
||||
if tasks, ok := myWorldtask.CurrentTasks[curTaskConf.Group]; ok {
|
||||
for _, task := range tasks.TaskMap {
|
||||
if req.TaskId == task.TaskId {
|
||||
if task.NpcStatus == 1 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskNoAccept,
|
||||
Title: pb.ErrorCode_WorldtaskNoAccept.ToString(),
|
||||
Message: fmt.Sprintf("不能重复接取 taskId:%v", req.TaskId),
|
||||
}
|
||||
return
|
||||
} else {
|
||||
task.NpcStatus = 1
|
||||
}
|
||||
break
|
||||
} else {
|
||||
if tasks.TaskMap == nil {
|
||||
tasks.TaskMap = make(map[int32]*pb.Worldtask)
|
||||
}
|
||||
tasks.TaskMap[task.TaskId] = &pb.Worldtask{
|
||||
TaskId: req.TaskId,
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1, //接取
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
tasks = &pb.Worldtasks{
|
||||
TaskMap: make(map[int32]*pb.Worldtask),
|
||||
}
|
||||
tasks.TaskMap[req.TaskId] = &pb.Worldtask{
|
||||
TaskId: req.TaskId,
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1, //接取
|
||||
}
|
||||
myWorldtask.CurrentTasks[curTaskConf.Group] = tasks
|
||||
}
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": myWorldtask.CurrentTask,
|
||||
"currentTasks": myWorldtask.CurrentTasks,
|
||||
}
|
||||
|
||||
if err := a.module.modelWorldtask.Change(uid, update); err != nil {
|
||||
@ -102,8 +134,8 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
curTaskConf.DeliverNpc == 0 {
|
||||
a.sendMsg(session, WorldtaskSubtypeAccept, rsp)
|
||||
//结束任务
|
||||
a.module.modelWorldtask.taskFinish(session, req.GroupId, req.TaskId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinishPush(session, req.GroupId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinish(session, req.TaskId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinishPush(session, myWorldtask, curTaskConf)
|
||||
} else if curTaskConf.DeliverNpc == 0 && len(curTaskConf.Completetask) > 0 {
|
||||
var flag bool
|
||||
conds, err := a.module.ModuleBuried.CheckCondition(uid, curTaskConf.Completetask...)
|
||||
@ -111,7 +143,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
flag = true
|
||||
rsp.CondiIds = append(rsp.CondiIds, cond.Conid)
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
} else {
|
||||
flag = false
|
||||
break
|
||||
@ -121,8 +153,8 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
|
||||
if flag {
|
||||
a.sendMsg(session, WorldtaskSubtypeAccept, rsp)
|
||||
a.module.modelWorldtask.taskFinish(session, req.GroupId, req.TaskId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinishPush(session, req.GroupId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinish(session, req.TaskId, myWorldtask, curTaskConf)
|
||||
a.module.modelWorldtask.taskFinishPush(session, myWorldtask, curTaskConf)
|
||||
return
|
||||
}
|
||||
a.sendMsg(session, WorldtaskSubtypeAccept, rsp)
|
||||
@ -133,7 +165,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
var unfinishCondIds []int32
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
rsp.CondiIds = append(rsp.CondiIds, cond.Conid)
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
} else if cond.State == pb.BuriedItemFinishState_buried_unfinish {
|
||||
unfinishCondIds = append(unfinishCondIds, cond.Conid)
|
||||
}
|
||||
|
@ -6,12 +6,11 @@ import (
|
||||
"go_dreamfactory/lego/sys/log"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/utils"
|
||||
)
|
||||
|
||||
// 战斗结束的请求
|
||||
func (this *apiComp) BattlefinishCheck(session comm.IUserSession, req *pb.WorldtaskBattleFinishReq) (errdata *pb.ErrorData) {
|
||||
if req.GroupId <= 0 || req.BattleConfId <= 0 || req.TaskId <= 0 || req.Report == nil {
|
||||
if req.BattleConfId <= 0 || req.TaskId <= 0 || req.Report == nil {
|
||||
this.module.Error("世界任务战斗结束参数错误",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "params", Value: req.String()},
|
||||
@ -63,7 +62,7 @@ func (this *apiComp) Battlefinish(session comm.IUserSession, req *pb.WorldtaskBa
|
||||
rsp := &pb.WorldtaskBattleFinishResp{}
|
||||
|
||||
if len(taskConf.Completetask) == 0 {
|
||||
if err := this.module.modelWorldtask.finishTask(taskConf.Group, req.TaskId, userTask); err != nil {
|
||||
if err := this.module.modelWorldtask.finishTask(req.TaskId, userTask); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
@ -100,26 +99,6 @@ func (this *apiComp) Battlefinish(session comm.IUserSession, req *pb.WorldtaskBa
|
||||
} else {
|
||||
//触发任务
|
||||
go this.module.ModuleBuried.TriggerBuried(session.GetUserId(), comm.GetBuriedParam(comm.Rtype70, 1, req.BattleConfId))
|
||||
if userTask.CurrentTask == nil {
|
||||
userTask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
}
|
||||
|
||||
if _, ok := utils.Findx(userTask.CurrentTask[req.GroupId].CondiIds, req.CondiId); !ok {
|
||||
userTask.CurrentTask[req.GroupId].CondiIds = append(userTask.CurrentTask[req.GroupId].CondiIds, req.CondiId)
|
||||
}
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": userTask.CurrentTask,
|
||||
}
|
||||
if err := this.module.modelWorldtask.Change(uid, update); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
// 任务完成条件
|
||||
func (this *apiComp) CompleteCondiCheck(session comm.IUserSession, req *pb.WorldtaskCompleteCondiReq) (errdata *pb.ErrorData) {
|
||||
if req.GroupId <= 0 || req.TaskId <= 0 || req.CondiId <= 0 {
|
||||
if req.TaskId <= 0 || req.CondiId <= 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
@ -54,9 +54,9 @@ func (this *apiComp) CompleteCondi(session comm.IUserSession, req *pb.WorldtaskC
|
||||
return
|
||||
}
|
||||
myWorldtask.Uid = uid
|
||||
wt := myWorldtask.CurrentTask[req.GroupId]
|
||||
|
||||
conds, err := this.module.ModuleBuried.CheckCondition(uid, req.CondiId)
|
||||
// 校验任务条件
|
||||
conds, err := this.module.ModuleBuried.FinishConditionAndCheck(uid, []int32{req.CondiId}, curTaskConf.Completetask...)
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ExternalModule,
|
||||
@ -64,16 +64,35 @@ func (this *apiComp) CompleteCondi(session comm.IUserSession, req *pb.WorldtaskC
|
||||
Message: comm.NewExternalModuleErr("buried", "CheckCondition", uid, req.CondiId).Error(),
|
||||
}
|
||||
}
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
wt.CondiIds = append(wt.CondiIds, cond.Conid)
|
||||
|
||||
// 设置当前任务的完成条件
|
||||
for _, tasks := range myWorldtask.CurrentTasks {
|
||||
if task, ok := tasks.TaskMap[req.TaskId]; ok {
|
||||
for _, cond := range conds {
|
||||
for _, exist_cond := range task.Conds {
|
||||
if cond.Conid == exist_cond.Conid {
|
||||
continue
|
||||
}
|
||||
task.Conds = append(task.Conds, cond)
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
myWorldtask.CurrentTask[req.GroupId] = wt
|
||||
// for _, cond := range conds {
|
||||
// for _, exist_cond := range wt.Tasks {
|
||||
// if cond.Conid == exist_cond.Conid {
|
||||
// continue
|
||||
// }
|
||||
// wt.Conds = append(wt.Conds, cond)
|
||||
// }
|
||||
// }
|
||||
|
||||
// myWorldtask.CurrentTaskMap[curTaskConf.Group] = wt
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": myWorldtask.CurrentTask,
|
||||
"currentTasks": myWorldtask.CurrentTasks,
|
||||
}
|
||||
if err := this.module.modelWorldtask.Change(uid, update); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
@ -88,8 +107,8 @@ func (this *apiComp) CompleteCondi(session comm.IUserSession, req *pb.WorldtaskC
|
||||
|
||||
//结束任务
|
||||
if curTaskConf.DeliverNpc == 0 {
|
||||
this.module.modelWorldtask.taskFinish(session, req.GroupId, req.TaskId, myWorldtask, curTaskConf)
|
||||
this.module.modelWorldtask.taskFinishPush(session, req.GroupId, myWorldtask, curTaskConf)
|
||||
this.module.modelWorldtask.taskFinish(session, req.TaskId, myWorldtask, curTaskConf)
|
||||
this.module.modelWorldtask.taskFinishPush(session, myWorldtask, curTaskConf)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -6,13 +6,12 @@ import (
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/lego/sys/log"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/utils"
|
||||
)
|
||||
|
||||
// 世界任务完成
|
||||
|
||||
func (this *apiComp) FinishCheck(session comm.IUserSession, req *pb.WorldtaskFinishReq) (errdata *pb.ErrorData) {
|
||||
if req.GroupId == 0 || req.TaskId == 0 {
|
||||
if req.TaskId == 0 {
|
||||
this.module.Error("世界任务完成参数错误", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "params", Value: req.String()})
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
@ -52,14 +51,14 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
return
|
||||
}
|
||||
|
||||
if curTaskConf.Group != req.GroupId {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskGroupIdNosame,
|
||||
Title: pb.ErrorCode_WorldtaskGroupIdNosame.ToString(),
|
||||
Message: fmt.Sprintf("组ID一致,实际:%d 期望:%d", curTaskConf.Group, req.GroupId),
|
||||
}
|
||||
return
|
||||
}
|
||||
// if curTaskConf.Group != req.GroupId {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_WorldtaskGroupIdNosame,
|
||||
// Title: pb.ErrorCode_WorldtaskGroupIdNosame.ToString(),
|
||||
// Message: fmt.Sprintf("组ID一致,实际:%d 期望:%d", curTaskConf.Group, req.GroupId),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
if curTaskConf.DeliverNpc == 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
@ -95,7 +94,7 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
}
|
||||
|
||||
// 前置任务ID 只有世界任务才校验前置
|
||||
if !this.module.modelWorldtask.IsPreFinished(req.GroupId, userTask, curTaskConf) {
|
||||
if !this.module.modelWorldtask.IsPreFinished(userTask, curTaskConf) {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskLastUnFinished,
|
||||
Title: pb.ErrorCode_WorldtaskLastUnFinished.ToString(),
|
||||
@ -112,46 +111,45 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
log.Field{Key: "taskId", Value: req.TaskId},
|
||||
)
|
||||
this.sendMsg(session, WorldtaskSubtypeFinish, rsp)
|
||||
this.module.modelWorldtask.taskFinishPush(session, req.GroupId, userTask, curTaskConf)
|
||||
this.module.modelWorldtask.taskFinishPush(session, userTask, curTaskConf)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var condiFlag bool
|
||||
// 检查当前任务的完成条件
|
||||
for _, condId := range curTaskConf.Completetask {
|
||||
if v, ok := userTask.CurrentTask[req.GroupId]; ok {
|
||||
if _, ok := utils.Findx(v.CondiIds, condId); !ok {
|
||||
conds, err := this.module.ModuleBuried.CheckCondition(uid, condId)
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ExternalModule,
|
||||
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", uid, condId).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
for _, cond := range conds {
|
||||
if cond.Conid == condId && cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
condiFlag = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
condiFlag = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if !condiFlag {
|
||||
conds, err := this.module.ModuleBuried.CheckCondition(uid, curTaskConf.Completetask...)
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_RtaskCondiNoReach,
|
||||
Title: pb.ErrorCode_RtaskCondiNoReach.ToString(),
|
||||
Code: pb.ErrorCode_ExternalModule,
|
||||
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", uid, curTaskConf.Completetask).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_unfinish {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_RtaskCondiNoReach,
|
||||
Title: pb.ErrorCode_RtaskCondiNoReach.ToString(),
|
||||
Message: fmt.Sprintf("世界任务[%v] 条件[%v]未达成", req.TaskId, curTaskConf.Completetask),
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_unfinish {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_RtaskCondiNoReach,
|
||||
Title: pb.ErrorCode_RtaskCondiNoReach.ToString(),
|
||||
Message: fmt.Sprintf("世界任务[%v]条件[%v]未达标,类型:%v 实际:%v 期望:%v", req.TaskId, cond.Conid, cond.Btype, cond.Value, cond.Target),
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
if err := this.module.modelWorldtask.finishTask(req.GroupId, req.TaskId, userTask); err != nil {
|
||||
if err := this.module.modelWorldtask.finishTask(req.TaskId, userTask); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskFinish,
|
||||
Title: pb.ErrorCode_WorldtaskFinish.ToString(),
|
||||
@ -163,7 +161,6 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
if errdata = this.module.DispenseRes(session, curTaskConf.Reword, true); errdata != nil {
|
||||
this.module.Error("资源发放",
|
||||
log.Field{Key: "uid", Value: uid},
|
||||
log.Field{Key: "groupId", Value: req.GroupId},
|
||||
log.Field{Key: "taskId", Value: req.TaskId},
|
||||
log.Field{Key: "reword", Value: curTaskConf.Reword},
|
||||
log.Field{Key: "errdata", Value: errdata},
|
||||
@ -183,72 +180,6 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
}
|
||||
}
|
||||
this.sendMsg(session, WorldtaskSubtypeFinish, rsp)
|
||||
this.module.modelWorldtask.taskFinishPush(session, req.GroupId, userTask, curTaskConf)
|
||||
this.module.modelWorldtask.taskFinishPush(session, userTask, curTaskConf)
|
||||
return
|
||||
}
|
||||
|
||||
// Deprecated
|
||||
func (this *apiComp) updateCheckCond(uid string, userTask *pb.DBWorldtask, nextTaskId int32) (*pb.DBWorldtask, error) {
|
||||
//检查下个任务的完成条件
|
||||
nextTaskConf, err := this.module.configure.getWorldtaskById(nextTaskId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if nextTaskConf.Des == 1 || nextTaskConf.Des == 4 {
|
||||
return nil, comm.NewCustomError(pb.ErrorCode_WorldtaskNoProcess)
|
||||
}
|
||||
|
||||
if userTask.CurrentTask == nil {
|
||||
userTask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
}
|
||||
|
||||
update := make(map[string]interface{})
|
||||
if (len(nextTaskConf.Completetask) == 1 && nextTaskConf.Completetask[0] == 0) ||
|
||||
len(nextTaskConf.Completetask) == 0 {
|
||||
wt := &pb.Worldtask{
|
||||
TaskId: nextTaskId,
|
||||
TaskType: nextTaskConf.Des,
|
||||
CondiIds: []int32{},
|
||||
}
|
||||
userTask.CurrentTask[nextTaskConf.Group] = wt
|
||||
update["currentTask"] = userTask.CurrentTask
|
||||
} else {
|
||||
nwt, ok := userTask.CurrentTask[nextTaskConf.Group]
|
||||
if ok {
|
||||
nwt.TaskId = nextTaskId
|
||||
nwt.TaskType = nextTaskConf.Des
|
||||
} else {
|
||||
nwt = &pb.Worldtask{
|
||||
TaskId: nextTaskId,
|
||||
TaskType: nextTaskConf.Des,
|
||||
}
|
||||
}
|
||||
|
||||
conds, err := this.module.ModuleBuried.CheckCondition(uid, nextTaskConf.Completetask...)
|
||||
if err != nil {
|
||||
this.module.Errorf("buried err:%v", err.Error())
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var condIds []int32
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
condIds = append(condIds, cond.Conid)
|
||||
}
|
||||
}
|
||||
|
||||
nwt.CondiIds = condIds
|
||||
userTask.CurrentTask[nextTaskConf.Group] = nwt
|
||||
update["currentTask"] = userTask.CurrentTask
|
||||
}
|
||||
|
||||
if len(update) > 0 {
|
||||
if err := this.module.modelWorldtask.Change(uid, update); err != nil {
|
||||
this.module.Error("DB err", log.Field{Key: "err", Value: err.Error()})
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return userTask, nil
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/sys/log"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -40,11 +41,59 @@ func (this *apiComp) Mine(session comm.IUserSession, req *pb.WorldtaskMineReq) (
|
||||
return
|
||||
}
|
||||
|
||||
if myWorldtask.CurrentTask == nil {
|
||||
myWorldtask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if myWorldtask.CurrentTasks == nil {
|
||||
myWorldtask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
|
||||
this.module.modelWorldtask.updateRandomTask(uid, myWorldtask)
|
||||
//查询当前所有任务组下的完成条件数据
|
||||
var condIds []int32
|
||||
condMap := make(map[int32][]int32)
|
||||
for k, v := range myWorldtask.CurrentTasks {
|
||||
for _, t := range v.TaskMap {
|
||||
cfg, err := this.module.configure.getWorldtaskById(t.TaskId)
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
if (len(cfg.Completetask) == 1 && cfg.Completetask[0] > 0) &&
|
||||
len(cfg.Completetask) > 0 {
|
||||
condIds = append(condIds, cfg.Completetask...)
|
||||
condMap[k] = cfg.Completetask
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
condIds = utils.RemoveDuplicate(condIds)
|
||||
// this.module.modelWorldtask.updateRandomTask(uid, myWorldtask)
|
||||
|
||||
// 查询任务的条件进度
|
||||
conds, err := this.module.ModuleBuried.CheckCondition(uid, condIds...)
|
||||
if err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ExternalModule,
|
||||
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||
Message: comm.NewExternalModuleErr("buried", "CheckCondition", condIds).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
for k, v := range condMap {
|
||||
if mw, ok := myWorldtask.CurrentTasks[k]; ok {
|
||||
for _, task := range mw.TaskMap {
|
||||
for _, cond := range conds {
|
||||
if _, ok := utils.Findx(v, cond.Conid); ok {
|
||||
task.Conds = append(task.Conds, cond)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
rsp := &pb.WorldtaskMineResp{
|
||||
Task: myWorldtask,
|
||||
|
@ -42,7 +42,7 @@ func (this *ModelWorldtask) getWorldtask(uid string) (*pb.DBWorldtask, error) {
|
||||
|
||||
// 判断前置任务是否完成
|
||||
// true 已完成 false未完成
|
||||
func (this *ModelWorldtask) IsPreFinished(groupId int32, userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) bool {
|
||||
func (this *ModelWorldtask) IsPreFinished(userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) bool {
|
||||
var (
|
||||
lastTaskId int32
|
||||
preTaskFinished bool
|
||||
@ -73,7 +73,7 @@ func (this *ModelWorldtask) isFinished(taskId int32, list []*pb.Worldtask) bool
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
func (this *ModelWorldtask) finishTask(groupId, taskId int32, task *pb.DBWorldtask) error {
|
||||
func (this *ModelWorldtask) finishTask(taskId int32, task *pb.DBWorldtask) error {
|
||||
if task == nil {
|
||||
return errors.New("worldtask is nil")
|
||||
}
|
||||
@ -92,10 +92,10 @@ func (this *ModelWorldtask) finishTask(groupId, taskId int32, task *pb.DBWorldta
|
||||
}
|
||||
|
||||
update["uid"] = task.Uid
|
||||
wt := &pb.Worldtask{
|
||||
TaskId: taskId,
|
||||
TaskType: taskConf.Des,
|
||||
}
|
||||
// wt := &pb.Worldtask{
|
||||
// TaskId: taskId,
|
||||
// TaskType: taskConf.Des,
|
||||
// }
|
||||
|
||||
for _, tId := range task.TaskList {
|
||||
if tId == taskId {
|
||||
@ -105,18 +105,17 @@ func (this *ModelWorldtask) finishTask(groupId, taskId int32, task *pb.DBWorldta
|
||||
|
||||
task.TaskList = append(task.TaskList, taskId)
|
||||
|
||||
if task.CurrentTask == nil {
|
||||
task.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if task.CurrentTasks == nil {
|
||||
task.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
|
||||
//有下个任务
|
||||
if taskConf.IdAfter != 0 {
|
||||
wt.NpcStatus = 0
|
||||
wt.DeliverNpc = 0
|
||||
wt.CondiIds = []int32{}
|
||||
task.CurrentTask[groupId] = wt
|
||||
update["currentTask"] = task.CurrentTask
|
||||
}
|
||||
// if taskConf.IdAfter != 0 {
|
||||
// wt.NpcStatus = 0
|
||||
// wt.DeliverNpc = 0
|
||||
// task.CurrentTasks[groupId] = wt
|
||||
// update[""] = task.CurrentTasks
|
||||
// }
|
||||
|
||||
update["taskList"] = task.TaskList
|
||||
|
||||
@ -142,10 +141,8 @@ func (this *ModelWorldtask) findNextTasks(parentTaskId int32) (taskIds []int32)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// 更新当前任务的完成条件
|
||||
func (this *ModelWorldtask) updateCurrentTaskCond(uid string, userLv int32, userTask *pb.DBWorldtask, nextTaskId int32) *pb.DBWorldtask {
|
||||
//检查下个任务的完成条件
|
||||
func (this *ModelWorldtask) updateCurrentTaskCond(uid string, userLv int32, userTask *pb.DBWorldtask, currentTaskId, nextTaskId int32) *pb.DBWorldtask {
|
||||
nextTaskConf, err := this.moduleWorldtask.configure.getWorldtaskById(nextTaskId)
|
||||
if err != nil {
|
||||
return nil
|
||||
@ -162,50 +159,31 @@ func (this *ModelWorldtask) updateCurrentTaskCond(uid string, userLv int32, user
|
||||
return nil
|
||||
}
|
||||
|
||||
if userTask.CurrentTask == nil {
|
||||
userTask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if userTask.CurrentTasks == nil {
|
||||
userTask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
|
||||
update := make(map[string]interface{})
|
||||
if (len(nextTaskConf.Completetask) == 1 && nextTaskConf.Completetask[0] == 0) ||
|
||||
len(nextTaskConf.Completetask) == 0 {
|
||||
wt := &pb.Worldtask{
|
||||
TaskId: nextTaskId,
|
||||
TaskType: nextTaskConf.Des,
|
||||
CondiIds: []int32{},
|
||||
}
|
||||
userTask.CurrentTask[nextTaskConf.Group] = wt
|
||||
update["currentTask"] = userTask.CurrentTask
|
||||
} else {
|
||||
nwt, ok := userTask.CurrentTask[nextTaskConf.Group]
|
||||
if ok {
|
||||
nwt.TaskId = nextTaskId
|
||||
nwt.TaskType = nextTaskConf.Des
|
||||
} else {
|
||||
nwt = &pb.Worldtask{
|
||||
TaskId: nextTaskId,
|
||||
TaskType: nextTaskConf.Des,
|
||||
}
|
||||
}
|
||||
|
||||
conds, err := this.moduleWorldtask.ModuleBuried.CheckCondition(uid, nextTaskConf.Completetask...)
|
||||
if err != nil {
|
||||
this.moduleWorldtask.Errorf("buried err:%v", err.Error())
|
||||
return nil
|
||||
}
|
||||
|
||||
var condIds []int32
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
condIds = append(condIds, cond.Conid)
|
||||
}
|
||||
}
|
||||
|
||||
nwt.CondiIds = condIds
|
||||
userTask.CurrentTask[nextTaskConf.Group] = nwt
|
||||
update["currentTask"] = userTask.CurrentTask
|
||||
nwt, ok := userTask.CurrentTasks[nextTaskConf.Group]
|
||||
if ok {
|
||||
// 删除
|
||||
delete(nwt.TaskMap, currentTaskId)
|
||||
}
|
||||
|
||||
if nwt == nil {
|
||||
nwt = &pb.Worldtasks{
|
||||
TaskMap: make(map[int32]*pb.Worldtask),
|
||||
}
|
||||
userTask.CurrentTasks[nextTaskConf.Group] = nwt
|
||||
}
|
||||
|
||||
nwt.TaskMap[nextTaskId] = &pb.Worldtask{
|
||||
TaskId: nextTaskId,
|
||||
TaskType: nextTaskConf.Des,
|
||||
}
|
||||
|
||||
update["currentTasks"] = userTask.CurrentTasks
|
||||
|
||||
if len(update) > 0 {
|
||||
if err := this.Change(uid, update); err != nil {
|
||||
return nil
|
||||
@ -216,8 +194,8 @@ func (this *ModelWorldtask) updateCurrentTaskCond(uid string, userLv int32, user
|
||||
}
|
||||
|
||||
// 任务完成推送
|
||||
func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, groupId int32, userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) {
|
||||
this.updateRandomTask(session.GetUserId(), userTask)
|
||||
func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) {
|
||||
// this.updateRandomTask(session.GetUserId(), userTask)
|
||||
u := this.moduleWorldtask.ModuleUser.GetUser(session.GetUserId())
|
||||
if u == nil {
|
||||
return
|
||||
@ -226,33 +204,31 @@ func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, groupId in
|
||||
nextTaskIds := this.findNextTasks(curTaskConf.Key)
|
||||
this.moduleWorldtask.Debug("nextTaskIds", log.Field{Key: "nextTaskIds", Value: nextTaskIds})
|
||||
|
||||
nextTask := make(map[int32]*pb.Worldtask)
|
||||
nextTask := make(map[int32]*pb.Worldtasks)
|
||||
for _, next := range nextTaskIds {
|
||||
ut := this.updateCurrentTaskCond(session.GetUserId(), u.Lv, userTask, next)
|
||||
ut := this.updateCurrentTaskCond(session.GetUserId(), u.Lv, userTask, curTaskConf.Key, next)
|
||||
if ut != nil {
|
||||
for k, v := range ut.CurrentTask {
|
||||
nextTask[k] = &pb.Worldtask{
|
||||
TaskId: v.TaskId,
|
||||
}
|
||||
for k, v := range ut.CurrentTasks {
|
||||
nextTask[k] = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if nextTaskIds == nil {
|
||||
nextTask[groupId] = &pb.Worldtask{} //表示没有下一个任务
|
||||
nextTask[curTaskConf.Group] = &pb.Worldtasks{} //表示没有下一个任务
|
||||
}
|
||||
|
||||
if curTaskConf.IdAfter == 0 {
|
||||
// 章节完成
|
||||
if _, ok := userTask.Chapters[groupId]; !ok {
|
||||
delete(userTask.CurrentTask, groupId)
|
||||
if _, ok := userTask.Chapters[curTaskConf.Group]; !ok {
|
||||
delete(userTask.CurrentTasks, curTaskConf.Group)
|
||||
if userTask.Chapters == nil {
|
||||
userTask.Chapters = make(map[int32]int32)
|
||||
}
|
||||
userTask.Chapters[groupId] = 1 //已解锁待领取
|
||||
userTask.Chapters[curTaskConf.Group] = 1 //已解锁待领取
|
||||
update := map[string]interface{}{
|
||||
"chapters": userTask.Chapters,
|
||||
"currentTask": userTask.CurrentTask,
|
||||
"chapters": userTask.Chapters,
|
||||
"currentTasks": userTask.CurrentTasks,
|
||||
}
|
||||
this.Change(session.GetUserId(), update)
|
||||
}
|
||||
@ -266,11 +242,10 @@ func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, groupId in
|
||||
}
|
||||
|
||||
// 任务完成
|
||||
func (this *ModelWorldtask) taskFinish(session comm.IUserSession, groupId, taskId int32, userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) {
|
||||
if err := this.finishTask(groupId, taskId, userTask); err != nil {
|
||||
func (this *ModelWorldtask) taskFinish(session comm.IUserSession, taskId int32, userTask *pb.DBWorldtask, curTaskConf *cfg.GameWorldTaskData) {
|
||||
if err := this.finishTask(taskId, userTask); err != nil {
|
||||
this.moduleWorldtask.Error("完成任务失败",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "groupId", Value: groupId},
|
||||
log.Field{Key: "taskId", Value: taskId},
|
||||
log.Field{Key: "err", Value: err.Error()},
|
||||
)
|
||||
@ -354,9 +329,20 @@ func (this *ModelWorldtask) updateRandomTask(uid string, myWorldtask *pb.DBWorld
|
||||
if err != nil || gwtd == nil {
|
||||
continue
|
||||
}
|
||||
myWorldtask.CurrentTask[gwtd.Group] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
if task, ok := myWorldtask.CurrentTasks[gwtd.Group]; ok {
|
||||
task.TaskMap[v] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
}
|
||||
} else {
|
||||
taskMap := make(map[int32]*pb.Worldtask)
|
||||
taskMap[v] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
}
|
||||
myWorldtask.CurrentTasks[gwtd.Group] = &pb.Worldtasks{
|
||||
TaskMap: taskMap,
|
||||
}
|
||||
}
|
||||
}
|
||||
update["daliyRefreshTime"] = configure.Now().Unix()
|
||||
@ -371,16 +357,29 @@ func (this *ModelWorldtask) updateRandomTask(uid string, myWorldtask *pb.DBWorld
|
||||
if err != nil || gwtd == nil {
|
||||
continue
|
||||
}
|
||||
myWorldtask.CurrentTask[gwtd.Group] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
|
||||
if task, ok := myWorldtask.CurrentTasks[gwtd.Group]; ok {
|
||||
task.TaskMap[v] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
}
|
||||
} else {
|
||||
taskMap := make(map[int32]*pb.Worldtask)
|
||||
taskMap[v] = &pb.Worldtask{
|
||||
TaskId: v,
|
||||
TaskType: gwtd.Des,
|
||||
}
|
||||
myWorldtask.CurrentTasks[gwtd.Group] = &pb.Worldtasks{
|
||||
TaskMap: taskMap,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
update["weekRefreshTime"] = configure.Now().Unix()
|
||||
}
|
||||
}
|
||||
|
||||
update["currentTask"] = myWorldtask.CurrentTask
|
||||
update["currentTasks"] = myWorldtask.CurrentTasks
|
||||
|
||||
if err := this.Change(uid, update); err != nil {
|
||||
return
|
||||
|
@ -119,78 +119,98 @@ func (this *Worldtask) TCondFinishNotify(uid string, conds []*pb.ConIProgress) {
|
||||
return
|
||||
}
|
||||
|
||||
var groupId, taskId int32
|
||||
// 检索condId是否是世界任务的完成条件
|
||||
|
||||
finishedCondIds := []int32{}
|
||||
for _, c := range worldtaskConf.GetDataList() {
|
||||
for _, v := range c.Completetask {
|
||||
taskConds := make(map[int32][]*pb.CurrentTask)
|
||||
finishedCondIds := []*pb.ConIProgress{}
|
||||
for _, cfg := range worldtaskConf.GetDataList() {
|
||||
for _, condId := range cfg.Completetask {
|
||||
for _, cond := range conds {
|
||||
if v == cond.Conid {
|
||||
if condId == cond.Conid {
|
||||
//校验任务是否是当前任务
|
||||
if task, ok := userTask.CurrentTask[c.Group]; ok {
|
||||
if task.NpcStatus == 1 && c.Key == task.TaskId {
|
||||
groupId = c.Group
|
||||
taskId = c.Key
|
||||
finishedCondIds = append(finishedCondIds, cond.Conid)
|
||||
if task, ok := userTask.CurrentTasks[cfg.Group]; ok {
|
||||
var currentTasks []*pb.CurrentTask
|
||||
for _, t := range task.TaskMap {
|
||||
if t.NpcStatus == 1 && cfg.Key == t.TaskId {
|
||||
finishedCondIds = append(finishedCondIds, cond)
|
||||
currentTasks = append(currentTasks, &pb.CurrentTask{
|
||||
GroupId: cfg.Group,
|
||||
TaskId: cfg.Key,
|
||||
})
|
||||
}
|
||||
}
|
||||
taskConds[cfg.Group] = currentTasks
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.Debug("完成条件",
|
||||
log.Field{Key: "taskId", Value: taskId},
|
||||
log.Field{Key: "condIds", Value: finishedCondIds})
|
||||
// this.Debug("完成条件",
|
||||
// log.Field{Key: "taskId", Value: taskId},
|
||||
// log.Field{Key: "condIds", Value: finishedCondIds})
|
||||
|
||||
if len(finishedCondIds) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
if userTask.CurrentTask == nil {
|
||||
userTask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
}
|
||||
// 当前任务配置
|
||||
// curTaskConf, err := this.configure.getWorldtaskById(taskId)
|
||||
// if err != nil || curTaskConf == nil {
|
||||
// return
|
||||
// }
|
||||
|
||||
wt, ok := userTask.CurrentTask[groupId]
|
||||
if !ok {
|
||||
wt = &pb.Worldtask{}
|
||||
}
|
||||
// if userTask.CurrentTasks == nil {
|
||||
// userTask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
// }
|
||||
|
||||
for _, condId := range finishedCondIds {
|
||||
if _, ok := utils.Findx(wt.CondiIds, condId); !ok {
|
||||
wt.CondiIds = append(wt.CondiIds, condId)
|
||||
// wt, ok := userTask.CurrentTasks[groupId]
|
||||
// if !ok {
|
||||
// wt = &pb.Worldtasks{}
|
||||
// }
|
||||
|
||||
// // for _, condId := range finishedCondIds {
|
||||
|
||||
// for _, cond1 := range finishedCondIds {
|
||||
// for _, cond2 := range wt.Conds {
|
||||
// if cond2.Conid == cond1.Conid {
|
||||
// cond2 = cond1
|
||||
// } else {
|
||||
// wt.Conds = append(wt.Conds, cond1)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// userTask.CurrentTasks[groupId] = wt
|
||||
|
||||
// for _, v := range userTask.CurrentTasks {
|
||||
// if curTaskConf.Key == v.TaskId {
|
||||
// if len(v.Conds) == len(curTaskConf.Completetask) && curTaskConf.DeliverNpc == 0 { // 所有条件全部完成且无需交付
|
||||
// this.modelWorldtask.taskFinish(session, groupId, taskId, userTask, curTaskConf)
|
||||
// this.modelWorldtask.taskFinishPush(session, groupId, userTask, curTaskConf)
|
||||
// } else {
|
||||
// update := map[string]interface{}{
|
||||
// "currentTask": userTask.CurrentTasks,
|
||||
// }
|
||||
// this.modelWorldtask.Change(uid, update)
|
||||
// }
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
|
||||
var currentTasks []*pb.CurrentTask
|
||||
for _, tasks := range taskConds {
|
||||
for _, t := range tasks {
|
||||
currentTasks = append(currentTasks, t)
|
||||
}
|
||||
}
|
||||
|
||||
userTask.CurrentTask[groupId] = wt
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": userTask.CurrentTask,
|
||||
}
|
||||
this.modelWorldtask.Change(uid, update)
|
||||
|
||||
session.SendMsg(string(this.GetType()), "completecondis", &pb.WorldtaskCompletecondisPush{
|
||||
GroupId: groupId,
|
||||
TaskId: taskId,
|
||||
CondiIds: wt.CondiIds,
|
||||
// GroupId: groupId,
|
||||
// TaskId: taskId,
|
||||
// Conds: wt.Conds,
|
||||
Tasks: currentTasks,
|
||||
})
|
||||
this.Debug("当前任务所有条件完成",
|
||||
log.Field{Key: "condiIds", Value: wt.CondiIds},
|
||||
log.Field{Key: "taskId", Value: taskId})
|
||||
|
||||
// 当前任务配置
|
||||
curTaskConf, err := this.configure.getWorldtaskById(taskId)
|
||||
if err != nil || curTaskConf == nil {
|
||||
return
|
||||
}
|
||||
|
||||
//结束任务
|
||||
if curTaskConf.DeliverNpc == 0 {
|
||||
this.modelWorldtask.taskFinish(session, groupId, taskId, userTask, curTaskConf)
|
||||
this.modelWorldtask.taskFinishPush(session, groupId, userTask, curTaskConf)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
@ -268,16 +288,18 @@ func (this *Worldtask) BingoJumpTask(session comm.IUserSession, groupId, taskId
|
||||
//下个任务
|
||||
nextTaskIds := this.modelWorldtask.findNextTasks(taskId)
|
||||
|
||||
if mytask.CurrentTask == nil {
|
||||
mytask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if mytask.CurrentTasks == nil {
|
||||
mytask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
|
||||
if len(nextTaskIds) >= 1 {
|
||||
mytask.CurrentTask[groupId] = &pb.Worldtask{
|
||||
TaskId: nextTaskIds[0],
|
||||
TaskType: 2, //设置主线类型
|
||||
if t, ok := mytask.CurrentTasks[groupId]; ok {
|
||||
t.TaskMap[nextTaskIds[0]] = &pb.Worldtask{
|
||||
TaskId: nextTaskIds[0],
|
||||
TaskType: 2, //设置主线类型
|
||||
}
|
||||
}
|
||||
update["currentTask"] = mytask.CurrentTask
|
||||
update["currentTasks"] = mytask.CurrentTasks
|
||||
}
|
||||
|
||||
if err := this.modelWorldtask.Change(uid, update); err != nil {
|
||||
@ -343,15 +365,17 @@ func (this *Worldtask) JumpTaskByTaskId(session comm.IUserSession, taskId int32)
|
||||
"taskList": mytask.TaskList,
|
||||
}
|
||||
|
||||
if mytask.CurrentTask == nil {
|
||||
mytask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if mytask.CurrentTasks == nil {
|
||||
mytask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
|
||||
mytask.CurrentTask[taskConf.Group] = &pb.Worldtask{
|
||||
TaskId: taskId,
|
||||
TaskType: taskConf.Des,
|
||||
if t, ok := mytask.CurrentTasks[taskConf.Group]; ok {
|
||||
t.TaskMap[taskId] = &pb.Worldtask{
|
||||
TaskId: taskId,
|
||||
TaskType: taskConf.Des, //设置主线类型
|
||||
}
|
||||
}
|
||||
update["currentTask"] = mytask.CurrentTask
|
||||
update["currentTasks"] = mytask.CurrentTasks
|
||||
|
||||
if err := this.modelWorldtask.Change(uid, update); err != nil {
|
||||
return err
|
||||
@ -385,29 +409,26 @@ func (this *Worldtask) GetWorldTaskBy(session comm.IUserSession, groupId int32)
|
||||
return
|
||||
}
|
||||
|
||||
myWorldtask, err := this.modelWorldtask.getWorldtask(uid)
|
||||
if err != nil {
|
||||
this.Error("获取玩家世界任务失败", log.Field{Key: "uid", Value: uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
// 当前任务配置
|
||||
curTaskConf, err := this.configure.getWorldtaskById(taskId)
|
||||
if err != nil || curTaskConf == nil {
|
||||
return
|
||||
}
|
||||
|
||||
if myWorldtask.CurrentTask == nil {
|
||||
myWorldtask.CurrentTask = make(map[int32]*pb.Worldtask)
|
||||
if mytask.CurrentTasks == nil {
|
||||
mytask.CurrentTasks = make(map[int32]*pb.Worldtasks)
|
||||
}
|
||||
myWorldtask.CurrentTask[curTaskConf.Group] = &pb.Worldtask{
|
||||
TaskId: taskId,
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1,
|
||||
|
||||
if v, ok1 := mytask.CurrentTasks[curTaskConf.Group]; ok1 {
|
||||
v.TaskMap[taskId] = &pb.Worldtask{
|
||||
TaskId: taskId,
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1,
|
||||
}
|
||||
}
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": myWorldtask.CurrentTask,
|
||||
"currentTasks": mytask.CurrentTasks,
|
||||
}
|
||||
|
||||
if err := this.modelWorldtask.Change(uid, update); err != nil {
|
||||
@ -419,8 +440,8 @@ func (this *Worldtask) GetWorldTaskBy(session comm.IUserSession, groupId int32)
|
||||
len(curTaskConf.Completetask) == 0) &&
|
||||
curTaskConf.DeliverNpc == 0 {
|
||||
//结束任务
|
||||
this.modelWorldtask.taskFinish(session, groupId, taskId, myWorldtask, curTaskConf)
|
||||
this.modelWorldtask.taskFinishPush(session, groupId, myWorldtask, curTaskConf)
|
||||
this.modelWorldtask.taskFinish(session, taskId, mytask, curTaskConf)
|
||||
this.modelWorldtask.taskFinishPush(session, mytask, curTaskConf)
|
||||
}
|
||||
|
||||
return
|
||||
@ -458,13 +479,16 @@ func (this *Worldtask) UpdateTaskStatus(uid string, taskId int32) {
|
||||
}
|
||||
}
|
||||
|
||||
myWorldtask.CurrentTask[curTaskConf.Group] = wt
|
||||
if tasks, ok := myWorldtask.CurrentTasks[curTaskConf.Group]; ok {
|
||||
tasks.TaskMap[taskId] = wt
|
||||
}
|
||||
|
||||
update := map[string]interface{}{
|
||||
"currentTask": myWorldtask.CurrentTask,
|
||||
"currentTasks": myWorldtask.CurrentTasks,
|
||||
}
|
||||
|
||||
if err := this.modelWorldtask.Change(uid, update); err != nil {
|
||||
|
||||
this.Error(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,12 +25,12 @@ type DBWorldtask struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid" bson:"uid"` //玩家ID
|
||||
TaskList []int32 `protobuf:"varint,3,rep,packed,name=taskList,proto3" json:"taskList" bson:"taskList"` // 任务列表
|
||||
CurrentTask map[int32]*Worldtask `protobuf:"bytes,4,rep,name=currentTask,proto3" json:"currentTask" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"currentTask"` //正在进行的任务
|
||||
Chapters map[int32]int32 `protobuf:"bytes,5,rep,name=chapters,proto3" json:"chapters" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"chapters"` //key章节ID v状态 1已解锁2已领取
|
||||
DaliyRefreshTime int64 `protobuf:"varint,6,opt,name=daliyRefreshTime,proto3" json:"daliyRefreshTime" bson:"daliyRefreshTime"`
|
||||
WeekRefreshTime int64 `protobuf:"varint,7,opt,name=weekRefreshTime,proto3" json:"weekRefreshTime" bson:"weekRefreshTime"`
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid" bson:"uid"` //玩家ID
|
||||
TaskList []int32 `protobuf:"varint,3,rep,packed,name=taskList,proto3" json:"taskList" bson:"taskList"` // 任务列表
|
||||
CurrentTasks map[int32]*Worldtasks `protobuf:"bytes,4,rep,name=currentTasks,proto3" json:"currentTasks" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"currentTasks"` //正在进行的任务
|
||||
Chapters map[int32]int32 `protobuf:"bytes,5,rep,name=chapters,proto3" json:"chapters" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"chapters"` //key章节ID v状态 1已解锁2已领取
|
||||
DaliyRefreshTime int64 `protobuf:"varint,6,opt,name=daliyRefreshTime,proto3" json:"daliyRefreshTime" bson:"daliyRefreshTime"`
|
||||
WeekRefreshTime int64 `protobuf:"varint,7,opt,name=weekRefreshTime,proto3" json:"weekRefreshTime" bson:"weekRefreshTime"`
|
||||
}
|
||||
|
||||
func (x *DBWorldtask) Reset() {
|
||||
@ -79,9 +79,9 @@ func (x *DBWorldtask) GetTaskList() []int32 {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBWorldtask) GetCurrentTask() map[int32]*Worldtask {
|
||||
func (x *DBWorldtask) GetCurrentTasks() map[int32]*Worldtasks {
|
||||
if x != nil {
|
||||
return x.CurrentTask
|
||||
return x.CurrentTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -107,22 +107,69 @@ func (x *DBWorldtask) GetWeekRefreshTime() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type Worldtasks struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TaskMap map[int32]*Worldtask `protobuf:"bytes,1,rep,name=taskMap,proto3" json:"taskMap" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"tasks"` //
|
||||
}
|
||||
|
||||
func (x *Worldtasks) Reset() {
|
||||
*x = Worldtasks{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Worldtasks) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Worldtasks) ProtoMessage() {}
|
||||
|
||||
func (x *Worldtasks) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Worldtasks.ProtoReflect.Descriptor instead.
|
||||
func (*Worldtasks) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_db_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Worldtasks) GetTaskMap() map[int32]*Worldtask {
|
||||
if x != nil {
|
||||
return x.TaskMap
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Worldtask struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TaskId int32 `protobuf:"varint,1,opt,name=taskId,proto3" json:"taskId" bson:"taskIds"` //任务ID
|
||||
TaskType int32 `protobuf:"varint,3,opt,name=taskType,proto3" json:"taskType" bson:"taskType"` //任务类型 1 日/周常 2随机任务 3支线剧情
|
||||
NpcStatus int32 `protobuf:"varint,5,opt,name=npcStatus,proto3" json:"npcStatus" bson:"npcStatus"` //NPC任务完成状态0未完成 1完成
|
||||
CondiIds []int32 `protobuf:"varint,6,rep,packed,name=condiIds,proto3" json:"condiIds" bson:"condiIds"` //任务完成条件
|
||||
DeliverNpc int32 `protobuf:"varint,7,opt,name=deliverNpc,proto3" json:"deliverNpc" bson:"deliverNpc"` //交付NPC完成状态0未完成 1完成
|
||||
TaskId int32 `protobuf:"varint,1,opt,name=taskId,proto3" json:"taskId" bson:"taskId"` //任务ID
|
||||
TaskType int32 `protobuf:"varint,3,opt,name=taskType,proto3" json:"taskType" bson:"taskType"` //任务类型 1 日/周常 2随机任务 3支线剧情
|
||||
NpcStatus int32 `protobuf:"varint,5,opt,name=npcStatus,proto3" json:"npcStatus" bson:"npcStatus"` //NPC任务完成状态0未完成 1完成
|
||||
Conds []*ConIProgress `protobuf:"bytes,6,rep,name=conds,proto3" json:"conds" bson:"conds"` //任务完成条件
|
||||
DeliverNpc int32 `protobuf:"varint,7,opt,name=deliverNpc,proto3" json:"deliverNpc" bson:"deliverNpc"` //交付NPC完成状态0未完成 1完成
|
||||
}
|
||||
|
||||
func (x *Worldtask) Reset() {
|
||||
*x = Worldtask{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[1]
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -135,7 +182,7 @@ func (x *Worldtask) String() string {
|
||||
func (*Worldtask) ProtoMessage() {}
|
||||
|
||||
func (x *Worldtask) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[1]
|
||||
mi := &file_worldtask_worldtask_db_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -148,7 +195,7 @@ func (x *Worldtask) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Worldtask.ProtoReflect.Descriptor instead.
|
||||
func (*Worldtask) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_db_proto_rawDescGZIP(), []int{1}
|
||||
return file_worldtask_worldtask_db_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *Worldtask) GetTaskId() int32 {
|
||||
@ -172,9 +219,9 @@ func (x *Worldtask) GetNpcStatus() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Worldtask) GetCondiIds() []int32 {
|
||||
func (x *Worldtask) GetConds() []*ConIProgress {
|
||||
if x != nil {
|
||||
return x.CondiIds
|
||||
return x.Conds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -190,43 +237,55 @@ var File_worldtask_worldtask_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_worldtask_worldtask_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x77, 0x6f, 0x72, 0x6c,
|
||||
0x64, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93,
|
||||
0x03, 0x0a, 0x0b, 0x44, 0x42, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03,
|
||||
0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b,
|
||||
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x1d, 0x2e, 0x44, 0x42, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x2e,
|
||||
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x36, 0x0a,
|
||||
0x08, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x44, 0x42, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x43, 0x68,
|
||||
0x61, 0x70, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x68, 0x61,
|
||||
0x70, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x64, 0x61, 0x6c, 0x69, 0x79, 0x52, 0x65,
|
||||
0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x10, 0x64, 0x61, 0x6c, 0x69, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x28, 0x0a, 0x0f, 0x77, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x77, 0x65, 0x65, 0x6b,
|
||||
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x4a, 0x0a, 0x10, 0x43,
|
||||
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
||||
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x70, 0x74,
|
||||
0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61,
|
||||
0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61,
|
||||
0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61,
|
||||
0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x70, 0x63, 0x53, 0x74, 0x61,
|
||||
0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6e, 0x70, 0x63, 0x53, 0x74,
|
||||
0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73,
|
||||
0x18, 0x06, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x70, 0x63, 0x18, 0x07,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x70, 0x63,
|
||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x64, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16,
|
||||
0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x2f, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x62,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x03, 0x0a, 0x0b, 0x44, 0x42, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x44, 0x42, 0x57,
|
||||
0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72,
|
||||
0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x70,
|
||||
0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x57,
|
||||
0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
|
||||
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73,
|
||||
0x12, 0x2a, 0x0a, 0x10, 0x64, 0x61, 0x6c, 0x69, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x64, 0x61, 0x6c, 0x69,
|
||||
0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f,
|
||||
0x77, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x77, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x66, 0x72, 0x65,
|
||||
0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x4c, 0x0a, 0x11, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e,
|
||||
0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x57,
|
||||
0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73,
|
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
||||
0x01, 0x22, 0x88, 0x01, 0x0a, 0x0a, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
||||
0x12, 0x32, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x4d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x18, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x4d, 0x61, 0x70, 0x1a, 0x46, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x61, 0x70, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa2, 0x01, 0x0a,
|
||||
0x09, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,
|
||||
0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x6e, 0x70, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x09, 0x6e, 0x70, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x05,
|
||||
0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f,
|
||||
0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x05, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x70, 0x63, 0x18,
|
||||
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x70,
|
||||
0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -241,22 +300,28 @@ func file_worldtask_worldtask_db_proto_rawDescGZIP() []byte {
|
||||
return file_worldtask_worldtask_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_worldtask_worldtask_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_worldtask_worldtask_db_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_worldtask_worldtask_db_proto_goTypes = []interface{}{
|
||||
(*DBWorldtask)(nil), // 0: DBWorldtask
|
||||
(*Worldtask)(nil), // 1: Worldtask
|
||||
nil, // 2: DBWorldtask.CurrentTaskEntry
|
||||
nil, // 3: DBWorldtask.ChaptersEntry
|
||||
(*DBWorldtask)(nil), // 0: DBWorldtask
|
||||
(*Worldtasks)(nil), // 1: Worldtasks
|
||||
(*Worldtask)(nil), // 2: Worldtask
|
||||
nil, // 3: DBWorldtask.CurrentTasksEntry
|
||||
nil, // 4: DBWorldtask.ChaptersEntry
|
||||
nil, // 5: Worldtasks.TaskMapEntry
|
||||
(*ConIProgress)(nil), // 6: ConIProgress
|
||||
}
|
||||
var file_worldtask_worldtask_db_proto_depIdxs = []int32{
|
||||
2, // 0: DBWorldtask.currentTask:type_name -> DBWorldtask.CurrentTaskEntry
|
||||
3, // 1: DBWorldtask.chapters:type_name -> DBWorldtask.ChaptersEntry
|
||||
1, // 2: DBWorldtask.CurrentTaskEntry.value:type_name -> Worldtask
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
3, // 0: DBWorldtask.currentTasks:type_name -> DBWorldtask.CurrentTasksEntry
|
||||
4, // 1: DBWorldtask.chapters:type_name -> DBWorldtask.ChaptersEntry
|
||||
5, // 2: Worldtasks.taskMap:type_name -> Worldtasks.TaskMapEntry
|
||||
6, // 3: Worldtask.conds:type_name -> ConIProgress
|
||||
1, // 4: DBWorldtask.CurrentTasksEntry.value:type_name -> Worldtasks
|
||||
2, // 5: Worldtasks.TaskMapEntry.value:type_name -> Worldtask
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_worldtask_worldtask_db_proto_init() }
|
||||
@ -264,6 +329,7 @@ func file_worldtask_worldtask_db_proto_init() {
|
||||
if File_worldtask_worldtask_db_proto != nil {
|
||||
return
|
||||
}
|
||||
file_buried_buried_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_worldtask_worldtask_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DBWorldtask); i {
|
||||
@ -278,6 +344,18 @@ func file_worldtask_worldtask_db_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Worldtasks); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Worldtask); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -296,7 +374,7 @@ func file_worldtask_worldtask_db_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_worldtask_worldtask_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -112,8 +112,7 @@ type WorldtaskAcceptReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"`
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"`
|
||||
TaskId int32 `protobuf:"varint,1,opt,name=taskId,proto3" json:"taskId"`
|
||||
}
|
||||
|
||||
func (x *WorldtaskAcceptReq) Reset() {
|
||||
@ -148,13 +147,6 @@ func (*WorldtaskAcceptReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *WorldtaskAcceptReq) GetGroupId() int32 {
|
||||
if x != nil {
|
||||
return x.GroupId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *WorldtaskAcceptReq) GetTaskId() int32 {
|
||||
if x != nil {
|
||||
return x.TaskId
|
||||
@ -167,7 +159,7 @@ type WorldtaskAcceptResp struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CondiIds []int32 `protobuf:"varint,1,rep,packed,name=condiIds,proto3" json:"condiIds"` //完成条件
|
||||
Conds []*ConIProgress `protobuf:"bytes,1,rep,name=conds,proto3" json:"conds"` //完成条件
|
||||
}
|
||||
|
||||
func (x *WorldtaskAcceptResp) Reset() {
|
||||
@ -202,9 +194,9 @@ func (*WorldtaskAcceptResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *WorldtaskAcceptResp) GetCondiIds() []int32 {
|
||||
func (x *WorldtaskAcceptResp) GetConds() []*ConIProgress {
|
||||
if x != nil {
|
||||
return x.CondiIds
|
||||
return x.Conds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -215,9 +207,7 @@ type WorldtaskCompletecondisPush struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"`
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"`
|
||||
CondiIds []int32 `protobuf:"varint,3,rep,packed,name=condiIds,proto3" json:"condiIds"`
|
||||
Tasks []*CurrentTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks"`
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompletecondisPush) Reset() {
|
||||
@ -252,23 +242,72 @@ func (*WorldtaskCompletecondisPush) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompletecondisPush) GetGroupId() int32 {
|
||||
func (x *WorldtaskCompletecondisPush) GetTasks() []*CurrentTask {
|
||||
if x != nil {
|
||||
return x.Tasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CurrentTask struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"`
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"`
|
||||
Conds []*ConIProgress `protobuf:"bytes,3,rep,name=conds,proto3" json:"conds"`
|
||||
}
|
||||
|
||||
func (x *CurrentTask) Reset() {
|
||||
*x = CurrentTask{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CurrentTask) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CurrentTask) ProtoMessage() {}
|
||||
|
||||
func (x *CurrentTask) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CurrentTask.ProtoReflect.Descriptor instead.
|
||||
func (*CurrentTask) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *CurrentTask) GetGroupId() int32 {
|
||||
if x != nil {
|
||||
return x.GroupId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompletecondisPush) GetTaskId() int32 {
|
||||
func (x *CurrentTask) GetTaskId() int32 {
|
||||
if x != nil {
|
||||
return x.TaskId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompletecondisPush) GetCondiIds() []int32 {
|
||||
func (x *CurrentTask) GetConds() []*ConIProgress {
|
||||
if x != nil {
|
||||
return x.CondiIds
|
||||
return x.Conds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -279,15 +318,14 @@ type WorldtaskCompleteCondiReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"`
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"`
|
||||
CondiId int32 `protobuf:"varint,3,opt,name=condiId,proto3" json:"condiId"`
|
||||
TaskId int32 `protobuf:"varint,1,opt,name=taskId,proto3" json:"taskId"`
|
||||
CondiId int32 `protobuf:"varint,2,opt,name=condiId,proto3" json:"condiId"`
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompleteCondiReq) Reset() {
|
||||
*x = WorldtaskCompleteCondiReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[5]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -300,7 +338,7 @@ func (x *WorldtaskCompleteCondiReq) String() string {
|
||||
func (*WorldtaskCompleteCondiReq) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskCompleteCondiReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[5]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -313,14 +351,7 @@ func (x *WorldtaskCompleteCondiReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskCompleteCondiReq.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskCompleteCondiReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompleteCondiReq) GetGroupId() int32 {
|
||||
if x != nil {
|
||||
return x.GroupId
|
||||
}
|
||||
return 0
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompleteCondiReq) GetTaskId() int32 {
|
||||
@ -349,7 +380,7 @@ type WorldtaskCompleteCondiResp struct {
|
||||
func (x *WorldtaskCompleteCondiResp) Reset() {
|
||||
*x = WorldtaskCompleteCondiResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[6]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -362,7 +393,7 @@ func (x *WorldtaskCompleteCondiResp) String() string {
|
||||
func (*WorldtaskCompleteCondiResp) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskCompleteCondiResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[6]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -375,7 +406,7 @@ func (x *WorldtaskCompleteCondiResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskCompleteCondiResp.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskCompleteCondiResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{6}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *WorldtaskCompleteCondiResp) GetTaskId() int32 {
|
||||
@ -398,14 +429,13 @@ type WorldtaskFinishReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"` //分组ID
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"` //任务ID
|
||||
TaskId int32 `protobuf:"varint,1,opt,name=taskId,proto3" json:"taskId"` //任务ID
|
||||
}
|
||||
|
||||
func (x *WorldtaskFinishReq) Reset() {
|
||||
*x = WorldtaskFinishReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[7]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -418,7 +448,7 @@ func (x *WorldtaskFinishReq) String() string {
|
||||
func (*WorldtaskFinishReq) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskFinishReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[7]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -431,14 +461,7 @@ func (x *WorldtaskFinishReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskFinishReq.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskFinishReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *WorldtaskFinishReq) GetGroupId() int32 {
|
||||
if x != nil {
|
||||
return x.GroupId
|
||||
}
|
||||
return 0
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *WorldtaskFinishReq) GetTaskId() int32 {
|
||||
@ -459,7 +482,7 @@ type WorldtaskFinishResp struct {
|
||||
func (x *WorldtaskFinishResp) Reset() {
|
||||
*x = WorldtaskFinishResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[8]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -472,7 +495,7 @@ func (x *WorldtaskFinishResp) String() string {
|
||||
func (*WorldtaskFinishResp) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskFinishResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[8]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -485,7 +508,7 @@ func (x *WorldtaskFinishResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskFinishResp.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskFinishResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{8}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *WorldtaskFinishResp) GetTaskId() int32 {
|
||||
@ -501,14 +524,14 @@ type WorldtaskNexttaskPush struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
NextTask map[int32]*Worldtask `protobuf:"bytes,1,rep,name=nextTask,proto3" json:"nextTask" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
FinishedTaskIds []int32 `protobuf:"varint,2,rep,packed,name=finishedTaskIds,proto3" json:"finishedTaskIds"` // 当前完成的任务
|
||||
NextTask map[int32]*Worldtasks `protobuf:"bytes,1,rep,name=nextTask,proto3" json:"nextTask" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
FinishedTaskIds []int32 `protobuf:"varint,2,rep,packed,name=finishedTaskIds,proto3" json:"finishedTaskIds"` // 当前完成的任务
|
||||
}
|
||||
|
||||
func (x *WorldtaskNexttaskPush) Reset() {
|
||||
*x = WorldtaskNexttaskPush{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[9]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -521,7 +544,7 @@ func (x *WorldtaskNexttaskPush) String() string {
|
||||
func (*WorldtaskNexttaskPush) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskNexttaskPush) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[9]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -534,10 +557,10 @@ func (x *WorldtaskNexttaskPush) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskNexttaskPush.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskNexttaskPush) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{9}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *WorldtaskNexttaskPush) GetNextTask() map[int32]*Worldtask {
|
||||
func (x *WorldtaskNexttaskPush) GetNextTask() map[int32]*Worldtasks {
|
||||
if x != nil {
|
||||
return x.NextTask
|
||||
}
|
||||
@ -564,7 +587,7 @@ type WorldtaskBattleStartReq struct {
|
||||
func (x *WorldtaskBattleStartReq) Reset() {
|
||||
*x = WorldtaskBattleStartReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[10]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -577,7 +600,7 @@ func (x *WorldtaskBattleStartReq) String() string {
|
||||
func (*WorldtaskBattleStartReq) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskBattleStartReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[10]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -590,7 +613,7 @@ func (x *WorldtaskBattleStartReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskBattleStartReq.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskBattleStartReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{10}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *WorldtaskBattleStartReq) GetBattleConfId() int32 {
|
||||
@ -618,7 +641,7 @@ type WorldtaskBattleStartResp struct {
|
||||
func (x *WorldtaskBattleStartResp) Reset() {
|
||||
*x = WorldtaskBattleStartResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[11]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -631,7 +654,7 @@ func (x *WorldtaskBattleStartResp) String() string {
|
||||
func (*WorldtaskBattleStartResp) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskBattleStartResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[11]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -644,7 +667,7 @@ func (x *WorldtaskBattleStartResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskBattleStartResp.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskBattleStartResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{11}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *WorldtaskBattleStartResp) GetInfo() *BattleInfo {
|
||||
@ -660,7 +683,6 @@ type WorldtaskBattleFinishReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GroupId int32 `protobuf:"varint,1,opt,name=groupId,proto3" json:"groupId"`
|
||||
TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId"` //任务ID
|
||||
CondiId int32 `protobuf:"varint,3,opt,name=condiId,proto3" json:"condiId"` //完成条件ID
|
||||
BattleConfId int32 `protobuf:"varint,4,opt,name=battleConfId,proto3" json:"battleConfId"` //战斗配表ID
|
||||
@ -670,7 +692,7 @@ type WorldtaskBattleFinishReq struct {
|
||||
func (x *WorldtaskBattleFinishReq) Reset() {
|
||||
*x = WorldtaskBattleFinishReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[12]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -683,7 +705,7 @@ func (x *WorldtaskBattleFinishReq) String() string {
|
||||
func (*WorldtaskBattleFinishReq) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskBattleFinishReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[12]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[13]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -696,14 +718,7 @@ func (x *WorldtaskBattleFinishReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskBattleFinishReq.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskBattleFinishReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *WorldtaskBattleFinishReq) GetGroupId() int32 {
|
||||
if x != nil {
|
||||
return x.GroupId
|
||||
}
|
||||
return 0
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *WorldtaskBattleFinishReq) GetTaskId() int32 {
|
||||
@ -745,7 +760,7 @@ type WorldtaskBattleFinishResp struct {
|
||||
func (x *WorldtaskBattleFinishResp) Reset() {
|
||||
*x = WorldtaskBattleFinishResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[13]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -758,7 +773,7 @@ func (x *WorldtaskBattleFinishResp) String() string {
|
||||
func (*WorldtaskBattleFinishResp) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskBattleFinishResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[13]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[14]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -771,7 +786,7 @@ func (x *WorldtaskBattleFinishResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskBattleFinishResp.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskBattleFinishResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{13}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *WorldtaskBattleFinishResp) GetTaskId() int32 {
|
||||
@ -793,7 +808,7 @@ type WorldtaskFinishIdsPush struct {
|
||||
func (x *WorldtaskFinishIdsPush) Reset() {
|
||||
*x = WorldtaskFinishIdsPush{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[14]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -806,7 +821,7 @@ func (x *WorldtaskFinishIdsPush) String() string {
|
||||
func (*WorldtaskFinishIdsPush) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskFinishIdsPush) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[14]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[15]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -819,7 +834,7 @@ func (x *WorldtaskFinishIdsPush) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskFinishIdsPush.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskFinishIdsPush) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{14}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *WorldtaskFinishIdsPush) GetTaskList() []*Worldtask {
|
||||
@ -841,7 +856,7 @@ type WorldtaskChapterrewardReq struct {
|
||||
func (x *WorldtaskChapterrewardReq) Reset() {
|
||||
*x = WorldtaskChapterrewardReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[15]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -854,7 +869,7 @@ func (x *WorldtaskChapterrewardReq) String() string {
|
||||
func (*WorldtaskChapterrewardReq) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskChapterrewardReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[15]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[16]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -867,7 +882,7 @@ func (x *WorldtaskChapterrewardReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskChapterrewardReq.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskChapterrewardReq) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{15}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *WorldtaskChapterrewardReq) GetGroupId() int32 {
|
||||
@ -888,7 +903,7 @@ type WorldtaskChapterrewardResp struct {
|
||||
func (x *WorldtaskChapterrewardResp) Reset() {
|
||||
*x = WorldtaskChapterrewardResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[16]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[17]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -901,7 +916,7 @@ func (x *WorldtaskChapterrewardResp) String() string {
|
||||
func (*WorldtaskChapterrewardResp) ProtoMessage() {}
|
||||
|
||||
func (x *WorldtaskChapterrewardResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[16]
|
||||
mi := &file_worldtask_worldtask_msg_proto_msgTypes[17]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -914,7 +929,7 @@ func (x *WorldtaskChapterrewardResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WorldtaskChapterrewardResp.ProtoReflect.Descriptor instead.
|
||||
func (*WorldtaskChapterrewardResp) Descriptor() ([]byte, []int) {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{16}
|
||||
return file_worldtask_worldtask_msg_proto_rawDescGZIP(), []int{17}
|
||||
}
|
||||
|
||||
func (x *WorldtaskChapterrewardResp) GetGroupId() int32 {
|
||||
@ -932,57 +947,58 @@ var file_worldtask_worldtask_msg_proto_rawDesc = []byte{
|
||||
0x17, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x6d,
|
||||
0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x2f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x62,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x4d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22, 0x35, 0x0a, 0x11, 0x57, 0x6f,
|
||||
0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x4d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||
0x20, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
|
||||
0x44, 0x42, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x22, 0x46, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x41, 0x63,
|
||||
0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
|
||||
0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x13, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||
0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73, 0x22, 0x6b, 0x0a, 0x1b,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x2f, 0x62,
|
||||
0x75, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12,
|
||||
0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x4d, 0x69, 0x6e, 0x65, 0x52,
|
||||
0x65, 0x71, 0x22, 0x35, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x4d,
|
||||
0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0x2c, 0x0a, 0x12, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x71, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6c, 0x64,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23,
|
||||
0x0a, 0x05, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||
0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x05, 0x63, 0x6f,
|
||||
0x6e, 0x64, 0x73, 0x22, 0x41, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x73, 0x50, 0x75,
|
||||
0x73, 0x68, 0x12, 0x22, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x0c, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52,
|
||||
0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x64, 0x0a, 0x0b, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e,
|
||||
0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x63, 0x6f, 0x6e, 0x64, 0x73,
|
||||
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f,
|
||||
0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x05, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x4d, 0x0a, 0x19,
|
||||
0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74,
|
||||
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52,
|
||||
0x08, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x19, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f,
|
||||
0x6e, 0x64, 0x69, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x69, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69,
|
||||
0x49, 0x64, 0x22, 0x4e, 0x0a, 0x1a, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43,
|
||||
0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x52, 0x65, 0x73, 0x70,
|
||||
0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49,
|
||||
0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x1a, 0x57,
|
||||
0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65,
|
||||
0x43, 0x6f, 0x6e, 0x64, 0x69, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49,
|
||||
0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x12, 0x57,
|
||||
0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65,
|
||||
0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x13, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x69, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69,
|
||||
0x49, 0x64, 0x22, 0x46, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x46,
|
||||
0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75,
|
||||
0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||||
0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x13, 0x57, 0x6f,
|
||||
0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73,
|
||||
0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0xcc, 0x01, 0x0a, 0x15, 0x57, 0x6f,
|
||||
0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x65, 0x78, 0x74, 0x74, 0x61, 0x73, 0x6b, 0x50,
|
||||
0x75, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x18,
|
||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x4e, 0x65, 0x78, 0x74, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x75, 0x73, 0x68, 0x2e, 0x4e, 0x65,
|
||||
0x78, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6e, 0x65, 0x78,
|
||||
0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65,
|
||||
0x64, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f,
|
||||
0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x1a,
|
||||
0x47, 0x0a, 0x0d, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x12, 0x20, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x76,
|
||||
0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0xcd, 0x01, 0x0a, 0x15, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x65, 0x78, 0x74, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x75,
|
||||
0x73, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x4e, 0x65, 0x78, 0x74, 0x74, 0x61, 0x73, 0x6b, 0x50, 0x75, 0x73, 0x68, 0x2e, 0x4e, 0x65, 0x78,
|
||||
0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6e, 0x65, 0x78, 0x74,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x66,
|
||||
0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x1a, 0x48,
|
||||
0x0a, 0x0d, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
||||
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x0b, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x67, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6c,
|
||||
0x64, 0x74, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74,
|
||||
0x52, 0x65, 0x71, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e,
|
||||
@ -993,34 +1009,32 @@ var file_worldtask_worldtask_msg_proto_rawDesc = []byte{
|
||||
0x65, 0x22, 0x3b, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x42, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a,
|
||||
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xb1,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x97,
|
||||
0x01, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x74, 0x74,
|
||||
0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
|
||||
0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c,
|
||||
0x65, 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x62,
|
||||
0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x72,
|
||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f,
|
||||
0x72, 0x74, 0x22, 0x33, 0x0a, 0x19, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x42,
|
||||
0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6c, 0x64,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x49, 0x64, 0x73, 0x50, 0x75, 0x73,
|
||||
0x68, 0x12, 0x26, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x52,
|
||||
0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x19, 0x57, 0x6f, 0x72,
|
||||
0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x72, 0x65, 0x77,
|
||||
0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
|
||||
0x22, 0x36, 0x0a, 0x1a, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x68, 0x61,
|
||||
0x70, 0x74, 0x65, 0x72, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x49, 0x64, 0x12, 0x22, 0x0a,
|
||||
0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x49, 0x64, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x49,
|
||||
0x64, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,
|
||||
0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x33, 0x0a, 0x19, 0x57, 0x6f, 0x72, 0x6c,
|
||||
0x64, 0x74, 0x61, 0x73, 0x6b, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73,
|
||||
0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x40, 0x0a,
|
||||
0x16, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68,
|
||||
0x49, 0x64, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c,
|
||||
0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x57, 0x6f, 0x72, 0x6c,
|
||||
0x64, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22,
|
||||
0x35, 0x0a, 0x19, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x68, 0x61, 0x70,
|
||||
0x74, 0x65, 0x72, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x1a, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64,
|
||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x42, 0x06,
|
||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -1035,45 +1049,51 @@ func file_worldtask_worldtask_msg_proto_rawDescGZIP() []byte {
|
||||
return file_worldtask_worldtask_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_worldtask_worldtask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
|
||||
var file_worldtask_worldtask_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
|
||||
var file_worldtask_worldtask_msg_proto_goTypes = []interface{}{
|
||||
(*WorldtaskMineReq)(nil), // 0: WorldtaskMineReq
|
||||
(*WorldtaskMineResp)(nil), // 1: WorldtaskMineResp
|
||||
(*WorldtaskAcceptReq)(nil), // 2: WorldtaskAcceptReq
|
||||
(*WorldtaskAcceptResp)(nil), // 3: WorldtaskAcceptResp
|
||||
(*WorldtaskCompletecondisPush)(nil), // 4: WorldtaskCompletecondisPush
|
||||
(*WorldtaskCompleteCondiReq)(nil), // 5: WorldtaskCompleteCondiReq
|
||||
(*WorldtaskCompleteCondiResp)(nil), // 6: WorldtaskCompleteCondiResp
|
||||
(*WorldtaskFinishReq)(nil), // 7: WorldtaskFinishReq
|
||||
(*WorldtaskFinishResp)(nil), // 8: WorldtaskFinishResp
|
||||
(*WorldtaskNexttaskPush)(nil), // 9: WorldtaskNexttaskPush
|
||||
(*WorldtaskBattleStartReq)(nil), // 10: WorldtaskBattleStartReq
|
||||
(*WorldtaskBattleStartResp)(nil), // 11: WorldtaskBattleStartResp
|
||||
(*WorldtaskBattleFinishReq)(nil), // 12: WorldtaskBattleFinishReq
|
||||
(*WorldtaskBattleFinishResp)(nil), // 13: WorldtaskBattleFinishResp
|
||||
(*WorldtaskFinishIdsPush)(nil), // 14: WorldtaskFinishIdsPush
|
||||
(*WorldtaskChapterrewardReq)(nil), // 15: WorldtaskChapterrewardReq
|
||||
(*WorldtaskChapterrewardResp)(nil), // 16: WorldtaskChapterrewardResp
|
||||
nil, // 17: WorldtaskNexttaskPush.NextTaskEntry
|
||||
(*DBWorldtask)(nil), // 18: DBWorldtask
|
||||
(*BattleFormation)(nil), // 19: BattleFormation
|
||||
(*BattleInfo)(nil), // 20: BattleInfo
|
||||
(*BattleReport)(nil), // 21: BattleReport
|
||||
(*Worldtask)(nil), // 22: Worldtask
|
||||
(*CurrentTask)(nil), // 5: CurrentTask
|
||||
(*WorldtaskCompleteCondiReq)(nil), // 6: WorldtaskCompleteCondiReq
|
||||
(*WorldtaskCompleteCondiResp)(nil), // 7: WorldtaskCompleteCondiResp
|
||||
(*WorldtaskFinishReq)(nil), // 8: WorldtaskFinishReq
|
||||
(*WorldtaskFinishResp)(nil), // 9: WorldtaskFinishResp
|
||||
(*WorldtaskNexttaskPush)(nil), // 10: WorldtaskNexttaskPush
|
||||
(*WorldtaskBattleStartReq)(nil), // 11: WorldtaskBattleStartReq
|
||||
(*WorldtaskBattleStartResp)(nil), // 12: WorldtaskBattleStartResp
|
||||
(*WorldtaskBattleFinishReq)(nil), // 13: WorldtaskBattleFinishReq
|
||||
(*WorldtaskBattleFinishResp)(nil), // 14: WorldtaskBattleFinishResp
|
||||
(*WorldtaskFinishIdsPush)(nil), // 15: WorldtaskFinishIdsPush
|
||||
(*WorldtaskChapterrewardReq)(nil), // 16: WorldtaskChapterrewardReq
|
||||
(*WorldtaskChapterrewardResp)(nil), // 17: WorldtaskChapterrewardResp
|
||||
nil, // 18: WorldtaskNexttaskPush.NextTaskEntry
|
||||
(*DBWorldtask)(nil), // 19: DBWorldtask
|
||||
(*ConIProgress)(nil), // 20: ConIProgress
|
||||
(*BattleFormation)(nil), // 21: BattleFormation
|
||||
(*BattleInfo)(nil), // 22: BattleInfo
|
||||
(*BattleReport)(nil), // 23: BattleReport
|
||||
(*Worldtask)(nil), // 24: Worldtask
|
||||
(*Worldtasks)(nil), // 25: Worldtasks
|
||||
}
|
||||
var file_worldtask_worldtask_msg_proto_depIdxs = []int32{
|
||||
18, // 0: WorldtaskMineResp.task:type_name -> DBWorldtask
|
||||
17, // 1: WorldtaskNexttaskPush.nextTask:type_name -> WorldtaskNexttaskPush.NextTaskEntry
|
||||
19, // 2: WorldtaskBattleStartReq.battle:type_name -> BattleFormation
|
||||
20, // 3: WorldtaskBattleStartResp.info:type_name -> BattleInfo
|
||||
21, // 4: WorldtaskBattleFinishReq.report:type_name -> BattleReport
|
||||
22, // 5: WorldtaskFinishIdsPush.taskList:type_name -> Worldtask
|
||||
22, // 6: WorldtaskNexttaskPush.NextTaskEntry.value:type_name -> Worldtask
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
19, // 0: WorldtaskMineResp.task:type_name -> DBWorldtask
|
||||
20, // 1: WorldtaskAcceptResp.conds:type_name -> ConIProgress
|
||||
5, // 2: WorldtaskCompletecondisPush.tasks:type_name -> CurrentTask
|
||||
20, // 3: CurrentTask.conds:type_name -> ConIProgress
|
||||
18, // 4: WorldtaskNexttaskPush.nextTask:type_name -> WorldtaskNexttaskPush.NextTaskEntry
|
||||
21, // 5: WorldtaskBattleStartReq.battle:type_name -> BattleFormation
|
||||
22, // 6: WorldtaskBattleStartResp.info:type_name -> BattleInfo
|
||||
23, // 7: WorldtaskBattleFinishReq.report:type_name -> BattleReport
|
||||
24, // 8: WorldtaskFinishIdsPush.taskList:type_name -> Worldtask
|
||||
25, // 9: WorldtaskNexttaskPush.NextTaskEntry.value:type_name -> Worldtasks
|
||||
10, // [10:10] is the sub-list for method output_type
|
||||
10, // [10:10] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
10, // [10:10] is the sub-list for extension extendee
|
||||
0, // [0:10] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_worldtask_worldtask_msg_proto_init() }
|
||||
@ -1083,6 +1103,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
file_battle_battle_msg_proto_init()
|
||||
file_worldtask_worldtask_db_proto_init()
|
||||
file_buried_buried_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskMineReq); i {
|
||||
@ -1145,7 +1166,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskCompleteCondiReq); i {
|
||||
switch v := v.(*CurrentTask); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1157,7 +1178,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskCompleteCondiResp); i {
|
||||
switch v := v.(*WorldtaskCompleteCondiReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1169,7 +1190,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskFinishReq); i {
|
||||
switch v := v.(*WorldtaskCompleteCondiResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1181,7 +1202,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskFinishResp); i {
|
||||
switch v := v.(*WorldtaskFinishReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1193,7 +1214,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskNexttaskPush); i {
|
||||
switch v := v.(*WorldtaskFinishResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1205,7 +1226,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskBattleStartReq); i {
|
||||
switch v := v.(*WorldtaskNexttaskPush); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1217,7 +1238,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskBattleStartResp); i {
|
||||
switch v := v.(*WorldtaskBattleStartReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1229,7 +1250,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskBattleFinishReq); i {
|
||||
switch v := v.(*WorldtaskBattleStartResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1241,7 +1262,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskBattleFinishResp); i {
|
||||
switch v := v.(*WorldtaskBattleFinishReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1253,7 +1274,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskFinishIdsPush); i {
|
||||
switch v := v.(*WorldtaskBattleFinishResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1265,7 +1286,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskChapterrewardReq); i {
|
||||
switch v := v.(*WorldtaskFinishIdsPush); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1277,6 +1298,18 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskChapterrewardReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_worldtask_worldtask_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WorldtaskChapterrewardResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1295,7 +1328,7 @@ func file_worldtask_worldtask_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_worldtask_worldtask_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 18,
|
||||
NumMessages: 19,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -16,6 +16,7 @@ func ConvertReward(data ...*cfg.Gameatn) (res []*pb.UserAssets) {
|
||||
return
|
||||
}
|
||||
|
||||
// 去重
|
||||
func RemoveDuplicate(arr []int32) []int32 {
|
||||
visited := make(map[int32]bool)
|
||||
result := []int32{}
|
||||
|
Loading…
Reference in New Issue
Block a user