上传扫荡代码

This commit is contained in:
liwei1dao 2024-02-01 17:16:24 +08:00
parent 7307ab888f
commit 19302bc1af
3 changed files with 611 additions and 26 deletions

View File

@ -0,0 +1,260 @@
package hunting
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
"go.mongodb.org/mongo-driver/bson/primitive"
)
// 参数校验
func (this *apiComp) SweepCheck(session comm.IUserSession, req *pb.HuntingSweepReq) (errdata *pb.ErrorData) {
if req.BossId <= 0 && req.Difficulty > 0 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
return
}
return
}
// /挑战完成
func (this *apiComp) Sweep(session comm.IUserSession, req *pb.HuntingSweepReq) (errdata *pb.ErrorData) {
var (
viking *pb.DBHunting
record *pb.DBBattleRecord
infos []*pb.BattleInfo
runresp *pb.BattleRunResp
conf *cfg.GameSweepData
boosCfg *cfg.GameHuntingBossData
user *pb.DBUser
bWin bool // 战斗是否胜利
rewardatno []*pb.UserAtno // atno 类型
consumeatns []*pb.UserAssets // 消耗
changExp map[string]int32
heroupaward []*cfg.Gameatn
reward []*cfg.Gameatn
consume []*cfg.Gameatn
allconsume []*cfg.Gameatn
err error
result []*pb.HuntingSweepResult
ps int32
totalps int32
// 随机任务统计
tasks []*pb.BuriedParam
)
changExp = make(map[string]int32, 0)
if errdata = this.SweepCheck(session, req); errdata != nil {
return // 参数校验失败直接返回
}
if viking, err = this.module.modelHunting.getHuntingList(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_VikingBoosType,
Message: err.Error(),
}
return
}
boosCfg, err = this.module.configure.GetHuntingBossConfigData(req.BossId, req.Difficulty)
if err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
}
if req.Difficulty > viking.Boss[req.BossId] {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_VikingLvErr,
Title: pb.ErrorCode_VikingLvErr.ToString(),
}
return
}
if user, err = this.module.GetUserForSession(session); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
if errdata, record = this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
Rulesid: boosCfg.BattleReadyID,
Ptype: pb.PlayType_viking,
Title: "",
Format: req.Battle,
Mformat: boosCfg.Boss,
}); errdata != nil {
return
}
for i := 0; i < int(req.Sweepnum); i++ {
infos = append(infos, &pb.BattleInfo{
Id: primitive.NewObjectID().Hex(),
Title: record.Title,
Rulesid: boosCfg.BattleReadyID,
Btype: record.Btype,
Ptype: record.Ptype,
RedCompId: record.RedCompId,
Redflist: record.Redflist,
BlueCompId: record.BlueCompId,
Buleflist: record.Buleflist,
Tasks: record.Tasks,
})
}
if errdata, runresp = this.module.battle.RunServerBattle(session, &pb.BattleRunReq{Info: infos}); errdata != nil {
return
}
for _, v := range runresp.Reports {
bWin = false
ps = 0
reward = make([]*cfg.Gameatn, 0)
consume = make([]*cfg.Gameatn, 0)
consumeatns = make([]*pb.UserAssets, 0)
if v.WinSide == 1 {
bWin = true
}
for _, v := range boosCfg.PsMg {
if v.A == "attr" && v.T == "ps" {
ps += v.N
}
}
consume = append(consume, boosCfg.PsMg...)
if conf, err = this.module.configure.GetGameSweepData(req.Sweepgroup, v.Round); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Message: err.Error(),
}
return
}
if !bWin { // 战斗失败了 直接返回
consume = append(consume, conf.LoseCost...)
reward = append(reward, this.module.ModuleUser.PsConvertExp(ps))
for _, v := range consume {
consumeatns = append(consumeatns, &pb.UserAssets{
A: v.A,
T: v.T,
N: v.N,
})
}
//发放资源
if errdata, rewardatno = this.module.DispenseAtno(session, reward, true); errdata != nil {
return
}
result = append(result, &pb.HuntingSweepResult{
Battleid: v.Info.Id,
Iswin: false,
Consume: consumeatns,
Rounds: v.Round,
Award: rewardatno,
})
totalps += ps
allconsume = append(allconsume, consume...)
break
}
for _, v := range boosCfg.PsConsume {
if v.A == "attr" && v.T == "ps" {
ps += v.N
}
}
totalps += ps
consume = append(consume, conf.WinCost...)
consume = append(consume, boosCfg.PsConsume...)
reward = append(reward, this.module.ModuleUser.PsConvertExp(ps))
reward = this.module.ModuleTools.GetGroupDataByLottery(boosCfg.Drop, user.Vip, user.Lv)
b := this.module.ModuleActivity.HDCelebration(session, 2, req.BossId)
for _, v := range reward {
reward = append(reward, v)
if b { // 活动双倍
reward = append(reward, v)
}
}
// 加经验
if boosCfg.Heroexp > 0 {
var heroObjs []string
if v != nil && v.Info != nil && len(v.Info.Redflist) > 0 {
for _, v1 := range v.Info.Redflist[0].Team {
if v1 != nil && v1.HeroID != "" {
if !v1.Ishelp { // 助战英雄不加经验
heroObjs = append(heroObjs, v1.Oid)
}
}
}
}
if changExp, heroupaward, errdata = this.module.ModuleHero.AddHerosExp(session, heroObjs, boosCfg.Heroexp); errdata != nil {
return
}
reward = append(reward, heroupaward...)
}
//发放资源
if errdata, rewardatno = this.module.DispenseAtno(session, reward, true); errdata != nil {
return
}
// 狩猎副本掉落觉醒材料
for _, v := range reward {
if v.A == "item" {
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
if _conf.Usetype == comm.UseType8 {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N))
}
}
}
}
for _, v := range consume {
consumeatns = append(consumeatns, &pb.UserAssets{
A: v.A,
T: v.T,
N: v.N,
})
}
result = append(result, &pb.HuntingSweepResult{
Battleid: v.Info.Id,
Iswin: true,
Rounds: v.Round,
Consume: consumeatns,
Award: rewardatno,
Heroexp: changExp,
})
allconsume = append(allconsume, consume...)
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype80, 1, req.BossId, req.Difficulty))
// 随机任务统计
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype81, req.Difficulty, req.BossId))
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype82, 1, req.BossId))
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype83, 1, req.BossId, req.Difficulty))
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype200, 1))
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype251, 1, boosCfg.Id, v.Round))
}
//消耗资源
if errdata = this.module.ConsumeRes(session, allconsume, true); errdata != nil {
return
}
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype202, totalps))
session.SendMsg(string(this.module.GetType()), "sweep", &pb.HuntingSweepResp{
Result: result,
})
if len(tasks) > 0 {
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
this.chat.SendSysChatToWorld(session, comm.ChatSystem14, nil, req.BossId, req.Difficulty, user.Name)
this.module.ModuleBuried.TriggerBuried(session, tasks...)
this.module.WriteUserLog(session.GetUserId(), req, comm.GMResAddType, "HuntingSweepReq", rewardatno)
})
}
return
}

View File

@ -15,6 +15,7 @@ var moduleName = "hunting"
const (
game_huntingboss = "game_huntingboss.json"
game_sweep = "game_sweep.json"
)
///配置管理基础组件
@ -29,6 +30,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
err = this.MCompConfigure.Init(service, module, comp, options)
this._huntingMap = make(map[int64]*cfg.GameHuntingBossData, 0)
err = this.LoadConfigure(game_sweep, cfg.NewGameSweep)
configure.RegisterConfigure(game_huntingboss, cfg.NewGameHuntingBoss, func() {
if v, err := this.GetConfigure(game_huntingboss); err == nil {
if configure, ok := v.(*cfg.GameHuntingBoss); ok {
@ -116,3 +118,21 @@ func (this *configureComp) GetHuntingBossAllData() (data map[int32]int32) {
}
return
}
func (this *configureComp) GetGameSweepData(id int32, round int32) (conf *cfg.GameSweepData, err error) {
var (
v interface{}
)
if v, err = this.GetConfigure(game_sweep); err != nil {
return
} else {
for _, v := range v.(*cfg.GameSweep).GetDataList() {
if v.Group == id && round >= v.Low && round <= v.Up {
conf = v
return
}
}
err = comm.NewNotFoundConfErr(moduleName, game_sweep, id)
return
}
}

View File

@ -589,6 +589,230 @@ func (x *HuntingRankListResp) GetFranks() []*DBHuntingRank {
return nil
}
// 扫荡
type HuntingSweepReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
BossId int32 `protobuf:"varint,1,opt,name=bossId,proto3" json:"bossId"` // boos 类型
Difficulty int32 `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty"` // 难度
Battle *BattleFormation `protobuf:"bytes,3,opt,name=battle,proto3" json:"battle"`
Sweepnum int32 `protobuf:"varint,4,opt,name=sweepnum,proto3" json:"sweepnum"` //扫荡结束
Isfailend bool `protobuf:"varint,5,opt,name=isfailend,proto3" json:"isfailend"` //失败是否结束
Sweepgroup int32 `protobuf:"varint,6,opt,name=sweepgroup,proto3" json:"sweepgroup"` //扫荡组
}
func (x *HuntingSweepReq) Reset() {
*x = HuntingSweepReq{}
if protoimpl.UnsafeEnabled {
mi := &file_hunting_hunting_msg_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HuntingSweepReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HuntingSweepReq) ProtoMessage() {}
func (x *HuntingSweepReq) ProtoReflect() protoreflect.Message {
mi := &file_hunting_hunting_msg_proto_msgTypes[10]
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 HuntingSweepReq.ProtoReflect.Descriptor instead.
func (*HuntingSweepReq) Descriptor() ([]byte, []int) {
return file_hunting_hunting_msg_proto_rawDescGZIP(), []int{10}
}
func (x *HuntingSweepReq) GetBossId() int32 {
if x != nil {
return x.BossId
}
return 0
}
func (x *HuntingSweepReq) GetDifficulty() int32 {
if x != nil {
return x.Difficulty
}
return 0
}
func (x *HuntingSweepReq) GetBattle() *BattleFormation {
if x != nil {
return x.Battle
}
return nil
}
func (x *HuntingSweepReq) GetSweepnum() int32 {
if x != nil {
return x.Sweepnum
}
return 0
}
func (x *HuntingSweepReq) GetIsfailend() bool {
if x != nil {
return x.Isfailend
}
return false
}
func (x *HuntingSweepReq) GetSweepgroup() int32 {
if x != nil {
return x.Sweepgroup
}
return 0
}
//扫荡结果
type HuntingSweepResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Battleid string `protobuf:"bytes,1,opt,name=battleid,proto3" json:"battleid"` //战斗id
Iswin bool `protobuf:"varint,2,opt,name=iswin,proto3" json:"iswin"` //是否胜利
Rounds int32 `protobuf:"varint,4,opt,name=rounds,proto3" json:"rounds"` //回合数
Consume []*UserAssets `protobuf:"bytes,5,rep,name=consume,proto3" json:"consume"` //消耗材料
Award []*UserAtno `protobuf:"bytes,6,rep,name=award,proto3" json:"award"` //奖励字段
Heroexp map[string]int32 `protobuf:"bytes,7,rep,name=heroexp,proto3" json:"heroexp" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 英雄获得经验
}
func (x *HuntingSweepResult) Reset() {
*x = HuntingSweepResult{}
if protoimpl.UnsafeEnabled {
mi := &file_hunting_hunting_msg_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HuntingSweepResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HuntingSweepResult) ProtoMessage() {}
func (x *HuntingSweepResult) ProtoReflect() protoreflect.Message {
mi := &file_hunting_hunting_msg_proto_msgTypes[11]
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 HuntingSweepResult.ProtoReflect.Descriptor instead.
func (*HuntingSweepResult) Descriptor() ([]byte, []int) {
return file_hunting_hunting_msg_proto_rawDescGZIP(), []int{11}
}
func (x *HuntingSweepResult) GetBattleid() string {
if x != nil {
return x.Battleid
}
return ""
}
func (x *HuntingSweepResult) GetIswin() bool {
if x != nil {
return x.Iswin
}
return false
}
func (x *HuntingSweepResult) GetRounds() int32 {
if x != nil {
return x.Rounds
}
return 0
}
func (x *HuntingSweepResult) GetConsume() []*UserAssets {
if x != nil {
return x.Consume
}
return nil
}
func (x *HuntingSweepResult) GetAward() []*UserAtno {
if x != nil {
return x.Award
}
return nil
}
func (x *HuntingSweepResult) GetHeroexp() map[string]int32 {
if x != nil {
return x.Heroexp
}
return nil
}
// 扫荡 回应
type HuntingSweepResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result []*HuntingSweepResult `protobuf:"bytes,1,rep,name=result,proto3" json:"result"`
}
func (x *HuntingSweepResp) Reset() {
*x = HuntingSweepResp{}
if protoimpl.UnsafeEnabled {
mi := &file_hunting_hunting_msg_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HuntingSweepResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HuntingSweepResp) ProtoMessage() {}
func (x *HuntingSweepResp) ProtoReflect() protoreflect.Message {
mi := &file_hunting_hunting_msg_proto_msgTypes[12]
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 HuntingSweepResp.ProtoReflect.Descriptor instead.
func (*HuntingSweepResp) Descriptor() ([]byte, []int) {
return file_hunting_hunting_msg_proto_rawDescGZIP(), []int{12}
}
func (x *HuntingSweepResp) GetResult() []*HuntingSweepResult {
if x != nil {
return x.Result
}
return nil
}
var File_hunting_hunting_msg_proto protoreflect.FileDescriptor
var file_hunting_hunting_msg_proto_rawDesc = []byte{
@ -659,8 +883,43 @@ var file_hunting_hunting_msg_proto_rawDesc = []byte{
0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x6b,
0x73, 0x12, 0x26, 0x0a, 0x06, 0x66, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e,
0x6b, 0x52, 0x06, 0x66, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6b, 0x52, 0x06, 0x66, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0f, 0x48, 0x75,
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x77, 0x65, 0x65, 0x70, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a,
0x06, 0x62, 0x6f, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62,
0x6f, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75,
0x6c, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69,
0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x28, 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f,
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x12,
0x1a, 0x0a, 0x08, 0x73, 0x77, 0x65, 0x65, 0x70, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28,
0x05, 0x52, 0x08, 0x73, 0x77, 0x65, 0x65, 0x70, 0x6e, 0x75, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x69,
0x73, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,
0x69, 0x73, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x77, 0x65,
0x65, 0x70, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73,
0x77, 0x65, 0x65, 0x70, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x9e, 0x02, 0x0a, 0x12, 0x48, 0x75,
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x77, 0x65, 0x65, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x12, 0x1a, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
0x69, 0x73, 0x77, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x77,
0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01,
0x28, 0x05, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x07, 0x63, 0x6f,
0x6e, 0x73, 0x75, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
0x65, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61,
0x72, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x18, 0x07, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x77, 0x65,
0x65, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x1a, 0x3a,
0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 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, 0x3f, 0x0a, 0x10, 0x48, 0x75,
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x77, 0x65, 0x65, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b,
0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
0x2e, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x77, 0x65, 0x65, 0x70, 0x52, 0x65, 0x73,
0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -675,7 +934,7 @@ func file_hunting_hunting_msg_proto_rawDescGZIP() []byte {
return file_hunting_hunting_msg_proto_rawDescData
}
var file_hunting_hunting_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_hunting_hunting_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
var file_hunting_hunting_msg_proto_goTypes = []interface{}{
(*HuntingGetListReq)(nil), // 0: HuntingGetListReq
(*HuntingGetListResp)(nil), // 1: HuntingGetListResp
@ -687,30 +946,40 @@ var file_hunting_hunting_msg_proto_goTypes = []interface{}{
(*HuntingBuyResp)(nil), // 7: HuntingBuyResp
(*HuntingRankListReq)(nil), // 8: HuntingRankListReq
(*HuntingRankListResp)(nil), // 9: HuntingRankListResp
nil, // 10: HuntingChallengeOverResp.HeroexpEntry
(*DBHunting)(nil), // 11: DBHunting
(*BattleFormation)(nil), // 12: BattleFormation
(*BattleInfo)(nil), // 13: BattleInfo
(*BattleReport)(nil), // 14: BattleReport
(*UserAtno)(nil), // 15: UserAtno
(*DBHuntingRank)(nil), // 16: DBHuntingRank
(*HuntingSweepReq)(nil), // 10: HuntingSweepReq
(*HuntingSweepResult)(nil), // 11: HuntingSweepResult
(*HuntingSweepResp)(nil), // 12: HuntingSweepResp
nil, // 13: HuntingChallengeOverResp.HeroexpEntry
nil, // 14: HuntingSweepResult.HeroexpEntry
(*DBHunting)(nil), // 15: DBHunting
(*BattleFormation)(nil), // 16: BattleFormation
(*BattleInfo)(nil), // 17: BattleInfo
(*BattleReport)(nil), // 18: BattleReport
(*UserAtno)(nil), // 19: UserAtno
(*DBHuntingRank)(nil), // 20: DBHuntingRank
(*UserAssets)(nil), // 21: UserAssets
}
var file_hunting_hunting_msg_proto_depIdxs = []int32{
11, // 0: HuntingGetListResp.data:type_name -> DBHunting
12, // 1: HuntingChallengeReq.battle:type_name -> BattleFormation
13, // 2: HuntingChallengeResp.info:type_name -> BattleInfo
14, // 3: HuntingChallengeOverReq.report:type_name -> BattleReport
11, // 4: HuntingChallengeOverResp.data:type_name -> DBHunting
15, // 5: HuntingChallengeOverResp.asset:type_name -> UserAtno
10, // 6: HuntingChallengeOverResp.heroexp:type_name -> HuntingChallengeOverResp.HeroexpEntry
11, // 7: HuntingBuyResp.data:type_name -> DBHunting
16, // 8: HuntingRankListResp.ranks:type_name -> DBHuntingRank
16, // 9: HuntingRankListResp.franks:type_name -> DBHuntingRank
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
15, // 0: HuntingGetListResp.data:type_name -> DBHunting
16, // 1: HuntingChallengeReq.battle:type_name -> BattleFormation
17, // 2: HuntingChallengeResp.info:type_name -> BattleInfo
18, // 3: HuntingChallengeOverReq.report:type_name -> BattleReport
15, // 4: HuntingChallengeOverResp.data:type_name -> DBHunting
19, // 5: HuntingChallengeOverResp.asset:type_name -> UserAtno
13, // 6: HuntingChallengeOverResp.heroexp:type_name -> HuntingChallengeOverResp.HeroexpEntry
15, // 7: HuntingBuyResp.data:type_name -> DBHunting
20, // 8: HuntingRankListResp.ranks:type_name -> DBHuntingRank
20, // 9: HuntingRankListResp.franks:type_name -> DBHuntingRank
16, // 10: HuntingSweepReq.battle:type_name -> BattleFormation
21, // 11: HuntingSweepResult.consume:type_name -> UserAssets
19, // 12: HuntingSweepResult.award:type_name -> UserAtno
14, // 13: HuntingSweepResult.heroexp:type_name -> HuntingSweepResult.HeroexpEntry
11, // 14: HuntingSweepResp.result:type_name -> HuntingSweepResult
15, // [15:15] is the sub-list for method output_type
15, // [15:15] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
}
func init() { file_hunting_hunting_msg_proto_init() }
@ -842,6 +1111,42 @@ func file_hunting_hunting_msg_proto_init() {
return nil
}
}
file_hunting_hunting_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HuntingSweepReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hunting_hunting_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HuntingSweepResult); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hunting_hunting_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HuntingSweepResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
@ -849,7 +1154,7 @@ func file_hunting_hunting_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_hunting_hunting_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumMessages: 15,
NumExtensions: 0,
NumServices: 0,
},