From 9e986f40f31840875ddd102f7c9106930daf5f69 Mon Sep 17 00:00:00 2001 From: zhaocy Date: Tue, 28 Jun 2022 18:04:34 +0800 Subject: [PATCH] =?UTF-8?q?proto=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/robot/friend.go | 18 +- cmd/robot/hero.go | 10 +- cmd/robot/login.go | 2 +- cmd/robot/notify.go | 4 +- cmd/robot/pack.go | 6 +- cmd/robot/user.go | 2 +- comm/const.go | 34 +- comm/imodule.go | 6 +- modules/dbservice/db_comp.go | 4 +- modules/dbservice/module.go | 2 +- modules/equipment/api_equip.go | 6 +- modules/equipment/api_upgrade.go | 2 +- modules/equipment/module.go | 4 +- modules/forum/module.go | 2 +- modules/friend/module.go | 2 +- modules/game/module.go | 2 +- modules/gateway/agent.go | 8 +- modules/gateway/module.go | 2 +- modules/hero/api.go | 4 +- modules/hero/api_heroStarUp.go | 6 +- modules/hero/api_heroStrengthen.go | 6 +- modules/hero/api_info.go | 8 +- modules/hero/api_list.go | 6 +- modules/hero/model_hero.go | 16 +- modules/hero/module.go | 10 +- modules/items/module.go | 2 +- modules/mail/api.go | 2 +- modules/mail/module.go | 2 +- modules/modulebase.go | 6 +- modules/user/api.go | 2 +- modules/user/api_login.go | 2 +- modules/user/module.go | 4 +- modules/web/module.go | 2 +- pb/hero_db.pb.go | 189 ++++---- pb/hero_msg.pb.go | 663 ++++++++++++++--------------- pb/proto/hero/hero_db.proto | 13 +- pb/proto/hero/hero_msg.proto | 52 +-- services/comp_gateroute.go | 2 +- 38 files changed, 551 insertions(+), 562 deletions(-) diff --git a/cmd/robot/friend.go b/cmd/robot/friend.go index f55119e8b..b8ebc92ac 100644 --- a/cmd/robot/friend.go +++ b/cmd/robot/friend.go @@ -11,20 +11,20 @@ var ( friendBuilders = []*builder{ { //list - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeList, req: &pb.FriendListReq{}, rsp: &pb.FriendListRsp{}, enabled: true, }, { //blacklist - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeBlacklist, req: &pb.FriendBlackListReq{}, rsp: &pb.FriendBlackListRsp{}, }, { //search - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeSearch, req: &pb.FriendSearchReq{ NickName: "", //设置测试参数 @@ -32,32 +32,32 @@ var ( rsp: &pb.FriendSearchRsp{}, }, { //apply - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeApply, req: &pb.FriendApplyReq{}, rsp: &pb.FriendApplyRsp{}, enabled: true, }, { //applylist - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeApplyList, req: &pb.FriendApplyListReq{}, rsp: &pb.FriendApplyListRsp{}, }, { //agree - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeAgree, req: &pb.FriendAgreeReq{}, rsp: &pb.FriendAgreeRsp{}, }, { //refuse - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeRefuse, req: &pb.FriendAgreeReq{}, rsp: &pb.FriendAgreeRsp{}, }, { //addblack - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeAddBlack, req: &pb.FriendBlackAddReq{ FriendId: "", @@ -65,7 +65,7 @@ var ( rsp: &pb.FriendBlackAddRsp{}, }, { //delblack - mainType: string(comm.SM_FriendModule), + mainType: string(comm.ModuleFriend), subType: friend.FriendSubTypeDelBlack, req: &pb.FriendDelBlackReq{}, rsp: &pb.FriendDelBlackRsp{}, diff --git a/cmd/robot/hero.go b/cmd/robot/hero.go index 4d21147c0..c4983a19e 100644 --- a/cmd/robot/hero.go +++ b/cmd/robot/hero.go @@ -10,13 +10,15 @@ var ( //hero heroBuilders = []*builder{ { - mainType: string(comm.SM_HeroModule), + mainType: string(comm.ModuleHero), subType: hero.HeroSubTypeList, - req: &pb.Hero_List_Req{}, - rsp: &pb.Hero_List_Rsp{}, + req: &pb.HeroListReq{}, + rsp: &pb.HeroListRsp{}, enabled: true, }, { - mainType: string(comm.SM_HeroModule), + mainType: string(comm.ModuleHero), + subType: hero.HeroSubTypeList, + req: &pb.HeroInfoReq{}, }, } ) diff --git a/cmd/robot/login.go b/cmd/robot/login.go index cb9ec6c64..11f0db9ab 100644 --- a/cmd/robot/login.go +++ b/cmd/robot/login.go @@ -37,7 +37,7 @@ func (r *Robot) AccountLogin() { log.Printf("区服:[%d] 账号:[%s] login...", r.opts.ServerId, r.opts.Account) builders := []*builder{ { - mainType: string(comm.SM_UserModule), + mainType: string(comm.ModuleUser), subType: user.UserSubTypeLogin, req: &pb.UserLoginReq{ Account: r.opts.Account, diff --git a/cmd/robot/notify.go b/cmd/robot/notify.go index 90558e6cc..89847d73a 100644 --- a/cmd/robot/notify.go +++ b/cmd/robot/notify.go @@ -8,8 +8,8 @@ import ( var notify_builders = []*builder{ { //create - mainType: comm.MainType_Notify, - subType: comm.SubType_ErrorNotify, + mainType: comm.MainTypeNotify, + subType: comm.SubTypeErrorNotify, rsp: &pb.ErrorNotify{}, enabled: true, }, diff --git a/cmd/robot/pack.go b/cmd/robot/pack.go index fc477e08a..e5d0ef588 100644 --- a/cmd/robot/pack.go +++ b/cmd/robot/pack.go @@ -9,11 +9,11 @@ import ( var pack_builders = []*builder{ { //create - mainType: string(comm.SM_PackModule), + mainType: string(comm.ModulePack), subType: "queryuserpackreq", // req: &pb.Pack_Getlist_Req{IType: 1}, - rsp: &pb.UserCreateRsp{}, - enabled: true, + rsp: &pb.UserCreateRsp{}, + enabled: true, }, } diff --git a/cmd/robot/user.go b/cmd/robot/user.go index eb3bd3165..749b220f9 100644 --- a/cmd/robot/user.go +++ b/cmd/robot/user.go @@ -10,7 +10,7 @@ import ( var user_builders = []*builder{ { //create - mainType: string(comm.SM_UserModule), + mainType: string(comm.ModuleUser), subType: user.UserSubTypeCreate, req: &pb.UserCreateReq{ //设置请求参数 NickName: "乐谷6281", diff --git a/comm/const.go b/comm/const.go index aa04c2736..09364f8ce 100644 --- a/comm/const.go +++ b/comm/const.go @@ -22,23 +22,23 @@ const ( //ERR const ( - MainType_Notify = "notify" //通知 - SubType_ErrorNotify = "errornotify" //错误通知 + MainTypeNotify = "notify" //通知 + SubTypeErrorNotify = "errornotify" //错误通知 ) //模块名定义处 const ( - SM_GateModule core.M_Modules = "gateway" //gate模块 网关服务模块 - SM_WebModule core.M_Modules = "web" //web模块 - SM_UserModule core.M_Modules = "user" //用户模块 - SM_PackModule core.M_Modules = "pack" //背包模块 - SM_MailModule core.M_Modules = "mail" //邮件模块 - SM_FriendModule core.M_Modules = "friend" //好友模块 - SM_LogModelModule core.M_Modules = "model" //日志模块 - SM_EquipmentModule core.M_Modules = "equipment" //装备模块 - SM_HeroModule core.M_Modules = "hero" //英雄模块 - SM_ForumModule core.M_Modules = "forum" //论坛模块 - SM_ItemsModule core.M_Modules = "item" + ModuleGate core.M_Modules = "gateway" //gate模块 网关服务模块 + ModuleWeb core.M_Modules = "web" //web模块 + ModuleUser core.M_Modules = "user" //用户模块 + ModulePack core.M_Modules = "pack" //背包模块 + ModuleMail core.M_Modules = "mail" //邮件模块 + ModuleFriend core.M_Modules = "friend" //好友模块 + ModuleLogModel core.M_Modules = "model" //日志模块 + ModuleEquipment core.M_Modules = "equipment" //装备模块 + ModuleHero core.M_Modules = "hero" //英雄模块 + ModuleForum core.M_Modules = "forum" //论坛模块 + ModuleItems core.M_Modules = "item" ) //RPC服务接口定义处 @@ -55,13 +55,13 @@ const ( //Rpc //事件类型定义处 const ( - Event_UserLogin core.Event_Key = "Event_UserLogin" //登录事件 - Event_CreateUser core.Event_Key = "Event_CreateUser" //创建角色事件 - Event_UserOffline core.Event_Key = "Event_UserOffline" //用户离线事件 + EventUserLogin core.Event_Key = "Event_UserLogin" //登录事件 + EventCreateUser core.Event_Key = "Event_CreateUser" //创建角色事件 + EventUserOffline core.Event_Key = "Event_UserOffline" //用户离线事件 ) const ( - DBService_Status string = "DBService_status" + DBServiceStatus string = "DBService_status" ) const ( diff --git a/comm/imodule.go b/comm/imodule.go index 61e725d61..82a11fbb4 100644 --- a/comm/imodule.go +++ b/comm/imodule.go @@ -42,11 +42,11 @@ type ( // 获取英雄 // heroId 英雄ID - GetHero(uid, heroId string) (*pb.DB_HeroData, pb.ErrorCode) + GetHero(uid, heroId string) (*pb.DBHero, pb.ErrorCode) // 佩戴装备 - UpdateEquipment(hero *pb.DB_HeroData, equip []*pb.DB_Equipment) (code pb.ErrorCode) + UpdateEquipment(hero *pb.DBHero, equip []*pb.DB_Equipment) (code pb.ErrorCode) //获取玩家英雄列表 - GetHeroList(uid string) []*pb.DB_HeroData + GetHeroList(uid string) []*pb.DBHero } //玩家 diff --git a/modules/dbservice/db_comp.go b/modules/dbservice/db_comp.go index 9da684309..2b8dfca63 100644 --- a/modules/dbservice/db_comp.go +++ b/modules/dbservice/db_comp.go @@ -30,7 +30,7 @@ func (this *DB_Comp) Start() (err error) { err = this.MCompModel.Start() model_count := this.Model_TotalCount() if model_count > 0 { //1000 - this.Redis.Set(comm.DBService_Status, true, -1) + this.Redis.Set(comm.DBServiceStatus, true, -1) this.isInit = false } else { this.isInit = true @@ -48,7 +48,7 @@ func (this *DB_Comp) run() { this.Model_UpdateDBByLog("") } if !this.isInit && this.Model_TotalCount() <= 0 { - this.Redis.Delete(comm.DBService_Status) + this.Redis.Delete(comm.DBServiceStatus) } } } diff --git a/modules/dbservice/module.go b/modules/dbservice/module.go index 14ee46e59..6e619d1f5 100644 --- a/modules/dbservice/module.go +++ b/modules/dbservice/module.go @@ -23,7 +23,7 @@ func (this *DBService) Init(service core.IService, module core.IModule, options } func (this *DBService) GetType() core.M_Modules { - return comm.SM_LogModelModule + return comm.ModuleLogModel } func (this *DBService) OnInstallComp() { diff --git a/modules/equipment/api_equip.go b/modules/equipment/api_equip.go index 633b82523..7173d36d0 100644 --- a/modules/equipment/api_equip.go +++ b/modules/equipment/api_equip.go @@ -14,7 +14,7 @@ func (this *apiComp) EquipCheck(session comm.IUserSession, req *pb.Equipment_Equ errorCode pb.ErrorCode confs []*cfg.Game_equipData equipments []*pb.DB_Equipment - hero *pb.DB_HeroData + hero *pb.DBHero ) confs = make([]*cfg.Game_equipData, len(req.EquipmentId)) equipments = make([]*pb.DB_Equipment, len(req.EquipmentId)) @@ -53,13 +53,13 @@ func (this *apiComp) Equip(session comm.IUserSession, agrs map[string]interface{ equipment *pb.DB_Equipment equipments []*pb.DB_Equipment updatequipment []*pb.DB_Equipment - hero *pb.DB_HeroData + hero *pb.DBHero ) confs = agrs["conf"].([]*cfg.Game_equipData) equipments = agrs["equipment"].([]*pb.DB_Equipment) updatequipment = make([]*pb.DB_Equipment, 0) - hero = agrs["hero"].(*pb.DB_HeroData) + hero = agrs["hero"].(*pb.DBHero) for i, v := range hero.EquipID { if v != "" { diff --git a/modules/equipment/api_upgrade.go b/modules/equipment/api_upgrade.go index 8eb8c37c0..63c2d1ff0 100644 --- a/modules/equipment/api_upgrade.go +++ b/modules/equipment/api_upgrade.go @@ -55,7 +55,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, agrs map[string]interfac conf *cfg.Game_equipData intensify *cfg.Game_equipIntensifyData equipment *pb.DB_Equipment - hero *pb.DB_HeroData + hero *pb.DBHero equipments []*pb.DB_Equipment issucc bool ) diff --git a/modules/equipment/module.go b/modules/equipment/module.go index d17fed2cb..739c5f282 100644 --- a/modules/equipment/module.go +++ b/modules/equipment/module.go @@ -31,7 +31,7 @@ type Equipment struct { //模块名 func (this *Equipment) GetType() core.M_Modules { - return comm.SM_EquipmentModule + return comm.ModuleEquipment } //模块初始化接口 注册用户创建角色事件 @@ -45,7 +45,7 @@ func (this *Equipment) Init(service core.IService, module core.IModule, options func (this *Equipment) Start() (err error) { err = this.ModuleBase.Start() var module interface{} - if module, err = this.service.GetModule(comm.SM_HeroModule); err != nil { + if module, err = this.service.GetModule(comm.ModuleHero); err != nil { log.Errorf("Equipment Start err:%v", err) return } diff --git a/modules/forum/module.go b/modules/forum/module.go index 228ef1db7..36ecd2cf7 100644 --- a/modules/forum/module.go +++ b/modules/forum/module.go @@ -25,7 +25,7 @@ type Forum struct { //模块名 func (this *Forum) GetType() core.M_Modules { - return comm.SM_EquipmentModule + return comm.ModuleEquipment } //模块初始化接口 注册用户创建角色事件 diff --git a/modules/friend/module.go b/modules/friend/module.go index 7aebe6189..2e1dbdbcc 100644 --- a/modules/friend/module.go +++ b/modules/friend/module.go @@ -19,7 +19,7 @@ type Friend struct { } func (this *Friend) GetType() core.M_Modules { - return comm.SM_FriendModule + return comm.ModuleFriend } func (this *Friend) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { diff --git a/modules/game/module.go b/modules/game/module.go index 2544ff375..1daed23df 100644 --- a/modules/game/module.go +++ b/modules/game/module.go @@ -24,7 +24,7 @@ type Game struct { //模块名 func (this *Game) GetType() core.M_Modules { - return comm.SM_EquipmentModule + return comm.ModuleEquipment } //模块初始化接口 注册用户创建角色事件 diff --git a/modules/gateway/agent.go b/modules/gateway/agent.go index cc47f0a47..4aadb1872 100644 --- a/modules/gateway/agent.go +++ b/modules/gateway/agent.go @@ -83,8 +83,8 @@ locp: } else { data, _ := anypb.New(&pb.ErrorNotify{ReqMainType: msg.MainType, ReqSubType: msg.SubType, Code: pb.ErrorCode_SecKeyInvalid}) if err = this.WriteMsg(&pb.UserMessage{ - MainType: comm.MainType_Notify, - SubType: comm.SubType_ErrorNotify, + MainType: comm.MainTypeNotify, + SubType: comm.SubTypeErrorNotify, Data: data, }); err != nil { go this.Close() @@ -234,8 +234,8 @@ func (this *Agent) messageDistribution(msg *pb.UserMessage) (err error) { if reply.Code != pb.ErrorCode_Success { data, _ := anypb.New(&pb.ErrorNotify{ReqMainType: msg.MainType, ReqSubType: msg.SubType, Code: pb.ErrorCode(reply.Code.Number())}) err = this.WriteMsg(&pb.UserMessage{ - MainType: comm.MainType_Notify, - SubType: comm.SubType_ErrorNotify, + MainType: comm.MainTypeNotify, + SubType: comm.SubTypeErrorNotify, Data: data, }) return diff --git a/modules/gateway/module.go b/modules/gateway/module.go index 28805c891..64b645319 100644 --- a/modules/gateway/module.go +++ b/modules/gateway/module.go @@ -29,7 +29,7 @@ type Gateway struct { //模块名 func (this *Gateway) GetType() core.M_Modules { - return comm.SM_GateModule + return comm.ModuleGate } //模块自定义参数 diff --git a/modules/hero/api.go b/modules/hero/api.go index 6083321cb..dc44450cb 100644 --- a/modules/hero/api.go +++ b/modules/hero/api.go @@ -21,7 +21,7 @@ const ( //消息回复的头名称 //组件初始化接口 func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { - this.MCompGate.Init(service, module, comp, options) + err = this.MCompGate.Init(service, module, comp, options) this.moduleHero = module.(*Hero) this.service = service return @@ -32,7 +32,7 @@ func (this *apiComp) Start() (err error) { var module core.IModule - if module, err = this.service.GetModule(comm.SM_UserModule); err != nil { + if module, err = this.service.GetModule(comm.ModuleUser); err != nil { return } this.user = module.(comm.IUser) diff --git a/modules/hero/api_heroStarUp.go b/modules/hero/api_heroStarUp.go index 52db12bbe..ac6582567 100644 --- a/modules/hero/api_heroStarUp.go +++ b/modules/hero/api_heroStarUp.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.Hero_StrengthenUpStar_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.HeroStrengthenUpStarReq) (result map[string]interface{}, code comm.ErrorCode) { if req.HeroObjID == "" { code.Code = pb.ErrorCode_ReqParameterError return @@ -17,11 +17,11 @@ func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.He } /// 英雄升星 -func (this *apiComp) StrengthenUpStar(session comm.IUserSession, agrs map[string]interface{}, req *pb.Hero_StrengthenUpStar_Req) (code pb.ErrorCode) { +func (this *apiComp) StrengthenUpStar(session comm.IUserSession, agrs map[string]interface{}, req *pb.HeroStrengthenUpStarReq) (code pb.ErrorCode) { defer func() { if code == pb.ErrorCode_Success { - session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.Hero_StrengthenUpStar_Resp{}) + session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.HeroStrengthenUpStarResp{}) } }() diff --git a/modules/hero/api_heroStrengthen.go b/modules/hero/api_heroStrengthen.go index 40d9afe32..e021f2c97 100644 --- a/modules/hero/api_heroStrengthen.go +++ b/modules/hero/api_heroStrengthen.go @@ -7,7 +7,7 @@ import ( ) //参数校验 -func (this *apiComp) StrengthenUplvCheck(session comm.IUserSession, req *pb.Hero_StrengthenUplv_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) StrengthenUplvCheck(session comm.IUserSession, req *pb.HeroStrengthenUplvReq) (result map[string]interface{}, code comm.ErrorCode) { if req.HeroObjID == "" { code.Code = pb.ErrorCode_ReqParameterError return @@ -101,7 +101,7 @@ func (this *apiComp) StrengthenUplvCheck(session comm.IUserSession, req *pb.Hero } /// 英雄升级 -func (this *apiComp) StrengthenUplv(session comm.IUserSession, agrs map[string]interface{}, req *pb.Hero_StrengthenUplv_Req) (code pb.ErrorCode) { +func (this *apiComp) StrengthenUplv(session comm.IUserSession, agrs map[string]interface{}, req *pb.HeroStrengthenUplvReq) (code pb.ErrorCode) { var ( curLv int32 curExp int32 // 当前英雄的经验 @@ -111,7 +111,7 @@ func (this *apiComp) StrengthenUplv(session comm.IUserSession, agrs map[string]i ) defer func() { if code == pb.ErrorCode_Success { - session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.Hero_StrengthenUplv_Resp{}) + session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.HeroStrengthenUplvResp{}) } }() costGold = agrs["costGold"].(int32) diff --git a/modules/hero/api_info.go b/modules/hero/api_info.go index 5005dc24b..23cb4e8a5 100644 --- a/modules/hero/api_info.go +++ b/modules/hero/api_info.go @@ -6,7 +6,7 @@ import ( ) //参数校验 -func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.Hero_Info_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.HeroInfoReq) (result map[string]interface{}, code comm.ErrorCode) { result = map[string]interface{}{} hero := this.moduleHero.modelHero.getOneHero(session.GetUserId(), req.HeroId) if hero == nil { @@ -16,8 +16,8 @@ func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.Hero_Info_Req) return } -func (this *apiComp) Info(session comm.IUserSession, result map[string]interface{}, req *pb.Hero_Info_Req) (code pb.ErrorCode) { - rsp := &pb.Hero_Info_Rsp{} +func (this *apiComp) Info(session comm.IUserSession, result map[string]interface{}, req *pb.HeroInfoReq) (code pb.ErrorCode) { + rsp := &pb.HeroInfoRsp{} defer func() { err := session.SendMsg(string(this.moduleHero.GetType()), HeroSubTypeInfo, rsp) if err != nil { @@ -27,7 +27,7 @@ func (this *apiComp) Info(session comm.IUserSession, result map[string]interface }() if v, ok := result["hero"]; ok { - rsp.Base = v.(*pb.DB_HeroData) + rsp.Base = v.(*pb.DBHero) } return } diff --git a/modules/hero/api_list.go b/modules/hero/api_list.go index a6cc3e0f9..67188aa93 100644 --- a/modules/hero/api_list.go +++ b/modules/hero/api_list.go @@ -6,12 +6,12 @@ import ( ) //参数校验 -func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.Hero_List_Req) (result map[string]interface{}, code comm.ErrorCode) { +func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.HeroListReq) (result map[string]interface{}, code comm.ErrorCode) { return } -func (this *apiComp) List(session comm.IUserSession, result map[string]interface{}, req *pb.Hero_List_Req) (code pb.ErrorCode) { - rsp := &pb.Hero_List_Rsp{} +func (this *apiComp) List(session comm.IUserSession, result map[string]interface{}, req *pb.HeroListReq) (code pb.ErrorCode) { + rsp := &pb.HeroListRsp{} defer func() { err := session.SendMsg(string(this.moduleHero.GetType()), HeroSubTypeList, rsp) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index f76f7d1a0..718fc6446 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -26,14 +26,14 @@ func (this *ModelHero) Init(service core.IService, module core.IModule, comp cor } //初始化英雄 -func (this *ModelHero) initHero(uid string, heroCfgId int32) *pb.DB_HeroData { +func (this *ModelHero) initHero(uid string, heroCfgId int32) *pb.DBHero { heroCfg := this.moduleHero.configure.GetHero(heroCfgId) if heroCfg == nil { log.Errorf("%v hero not found from config %v", heroCfgId) return nil } objId := primitive.NewObjectID().Hex() - newHero := &pb.DB_HeroData{ + newHero := &pb.DBHero{ Id: objId, Uid: uid, HeroID: heroCfg.Hid, @@ -77,8 +77,8 @@ func (this *ModelHero) createMultiHero(uid string, heroCfgIds ...int32) error { } //获取一个英雄 -func (this *ModelHero) getOneHero(uid, heroId string) *pb.DB_HeroData { - hero := &pb.DB_HeroData{} +func (this *ModelHero) getOneHero(uid, heroId string) *pb.DBHero { + hero := &pb.DBHero{} err := this.moduleHero.modelHero.GetListObj(uid, heroId, hero) if err != nil { return nil @@ -91,14 +91,14 @@ func (this *ModelHero) consumeOneHeroCard(uid, heroId string) error { return this.moduleHero.modelHero.DelListlds(uid, heroId) } -func (this *Hero) ModifyHero(heroId *pb.DB_HeroData) (*pb.DB_HeroData, pb.ErrorCode) { +func (this *Hero) ModifyHero(heroId *pb.DBHero) (*pb.DBHero, pb.ErrorCode) { return nil, pb.ErrorCode_HeroNoExist } //获取玩家的英雄列表 -func (this *ModelHero) getHeroList(uid string) ([]*pb.DB_HeroData, error) { - heroes := make([]*pb.DB_HeroData, 0) +func (this *ModelHero) getHeroList(uid string) ([]*pb.DBHero, error) { + heroes := make([]*pb.DBHero, 0) err := this.GetList(uid, &heroes) if err != nil { return nil, err @@ -120,7 +120,7 @@ func (this *ModelHero) setEquipment(uid, heroId string, equipIds []string) pb.Er //指定英雄升级 func (this *ModelHero) levelUp(uid string, heroId int32) error { - var heroes []*pb.DB_HeroData + var heroes []*pb.DBHero err := this.moduleHero.modelHero.GetList(uid, heroes) if err != nil { log.Errorf("levelUp err:%v", err) diff --git a/modules/hero/module.go b/modules/hero/module.go index d567963f1..7e3a09a86 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -22,7 +22,7 @@ type Hero struct { //模块名 func (this *Hero) GetType() core.M_Modules { - return comm.SM_HeroModule + return comm.ModuleHero } //模块初始化接口 注册用户创建角色事件 @@ -47,7 +47,7 @@ func (this *Hero) CreateHero(uid string, heroCfgId ...int32) error { //消耗英雄卡 func (this *Hero) ChangeCard(uId string, heroCfgId int32, count int32) (code pb.ErrorCode) { heroes := this.GetHeroList(uId) - var curList []*pb.DB_HeroData + var curList []*pb.DBHero for _, v := range heroes { if heroCfgId == v.HeroID { curList = append(curList, v) @@ -68,7 +68,7 @@ func (this *Hero) ChangeCard(uId string, heroCfgId int32, count int32) (code pb. } //获取英雄 -func (this *Hero) GetHero(uid, heroId string) (*pb.DB_HeroData, pb.ErrorCode) { +func (this *Hero) GetHero(uid, heroId string) (*pb.DBHero, pb.ErrorCode) { hero := this.modelHero.getOneHero(uid, heroId) if hero == nil { return nil, pb.ErrorCode_HeroNoExist @@ -77,7 +77,7 @@ func (this *Hero) GetHero(uid, heroId string) (*pb.DB_HeroData, pb.ErrorCode) { } //佩戴装备 -func (this *Hero) UpdateEquipment(hero *pb.DB_HeroData, equip []*pb.DB_Equipment) (code pb.ErrorCode) { +func (this *Hero) UpdateEquipment(hero *pb.DBHero, equip []*pb.DB_Equipment) (code pb.ErrorCode) { equipIds := make([]string, 4) for _, v := range equip { equipIds = append(equipIds, v.Id) @@ -86,7 +86,7 @@ func (this *Hero) UpdateEquipment(hero *pb.DB_HeroData, equip []*pb.DB_Equipment } //英雄列表 -func (this *Hero) GetHeroList(uid string) []*pb.DB_HeroData { +func (this *Hero) GetHeroList(uid string) []*pb.DBHero { list, err := this.modelHero.getHeroList(uid) if err != nil { return nil diff --git a/modules/items/module.go b/modules/items/module.go index af4122aa2..7958944d2 100644 --- a/modules/items/module.go +++ b/modules/items/module.go @@ -28,7 +28,7 @@ type Items struct { //模块名称 func (this *Items) GetType() core.M_Modules { - return comm.SM_ItemsModule + return comm.ModuleItems } //模块初始化接口 注册用户创建角色事件 diff --git a/modules/mail/api.go b/modules/mail/api.go index 3b1e7540c..ee0aa90a1 100644 --- a/modules/mail/api.go +++ b/modules/mail/api.go @@ -34,7 +34,7 @@ func (this *apiComp) Start() (err error) { err = this.MCompGate.Start() var module core.IModule - if module, err = this.service.GetModule(comm.SM_ItemsModule); err != nil { + if module, err = this.service.GetModule(comm.ModuleItems); err != nil { return } this.items = module.(comm.IItems) diff --git a/modules/mail/module.go b/modules/mail/module.go index 39bc8e571..e825ed6b3 100644 --- a/modules/mail/module.go +++ b/modules/mail/module.go @@ -30,7 +30,7 @@ type Mail struct { } func (this *Mail) GetType() core.M_Modules { - return comm.SM_MailModule + return comm.ModuleMail } func (this *Mail) OnInstallComp() { diff --git a/modules/modulebase.go b/modules/modulebase.go index c05563aaf..15eb8d30a 100644 --- a/modules/modulebase.go +++ b/modules/modulebase.go @@ -89,15 +89,15 @@ func (this *ModuleBase) CheckConsumeRes(uid string, res []*cfg.Game_atn) (code p hero comm.IHero //英雄模块 // equipment comm.IEquipment //装备模块 ) - if module, err = this.service.GetModule(comm.SM_UserModule); err == nil { + if module, err = this.service.GetModule(comm.ModuleUser); err == nil { return } user = module.(comm.IUser) - if module, err = this.service.GetModule(comm.SM_ItemsModule); err == nil { + if module, err = this.service.GetModule(comm.ModuleItems); err == nil { return } items = module.(comm.IItems) - if module, err = this.service.GetModule(comm.SM_HeroModule); err == nil { + if module, err = this.service.GetModule(comm.ModuleHero); err == nil { return } hero = module.(comm.IHero) diff --git a/modules/user/api.go b/modules/user/api.go index 73622a297..324a00d36 100644 --- a/modules/user/api.go +++ b/modules/user/api.go @@ -33,7 +33,7 @@ func (this *apiComp) Start() (err error) { var module core.IModule //get module hero - if module, err = this.service.GetModule(comm.SM_HeroModule); err != nil { + if module, err = this.service.GetModule(comm.ModuleHero); err != nil { return } this.hero = module.(comm.IHero) diff --git a/modules/user/api_login.go b/modules/user/api_login.go index 10359020c..04f04a81e 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -33,7 +33,7 @@ func (this *apiComp) Login(session comm.IUserSession, result map[string]interfac code = pb.ErrorCode_SystemError return } - event.TriggerEvent(comm.Event_UserLogin, user.Uid) + event.TriggerEvent(comm.EventUserLogin, user.Uid) } }() diff --git a/modules/user/module.go b/modules/user/module.go index 80e40a6ec..1933d7cb5 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -21,7 +21,7 @@ type User struct { } func (this *User) GetType() core.M_Modules { - return comm.SM_UserModule + return comm.ModuleUser } func (this *User) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { @@ -38,7 +38,7 @@ func (this *User) OnInstallComp() { } //获取英雄列表 -func (this *User) GetHeroList(uid string) []*pb.DB_HeroData { +func (this *User) GetHeroList(uid string) []*pb.DBHero { return nil } diff --git a/modules/web/module.go b/modules/web/module.go index 9bb697e00..6d7788448 100644 --- a/modules/web/module.go +++ b/modules/web/module.go @@ -27,7 +27,7 @@ type Web struct { //模块名 func (this *Web) GetType() core.M_Modules { - return comm.SM_WebModule + return comm.ModuleWeb } //模块自定义参数 diff --git a/pb/hero_db.pb.go b/pb/hero_db.pb.go index 72b05d480..767cc2f59 100644 --- a/pb/hero_db.pb.go +++ b/pb/hero_db.pb.go @@ -75,7 +75,7 @@ func (x *SkillData) GetSkillLv() int32 { return 0 } -type DB_HeroData struct { +type DBHero struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -103,8 +103,8 @@ type DB_HeroData struct { Count int32 `protobuf:"varint,21,opt,name=count,proto3" json:"count"` // 数量 } -func (x *DB_HeroData) Reset() { - *x = DB_HeroData{} +func (x *DBHero) Reset() { + *x = DBHero{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_db_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -112,13 +112,13 @@ func (x *DB_HeroData) Reset() { } } -func (x *DB_HeroData) String() string { +func (x *DBHero) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DB_HeroData) ProtoMessage() {} +func (*DBHero) ProtoMessage() {} -func (x *DB_HeroData) ProtoReflect() protoreflect.Message { +func (x *DBHero) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_db_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -130,152 +130,152 @@ func (x *DB_HeroData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DB_HeroData.ProtoReflect.Descriptor instead. -func (*DB_HeroData) Descriptor() ([]byte, []int) { +// Deprecated: Use DBHero.ProtoReflect.Descriptor instead. +func (*DBHero) Descriptor() ([]byte, []int) { return file_hero_hero_db_proto_rawDescGZIP(), []int{1} } -func (x *DB_HeroData) GetId() string { +func (x *DBHero) GetId() string { if x != nil { return x.Id } return "" } -func (x *DB_HeroData) GetUid() string { +func (x *DBHero) GetUid() string { if x != nil { return x.Uid } return "" } -func (x *DB_HeroData) GetHeroID() int32 { +func (x *DBHero) GetHeroID() int32 { if x != nil { return x.HeroID } return 0 } -func (x *DB_HeroData) GetStar() int32 { +func (x *DBHero) GetStar() int32 { if x != nil { return x.Star } return 0 } -func (x *DB_HeroData) GetLv() int32 { +func (x *DBHero) GetLv() int32 { if x != nil { return x.Lv } return 0 } -func (x *DB_HeroData) GetExp() int32 { +func (x *DBHero) GetExp() int32 { if x != nil { return x.Exp } return 0 } -func (x *DB_HeroData) GetJuexingLv() int32 { +func (x *DBHero) GetJuexingLv() int32 { if x != nil { return x.JuexingLv } return 0 } -func (x *DB_HeroData) GetCaptainSkill() int32 { +func (x *DBHero) GetCaptainSkill() int32 { if x != nil { return x.CaptainSkill } return 0 } -func (x *DB_HeroData) GetNormalSkill() []*SkillData { +func (x *DBHero) GetNormalSkill() []*SkillData { if x != nil { return x.NormalSkill } return nil } -func (x *DB_HeroData) GetProperty() map[int32]int32 { +func (x *DBHero) GetProperty() map[int32]int32 { if x != nil { return x.Property } return nil } -func (x *DB_HeroData) GetAddProperty() map[int32]int32 { +func (x *DBHero) GetAddProperty() map[int32]int32 { if x != nil { return x.AddProperty } return nil } -func (x *DB_HeroData) GetFormation() int32 { +func (x *DBHero) GetFormation() int32 { if x != nil { return x.Formation } return 0 } -func (x *DB_HeroData) GetCardType() int32 { +func (x *DBHero) GetCardType() int32 { if x != nil { return x.CardType } return 0 } -func (x *DB_HeroData) GetCurSkin() int32 { +func (x *DBHero) GetCurSkin() int32 { if x != nil { return x.CurSkin } return 0 } -func (x *DB_HeroData) GetSkins() []int32 { +func (x *DBHero) GetSkins() []int32 { if x != nil { return x.Skins } return nil } -func (x *DB_HeroData) GetBlock() bool { +func (x *DBHero) GetBlock() bool { if x != nil { return x.Block } return false } -func (x *DB_HeroData) GetEquipID() []string { +func (x *DBHero) GetEquipID() []string { if x != nil { return x.EquipID } return nil } -func (x *DB_HeroData) GetResonateNum() int32 { +func (x *DBHero) GetResonateNum() int32 { if x != nil { return x.ResonateNum } return 0 } -func (x *DB_HeroData) GetDistributionResonate() int32 { +func (x *DBHero) GetDistributionResonate() int32 { if x != nil { return x.DistributionResonate } return 0 } -func (x *DB_HeroData) GetEnergy() map[int32]int32 { +func (x *DBHero) GetEnergy() map[int32]int32 { if x != nil { return x.Energy } return nil } -func (x *DB_HeroData) GetCount() int32 { +func (x *DBHero) GetCount() int32 { if x != nil { return x.Count } @@ -290,62 +290,61 @@ var file_hero_hero_db_proto_rawDesc = []byte{ 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0xe2, 0x06, 0x0a, 0x0b, 0x44, 0x42, - 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, - 0x65, 0x72, 0x6f, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x72, - 0x6f, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x6a, 0x75, 0x65, - 0x78, 0x69, 0x6e, 0x67, 0x4c, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6a, 0x75, - 0x65, 0x78, 0x69, 0x6e, 0x67, 0x4c, 0x76, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, - 0x69, 0x6e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, - 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x2f, 0x0a, 0x0b, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x0b, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x39, 0x0a, 0x08, - 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x42, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, - 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x64, - 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, - 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x72, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x61, 0x72, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x53, 0x6b, 0x69, 0x6e, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x53, 0x6b, 0x69, 0x6e, 0x12, - 0x14, 0x0a, 0x05, 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, - 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x10, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x65, 0x71, - 0x75, 0x69, 0x70, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, - 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, - 0x6e, 0x61, 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x69, 0x73, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x18, - 0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x65, - 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, - 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x65, - 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 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, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 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, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 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, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0xce, 0x06, 0x0a, 0x06, 0x44, 0x42, + 0x48, 0x65, 0x72, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, + 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, + 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x65, 0x78, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x6a, 0x75, 0x65, 0x78, 0x69, 0x6e, 0x67, 0x4c, + 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6a, 0x75, 0x65, 0x78, 0x69, 0x6e, 0x67, + 0x4c, 0x76, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x53, 0x6b, 0x69, + 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, + 0x6e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x2f, 0x0a, 0x0b, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, + 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, + 0x2e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x6e, 0x6f, 0x72, 0x6d, + 0x61, 0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, + 0x42, 0x48, 0x65, 0x72, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x3d, 0x0a, + 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x2e, 0x41, + 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, + 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x61, + 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x53, 0x6b, 0x69, + 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x53, 0x6b, 0x69, 0x6e, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x05, 0x52, + 0x05, 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, + 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x65, + 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6e, 0x61, + 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x65, 0x73, + 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, + 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x06, + 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, + 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x2e, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 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, 0x1a, + 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 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, 0x1a, + 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -362,17 +361,17 @@ func file_hero_hero_db_proto_rawDescGZIP() []byte { var file_hero_hero_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_hero_hero_db_proto_goTypes = []interface{}{ - (*SkillData)(nil), // 0: pb.SkillData - (*DB_HeroData)(nil), // 1: pb.DB_HeroData - nil, // 2: pb.DB_HeroData.PropertyEntry - nil, // 3: pb.DB_HeroData.AddPropertyEntry - nil, // 4: pb.DB_HeroData.EnergyEntry + (*SkillData)(nil), // 0: pb.SkillData + (*DBHero)(nil), // 1: pb.DBHero + nil, // 2: pb.DBHero.PropertyEntry + nil, // 3: pb.DBHero.AddPropertyEntry + nil, // 4: pb.DBHero.EnergyEntry } var file_hero_hero_db_proto_depIdxs = []int32{ - 0, // 0: pb.DB_HeroData.normalSkill:type_name -> pb.SkillData - 2, // 1: pb.DB_HeroData.property:type_name -> pb.DB_HeroData.PropertyEntry - 3, // 2: pb.DB_HeroData.addProperty:type_name -> pb.DB_HeroData.AddPropertyEntry - 4, // 3: pb.DB_HeroData.energy:type_name -> pb.DB_HeroData.EnergyEntry + 0, // 0: pb.DBHero.normalSkill:type_name -> pb.SkillData + 2, // 1: pb.DBHero.property:type_name -> pb.DBHero.PropertyEntry + 3, // 2: pb.DBHero.addProperty:type_name -> pb.DBHero.AddPropertyEntry + 4, // 3: pb.DBHero.energy:type_name -> pb.DBHero.EnergyEntry 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -399,7 +398,7 @@ func file_hero_hero_db_proto_init() { } } file_hero_hero_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DB_HeroData); i { + switch v := v.(*DBHero); i { case 0: return &v.state case 1: diff --git a/pb/hero_msg.pb.go b/pb/hero_msg.pb.go index 7a52ec9e1..0d136263e 100644 --- a/pb/hero_msg.pb.go +++ b/pb/hero_msg.pb.go @@ -21,7 +21,7 @@ const ( ) //英雄基础信息 -type Hero_Info_Req struct { +type HeroInfoReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -29,8 +29,8 @@ type Hero_Info_Req struct { HeroId string `protobuf:"bytes,1,opt,name=heroId,proto3" json:"heroId"` //英雄唯一ID } -func (x *Hero_Info_Req) Reset() { - *x = Hero_Info_Req{} +func (x *HeroInfoReq) Reset() { + *x = HeroInfoReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -38,13 +38,13 @@ func (x *Hero_Info_Req) Reset() { } } -func (x *Hero_Info_Req) String() string { +func (x *HeroInfoReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Info_Req) ProtoMessage() {} +func (*HeroInfoReq) ProtoMessage() {} -func (x *Hero_Info_Req) ProtoReflect() protoreflect.Message { +func (x *HeroInfoReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -56,28 +56,28 @@ func (x *Hero_Info_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Info_Req.ProtoReflect.Descriptor instead. -func (*Hero_Info_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroInfoReq.ProtoReflect.Descriptor instead. +func (*HeroInfoReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{0} } -func (x *Hero_Info_Req) GetHeroId() string { +func (x *HeroInfoReq) GetHeroId() string { if x != nil { return x.HeroId } return "" } -type Hero_Info_Rsp struct { +type HeroInfoRsp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Base *DB_HeroData `protobuf:"bytes,1,opt,name=base,proto3" json:"base"` + Base *DBHero `protobuf:"bytes,1,opt,name=base,proto3" json:"base"` } -func (x *Hero_Info_Rsp) Reset() { - *x = Hero_Info_Rsp{} +func (x *HeroInfoRsp) Reset() { + *x = HeroInfoRsp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -85,13 +85,13 @@ func (x *Hero_Info_Rsp) Reset() { } } -func (x *Hero_Info_Rsp) String() string { +func (x *HeroInfoRsp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Info_Rsp) ProtoMessage() {} +func (*HeroInfoRsp) ProtoMessage() {} -func (x *Hero_Info_Rsp) ProtoReflect() protoreflect.Message { +func (x *HeroInfoRsp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -103,12 +103,12 @@ func (x *Hero_Info_Rsp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Info_Rsp.ProtoReflect.Descriptor instead. -func (*Hero_Info_Rsp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroInfoRsp.ProtoReflect.Descriptor instead. +func (*HeroInfoRsp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{1} } -func (x *Hero_Info_Rsp) GetBase() *DB_HeroData { +func (x *HeroInfoRsp) GetBase() *DBHero { if x != nil { return x.Base } @@ -116,14 +116,14 @@ func (x *Hero_Info_Rsp) GetBase() *DB_HeroData { } //英雄列表 -type Hero_List_Req struct { +type HeroListReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *Hero_List_Req) Reset() { - *x = Hero_List_Req{} +func (x *HeroListReq) Reset() { + *x = HeroListReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -131,13 +131,13 @@ func (x *Hero_List_Req) Reset() { } } -func (x *Hero_List_Req) String() string { +func (x *HeroListReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_List_Req) ProtoMessage() {} +func (*HeroListReq) ProtoMessage() {} -func (x *Hero_List_Req) ProtoReflect() protoreflect.Message { +func (x *HeroListReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -149,21 +149,21 @@ func (x *Hero_List_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_List_Req.ProtoReflect.Descriptor instead. -func (*Hero_List_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroListReq.ProtoReflect.Descriptor instead. +func (*HeroListReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{2} } -type Hero_List_Rsp struct { +type HeroListRsp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - List []*DB_HeroData `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` + List []*DBHero `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` } -func (x *Hero_List_Rsp) Reset() { - *x = Hero_List_Rsp{} +func (x *HeroListRsp) Reset() { + *x = HeroListRsp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -171,13 +171,13 @@ func (x *Hero_List_Rsp) Reset() { } } -func (x *Hero_List_Rsp) String() string { +func (x *HeroListRsp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_List_Rsp) ProtoMessage() {} +func (*HeroListRsp) ProtoMessage() {} -func (x *Hero_List_Rsp) ProtoReflect() protoreflect.Message { +func (x *HeroListRsp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -189,12 +189,12 @@ func (x *Hero_List_Rsp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_List_Rsp.ProtoReflect.Descriptor instead. -func (*Hero_List_Rsp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroListRsp.ProtoReflect.Descriptor instead. +func (*HeroListRsp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{3} } -func (x *Hero_List_Rsp) GetList() []*DB_HeroData { +func (x *HeroListRsp) GetList() []*DBHero { if x != nil { return x.List } @@ -257,7 +257,7 @@ func (x *ItemData) GetAmount() int32 { } // 卡牌升级 -type Hero_StrengthenUplv_Req struct { +type HeroStrengthenUplvReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -267,8 +267,8 @@ type Hero_StrengthenUplv_Req struct { Amount int32 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount"` // 消耗经验卡数量} } -func (x *Hero_StrengthenUplv_Req) Reset() { - *x = Hero_StrengthenUplv_Req{} +func (x *HeroStrengthenUplvReq) Reset() { + *x = HeroStrengthenUplvReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -276,13 +276,13 @@ func (x *Hero_StrengthenUplv_Req) Reset() { } } -func (x *Hero_StrengthenUplv_Req) String() string { +func (x *HeroStrengthenUplvReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUplv_Req) ProtoMessage() {} +func (*HeroStrengthenUplvReq) ProtoMessage() {} -func (x *Hero_StrengthenUplv_Req) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUplvReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -294,26 +294,26 @@ func (x *Hero_StrengthenUplv_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUplv_Req.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUplv_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUplvReq.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUplvReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{5} } -func (x *Hero_StrengthenUplv_Req) GetHeroObjID() string { +func (x *HeroStrengthenUplvReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_StrengthenUplv_Req) GetExpCardID() string { +func (x *HeroStrengthenUplvReq) GetExpCardID() string { if x != nil { return x.ExpCardID } return "" } -func (x *Hero_StrengthenUplv_Req) GetAmount() int32 { +func (x *HeroStrengthenUplvReq) GetAmount() int32 { if x != nil { return x.Amount } @@ -321,16 +321,16 @@ func (x *Hero_StrengthenUplv_Req) GetAmount() int32 { } // 卡牌升级返回 -type Hero_StrengthenUplv_Resp struct { +type HeroStrengthenUplvResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 } -func (x *Hero_StrengthenUplv_Resp) Reset() { - *x = Hero_StrengthenUplv_Resp{} +func (x *HeroStrengthenUplvResp) Reset() { + *x = HeroStrengthenUplvResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -338,13 +338,13 @@ func (x *Hero_StrengthenUplv_Resp) Reset() { } } -func (x *Hero_StrengthenUplv_Resp) String() string { +func (x *HeroStrengthenUplvResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUplv_Resp) ProtoMessage() {} +func (*HeroStrengthenUplvResp) ProtoMessage() {} -func (x *Hero_StrengthenUplv_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUplvResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -356,12 +356,12 @@ func (x *Hero_StrengthenUplv_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUplv_Resp.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUplv_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUplvResp.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUplvResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{6} } -func (x *Hero_StrengthenUplv_Resp) GetHero() *DB_HeroData { +func (x *HeroStrengthenUplvResp) GetHero() *DBHero { if x != nil { return x.Hero } @@ -424,7 +424,7 @@ func (x *CostCardData) GetAmount() int32 { } // 卡牌升星 -type Hero_StrengthenUpStar_Req struct { +type HeroStrengthenUpStarReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -434,8 +434,8 @@ type Hero_StrengthenUpStar_Req struct { HeroRace []*CostCardData `protobuf:"bytes,3,rep,name=heroRace,proto3" json:"heroRace"` // 消耗种族卡牌对象ID } -func (x *Hero_StrengthenUpStar_Req) Reset() { - *x = Hero_StrengthenUpStar_Req{} +func (x *HeroStrengthenUpStarReq) Reset() { + *x = HeroStrengthenUpStarReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -443,13 +443,13 @@ func (x *Hero_StrengthenUpStar_Req) Reset() { } } -func (x *Hero_StrengthenUpStar_Req) String() string { +func (x *HeroStrengthenUpStarReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUpStar_Req) ProtoMessage() {} +func (*HeroStrengthenUpStarReq) ProtoMessage() {} -func (x *Hero_StrengthenUpStar_Req) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUpStarReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -461,26 +461,26 @@ func (x *Hero_StrengthenUpStar_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUpStar_Req.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUpStar_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUpStarReq.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUpStarReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{8} } -func (x *Hero_StrengthenUpStar_Req) GetHeroObjID() string { +func (x *HeroStrengthenUpStarReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_StrengthenUpStar_Req) GetHero() []*CostCardData { +func (x *HeroStrengthenUpStarReq) GetHero() []*CostCardData { if x != nil { return x.Hero } return nil } -func (x *Hero_StrengthenUpStar_Req) GetHeroRace() []*CostCardData { +func (x *HeroStrengthenUpStarReq) GetHeroRace() []*CostCardData { if x != nil { return x.HeroRace } @@ -488,16 +488,16 @@ func (x *Hero_StrengthenUpStar_Req) GetHeroRace() []*CostCardData { } // 卡牌升星返回 -type Hero_StrengthenUpStar_Resp struct { +type HeroStrengthenUpStarResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 } -func (x *Hero_StrengthenUpStar_Resp) Reset() { - *x = Hero_StrengthenUpStar_Resp{} +func (x *HeroStrengthenUpStarResp) Reset() { + *x = HeroStrengthenUpStarResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -505,13 +505,13 @@ func (x *Hero_StrengthenUpStar_Resp) Reset() { } } -func (x *Hero_StrengthenUpStar_Resp) String() string { +func (x *HeroStrengthenUpStarResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUpStar_Resp) ProtoMessage() {} +func (*HeroStrengthenUpStarResp) ProtoMessage() {} -func (x *Hero_StrengthenUpStar_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUpStarResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -523,12 +523,12 @@ func (x *Hero_StrengthenUpStar_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUpStar_Resp.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUpStar_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUpStarResp.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUpStarResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{9} } -func (x *Hero_StrengthenUpStar_Resp) GetHero() *DB_HeroData { +func (x *HeroStrengthenUpStarResp) GetHero() *DBHero { if x != nil { return x.Hero } @@ -536,7 +536,7 @@ func (x *Hero_StrengthenUpStar_Resp) GetHero() *DB_HeroData { } // 卡牌技能升级 -type Hero_StrengthenUpSkill_Req struct { +type HeroStrengthenUpSkillReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -546,8 +546,8 @@ type Hero_StrengthenUpSkill_Req struct { Items *CostCardData `protobuf:"bytes,3,opt,name=items,proto3" json:"items"` // 消耗技能升级卡 } -func (x *Hero_StrengthenUpSkill_Req) Reset() { - *x = Hero_StrengthenUpSkill_Req{} +func (x *HeroStrengthenUpSkillReq) Reset() { + *x = HeroStrengthenUpSkillReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -555,13 +555,13 @@ func (x *Hero_StrengthenUpSkill_Req) Reset() { } } -func (x *Hero_StrengthenUpSkill_Req) String() string { +func (x *HeroStrengthenUpSkillReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUpSkill_Req) ProtoMessage() {} +func (*HeroStrengthenUpSkillReq) ProtoMessage() {} -func (x *Hero_StrengthenUpSkill_Req) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUpSkillReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -573,26 +573,26 @@ func (x *Hero_StrengthenUpSkill_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUpSkill_Req.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUpSkill_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUpSkillReq.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUpSkillReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{10} } -func (x *Hero_StrengthenUpSkill_Req) GetHeroObjID() string { +func (x *HeroStrengthenUpSkillReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_StrengthenUpSkill_Req) GetSkillIndex() int32 { +func (x *HeroStrengthenUpSkillReq) GetSkillIndex() int32 { if x != nil { return x.SkillIndex } return 0 } -func (x *Hero_StrengthenUpSkill_Req) GetItems() *CostCardData { +func (x *HeroStrengthenUpSkillReq) GetItems() *CostCardData { if x != nil { return x.Items } @@ -600,16 +600,16 @@ func (x *Hero_StrengthenUpSkill_Req) GetItems() *CostCardData { } // 卡牌技能升级返回 -type Hero_StrengthenUpSkill_Resp struct { +type HeroStrengthenUpSkillResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 } -func (x *Hero_StrengthenUpSkill_Resp) Reset() { - *x = Hero_StrengthenUpSkill_Resp{} +func (x *HeroStrengthenUpSkillResp) Reset() { + *x = HeroStrengthenUpSkillResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -617,13 +617,13 @@ func (x *Hero_StrengthenUpSkill_Resp) Reset() { } } -func (x *Hero_StrengthenUpSkill_Resp) String() string { +func (x *HeroStrengthenUpSkillResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_StrengthenUpSkill_Resp) ProtoMessage() {} +func (*HeroStrengthenUpSkillResp) ProtoMessage() {} -func (x *Hero_StrengthenUpSkill_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroStrengthenUpSkillResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -635,12 +635,12 @@ func (x *Hero_StrengthenUpSkill_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_StrengthenUpSkill_Resp.ProtoReflect.Descriptor instead. -func (*Hero_StrengthenUpSkill_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroStrengthenUpSkillResp.ProtoReflect.Descriptor instead. +func (*HeroStrengthenUpSkillResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{11} } -func (x *Hero_StrengthenUpSkill_Resp) GetHero() *DB_HeroData { +func (x *HeroStrengthenUpSkillResp) GetHero() *DBHero { if x != nil { return x.Hero } @@ -648,7 +648,7 @@ func (x *Hero_StrengthenUpSkill_Resp) GetHero() *DB_HeroData { } // 共鸣英雄 -type Hero_Gongming_Req struct { +type HeroGongmingReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -657,8 +657,8 @@ type Hero_Gongming_Req struct { CostObjID string `protobuf:"bytes,2,opt,name=costObjID,proto3" json:"costObjID"` // 消耗对象 } -func (x *Hero_Gongming_Req) Reset() { - *x = Hero_Gongming_Req{} +func (x *HeroGongmingReq) Reset() { + *x = HeroGongmingReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -666,13 +666,13 @@ func (x *Hero_Gongming_Req) Reset() { } } -func (x *Hero_Gongming_Req) String() string { +func (x *HeroGongmingReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Gongming_Req) ProtoMessage() {} +func (*HeroGongmingReq) ProtoMessage() {} -func (x *Hero_Gongming_Req) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -684,37 +684,37 @@ func (x *Hero_Gongming_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Gongming_Req.ProtoReflect.Descriptor instead. -func (*Hero_Gongming_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingReq.ProtoReflect.Descriptor instead. +func (*HeroGongmingReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{12} } -func (x *Hero_Gongming_Req) GetHeroObjID() string { +func (x *HeroGongmingReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_Gongming_Req) GetCostObjID() string { +func (x *HeroGongmingReq) GetCostObjID() string { if x != nil { return x.CostObjID } return "" } -type Hero_Gongming_Resp struct { +type HeroGongmingResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 - Energy int32 `protobuf:"varint,2,opt,name=energy,proto3" json:"energy"` // 共鸣成功 获得的能量点数 - UpStarCard *DB_HeroData `protobuf:"bytes,3,opt,name=upStarCard,proto3" json:"upStarCard"` //共鸣成功 获得的升星卡 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Energy int32 `protobuf:"varint,2,opt,name=energy,proto3" json:"energy"` // 共鸣成功 获得的能量点数 + UpStarCard *DBHero `protobuf:"bytes,3,opt,name=upStarCard,proto3" json:"upStarCard"` //共鸣成功 获得的升星卡 } -func (x *Hero_Gongming_Resp) Reset() { - *x = Hero_Gongming_Resp{} +func (x *HeroGongmingResp) Reset() { + *x = HeroGongmingResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -722,13 +722,13 @@ func (x *Hero_Gongming_Resp) Reset() { } } -func (x *Hero_Gongming_Resp) String() string { +func (x *HeroGongmingResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Gongming_Resp) ProtoMessage() {} +func (*HeroGongmingResp) ProtoMessage() {} -func (x *Hero_Gongming_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -740,26 +740,26 @@ func (x *Hero_Gongming_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Gongming_Resp.ProtoReflect.Descriptor instead. -func (*Hero_Gongming_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingResp.ProtoReflect.Descriptor instead. +func (*HeroGongmingResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{13} } -func (x *Hero_Gongming_Resp) GetHero() *DB_HeroData { +func (x *HeroGongmingResp) GetHero() *DBHero { if x != nil { return x.Hero } return nil } -func (x *Hero_Gongming_Resp) GetEnergy() int32 { +func (x *HeroGongmingResp) GetEnergy() int32 { if x != nil { return x.Energy } return 0 } -func (x *Hero_Gongming_Resp) GetUpStarCard() *DB_HeroData { +func (x *HeroGongmingResp) GetUpStarCard() *DBHero { if x != nil { return x.UpStarCard } @@ -767,7 +767,7 @@ func (x *Hero_Gongming_Resp) GetUpStarCard() *DB_HeroData { } // 重置共鸣属性 -type Hero_GongmingReset_Req struct { +type HeroGongmingResetReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -775,8 +775,8 @@ type Hero_GongmingReset_Req struct { HeroObjID string `protobuf:"bytes,1,opt,name=heroObjID,proto3" json:"heroObjID"` // 英雄对象ID } -func (x *Hero_GongmingReset_Req) Reset() { - *x = Hero_GongmingReset_Req{} +func (x *HeroGongmingResetReq) Reset() { + *x = HeroGongmingResetReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -784,13 +784,13 @@ func (x *Hero_GongmingReset_Req) Reset() { } } -func (x *Hero_GongmingReset_Req) String() string { +func (x *HeroGongmingResetReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_GongmingReset_Req) ProtoMessage() {} +func (*HeroGongmingResetReq) ProtoMessage() {} -func (x *Hero_GongmingReset_Req) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingResetReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -802,29 +802,29 @@ func (x *Hero_GongmingReset_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_GongmingReset_Req.ProtoReflect.Descriptor instead. -func (*Hero_GongmingReset_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingResetReq.ProtoReflect.Descriptor instead. +func (*HeroGongmingResetReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{14} } -func (x *Hero_GongmingReset_Req) GetHeroObjID() string { +func (x *HeroGongmingResetReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -type Hero_GongmingReset_Resp struct { +type HeroGongmingResetResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 - Energy int32 `protobuf:"varint,2,opt,name=energy,proto3" json:"energy"` // 能量点数 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Energy int32 `protobuf:"varint,2,opt,name=energy,proto3" json:"energy"` // 能量点数 } -func (x *Hero_GongmingReset_Resp) Reset() { - *x = Hero_GongmingReset_Resp{} +func (x *HeroGongmingResetResp) Reset() { + *x = HeroGongmingResetResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -832,13 +832,13 @@ func (x *Hero_GongmingReset_Resp) Reset() { } } -func (x *Hero_GongmingReset_Resp) String() string { +func (x *HeroGongmingResetResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_GongmingReset_Resp) ProtoMessage() {} +func (*HeroGongmingResetResp) ProtoMessage() {} -func (x *Hero_GongmingReset_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingResetResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -850,19 +850,19 @@ func (x *Hero_GongmingReset_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_GongmingReset_Resp.ProtoReflect.Descriptor instead. -func (*Hero_GongmingReset_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingResetResp.ProtoReflect.Descriptor instead. +func (*HeroGongmingResetResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{15} } -func (x *Hero_GongmingReset_Resp) GetHero() *DB_HeroData { +func (x *HeroGongmingResetResp) GetHero() *DBHero { if x != nil { return x.Hero } return nil } -func (x *Hero_GongmingReset_Resp) GetEnergy() int32 { +func (x *HeroGongmingResetResp) GetEnergy() int32 { if x != nil { return x.Energy } @@ -870,7 +870,7 @@ func (x *Hero_GongmingReset_Resp) GetEnergy() int32 { } // 使用能量点数 -type Hero_GongmingUseEnergy_Req struct { +type HeroGongmingUseEnergyReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -880,8 +880,8 @@ type Hero_GongmingUseEnergy_Req struct { UseType int32 `protobuf:"varint,3,opt,name=useType,proto3" json:"useType"` // 使用的类型 (攻击、血量、防御) } -func (x *Hero_GongmingUseEnergy_Req) Reset() { - *x = Hero_GongmingUseEnergy_Req{} +func (x *HeroGongmingUseEnergyReq) Reset() { + *x = HeroGongmingUseEnergyReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -889,13 +889,13 @@ func (x *Hero_GongmingUseEnergy_Req) Reset() { } } -func (x *Hero_GongmingUseEnergy_Req) String() string { +func (x *HeroGongmingUseEnergyReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_GongmingUseEnergy_Req) ProtoMessage() {} +func (*HeroGongmingUseEnergyReq) ProtoMessage() {} -func (x *Hero_GongmingUseEnergy_Req) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingUseEnergyReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -907,42 +907,42 @@ func (x *Hero_GongmingUseEnergy_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_GongmingUseEnergy_Req.ProtoReflect.Descriptor instead. -func (*Hero_GongmingUseEnergy_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingUseEnergyReq.ProtoReflect.Descriptor instead. +func (*HeroGongmingUseEnergyReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{16} } -func (x *Hero_GongmingUseEnergy_Req) GetHeroObjID() string { +func (x *HeroGongmingUseEnergyReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_GongmingUseEnergy_Req) GetUseEnergy() int32 { +func (x *HeroGongmingUseEnergyReq) GetUseEnergy() int32 { if x != nil { return x.UseEnergy } return 0 } -func (x *Hero_GongmingUseEnergy_Req) GetUseType() int32 { +func (x *HeroGongmingUseEnergyReq) GetUseType() int32 { if x != nil { return x.UseType } return 0 } -type Hero_GongmingUseEnergy_Resp struct { +type HeroGongmingUseEnergyResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 } -func (x *Hero_GongmingUseEnergy_Resp) Reset() { - *x = Hero_GongmingUseEnergy_Resp{} +func (x *HeroGongmingUseEnergyResp) Reset() { + *x = HeroGongmingUseEnergyResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -950,13 +950,13 @@ func (x *Hero_GongmingUseEnergy_Resp) Reset() { } } -func (x *Hero_GongmingUseEnergy_Resp) String() string { +func (x *HeroGongmingUseEnergyResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_GongmingUseEnergy_Resp) ProtoMessage() {} +func (*HeroGongmingUseEnergyResp) ProtoMessage() {} -func (x *Hero_GongmingUseEnergy_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroGongmingUseEnergyResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -968,12 +968,12 @@ func (x *Hero_GongmingUseEnergy_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_GongmingUseEnergy_Resp.ProtoReflect.Descriptor instead. -func (*Hero_GongmingUseEnergy_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroGongmingUseEnergyResp.ProtoReflect.Descriptor instead. +func (*HeroGongmingUseEnergyResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{17} } -func (x *Hero_GongmingUseEnergy_Resp) GetHero() *DB_HeroData { +func (x *HeroGongmingUseEnergyResp) GetHero() *DBHero { if x != nil { return x.Hero } @@ -981,7 +981,7 @@ func (x *Hero_GongmingUseEnergy_Resp) GetHero() *DB_HeroData { } // 觉醒 -type Hero_Juexing_Req struct { +type HeroJuexingReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -990,8 +990,8 @@ type Hero_Juexing_Req struct { CostItmes *ItemData `protobuf:"bytes,2,opt,name=costItmes,proto3" json:"costItmes"` // 觉醒消耗待定 } -func (x *Hero_Juexing_Req) Reset() { - *x = Hero_Juexing_Req{} +func (x *HeroJuexingReq) Reset() { + *x = HeroJuexingReq{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -999,13 +999,13 @@ func (x *Hero_Juexing_Req) Reset() { } } -func (x *Hero_Juexing_Req) String() string { +func (x *HeroJuexingReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Juexing_Req) ProtoMessage() {} +func (*HeroJuexingReq) ProtoMessage() {} -func (x *Hero_Juexing_Req) ProtoReflect() protoreflect.Message { +func (x *HeroJuexingReq) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1017,19 +1017,19 @@ func (x *Hero_Juexing_Req) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Juexing_Req.ProtoReflect.Descriptor instead. -func (*Hero_Juexing_Req) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroJuexingReq.ProtoReflect.Descriptor instead. +func (*HeroJuexingReq) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{18} } -func (x *Hero_Juexing_Req) GetHeroObjID() string { +func (x *HeroJuexingReq) GetHeroObjID() string { if x != nil { return x.HeroObjID } return "" } -func (x *Hero_Juexing_Req) GetCostItmes() *ItemData { +func (x *HeroJuexingReq) GetCostItmes() *ItemData { if x != nil { return x.CostItmes } @@ -1037,16 +1037,16 @@ func (x *Hero_Juexing_Req) GetCostItmes() *ItemData { } // 觉醒返回 -type Hero_Juexing_Resp struct { +type HeroJuexingResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Hero *DB_HeroData `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 + Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象 } -func (x *Hero_Juexing_Resp) Reset() { - *x = Hero_Juexing_Resp{} +func (x *HeroJuexingResp) Reset() { + *x = HeroJuexingResp{} if protoimpl.UnsafeEnabled { mi := &file_hero_hero_msg_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1054,13 +1054,13 @@ func (x *Hero_Juexing_Resp) Reset() { } } -func (x *Hero_Juexing_Resp) String() string { +func (x *HeroJuexingResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Hero_Juexing_Resp) ProtoMessage() {} +func (*HeroJuexingResp) ProtoMessage() {} -func (x *Hero_Juexing_Resp) ProtoReflect() protoreflect.Message { +func (x *HeroJuexingResp) ProtoReflect() protoreflect.Message { mi := &file_hero_hero_msg_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1072,12 +1072,12 @@ func (x *Hero_Juexing_Resp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Hero_Juexing_Resp.ProtoReflect.Descriptor instead. -func (*Hero_Juexing_Resp) Descriptor() ([]byte, []int) { +// Deprecated: Use HeroJuexingResp.ProtoReflect.Descriptor instead. +func (*HeroJuexingResp) Descriptor() ([]byte, []int) { return file_hero_hero_msg_proto_rawDescGZIP(), []int{19} } -func (x *Hero_Juexing_Resp) GetHero() *DB_HeroData { +func (x *HeroJuexingResp) GetHero() *DBHero { if x != nil { return x.Hero } @@ -1089,107 +1089,102 @@ var File_hero_hero_msg_proto protoreflect.FileDescriptor var file_hero_hero_msg_proto_rawDesc = []byte{ 0x0a, 0x13, 0x68, 0x65, 0x72, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f, 0x2f, - 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, - 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x49, 0x6e, 0x66, 0x6f, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x16, - 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x22, 0x34, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x49, - 0x6e, 0x66, 0x6f, 0x5f, 0x52, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, - 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x62, 0x61, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, - 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x22, 0x34, 0x0a, - 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x73, 0x70, 0x12, 0x23, - 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, - 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x6c, - 0x69, 0x73, 0x74, 0x22, 0x3a, 0x0a, 0x08, 0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x16, 0x0a, 0x06, 0x69, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x06, 0x69, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, - 0x6d, 0x0a, 0x17, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x65, 0x6e, 0x55, 0x70, 0x6c, 0x76, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, + 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, + 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, + 0x72, 0x6f, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x62, + 0x61, 0x73, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x22, 0x2d, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x73, + 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, + 0x74, 0x22, 0x3a, 0x0a, 0x08, 0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, + 0x06, 0x69, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x69, + 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6b, 0x0a, + 0x15, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, + 0x70, 0x6c, 0x76, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, + 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, + 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x43, 0x61, 0x72, 0x64, 0x49, + 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, 0x43, 0x61, 0x72, 0x64, + 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x16, 0x48, 0x65, + 0x72, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x6c, 0x76, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, + 0x68, 0x65, 0x72, 0x6f, 0x22, 0x48, 0x0a, 0x0c, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, + 0x4f, 0x62, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x43, + 0x61, 0x72, 0x64, 0x4f, 0x62, 0x6a, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x8b, + 0x01, 0x0a, 0x17, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, + 0x6e, 0x55, 0x70, 0x53, 0x74, 0x61, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, - 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x43, - 0x61, 0x72, 0x64, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, - 0x43, 0x61, 0x72, 0x64, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3f, - 0x0a, 0x18, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, - 0x6e, 0x55, 0x70, 0x6c, 0x76, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x68, 0x65, - 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, - 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, - 0x48, 0x0a, 0x0c, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4f, 0x62, 0x6a, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4f, 0x62, - 0x6a, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x8d, 0x01, 0x0a, 0x19, 0x48, 0x65, - 0x72, 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x53, - 0x74, 0x61, 0x72, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, - 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, - 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, - 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x2c, 0x0a, 0x08, 0x68, - 0x65, 0x72, 0x6f, 0x52, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x08, 0x68, 0x65, 0x72, 0x6f, 0x52, 0x61, 0x63, 0x65, 0x22, 0x41, 0x0a, 0x1a, 0x48, 0x65, 0x72, - 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x53, 0x74, - 0x61, 0x72, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, - 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x82, 0x01, 0x0a, - 0x1a, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, - 0x55, 0x70, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, - 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x6b, 0x69, - 0x6c, 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, - 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, - 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, - 0x73, 0x22, 0x42, 0x0a, 0x1b, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x23, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, - 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x4f, 0x0a, 0x11, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x47, 0x6f, - 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, - 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, - 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x73, 0x74, - 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x73, - 0x74, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x82, 0x01, 0x0a, 0x12, 0x48, 0x65, 0x72, 0x6f, 0x5f, - 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, - 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, - 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, - 0x72, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x12, 0x2f, 0x0a, 0x0a, 0x75, 0x70, - 0x53, 0x74, 0x61, 0x72, 0x43, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, - 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x0a, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x43, 0x61, 0x72, 0x64, 0x22, 0x36, 0x0a, 0x16, 0x48, - 0x65, 0x72, 0x6f, 0x5f, 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x65, - 0x74, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, + 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x73, 0x74, + 0x43, 0x61, 0x72, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x2c, + 0x0a, 0x08, 0x68, 0x65, 0x72, 0x6f, 0x52, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x68, 0x65, 0x72, 0x6f, 0x52, 0x61, 0x63, 0x65, 0x22, 0x3a, 0x0a, 0x18, + 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, + 0x53, 0x74, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, + 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x18, 0x48, 0x65, 0x72, + 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x53, 0x6b, 0x69, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, - 0x6a, 0x49, 0x44, 0x22, 0x56, 0x0a, 0x17, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x47, 0x6f, 0x6e, 0x67, - 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, - 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, - 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, - 0x65, 0x72, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x22, 0x72, 0x0a, 0x1a, 0x48, - 0x65, 0x72, 0x6f, 0x5f, 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x45, - 0x6e, 0x65, 0x72, 0x67, 0x79, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, - 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, - 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x45, 0x6e, - 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x75, 0x73, 0x65, 0x45, - 0x6e, 0x65, 0x72, 0x67, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x42, 0x0a, 0x1b, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, - 0x55, 0x73, 0x65, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, - 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, - 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, - 0x65, 0x72, 0x6f, 0x22, 0x5c, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x4a, 0x75, 0x65, 0x78, - 0x69, 0x6e, 0x67, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, + 0x6a, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x72, 0x64, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3b, 0x0a, 0x19, 0x48, + 0x65, 0x72, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x65, 0x6e, 0x55, 0x70, 0x53, + 0x6b, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, + 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x4d, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, + 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, + 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x73, + 0x74, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, + 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x76, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x47, + 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, + 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, + 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x6e, 0x65, + 0x72, 0x67, 0x79, 0x12, 0x2a, 0x0a, 0x0a, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x43, 0x61, 0x72, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, + 0x65, 0x72, 0x6f, 0x52, 0x0a, 0x75, 0x70, 0x53, 0x74, 0x61, 0x72, 0x43, 0x61, 0x72, 0x64, 0x22, + 0x34, 0x0a, 0x14, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, + 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, + 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x4f, 0x0a, 0x15, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x6f, 0x6e, + 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, + 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, + 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x16, + 0x0a, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x22, 0x70, 0x0a, 0x18, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x6f, + 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x52, + 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, + 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x75, 0x73, 0x65, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x75, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3b, 0x0a, 0x19, 0x48, 0x65, 0x72, 0x6f, + 0x47, 0x6f, 0x6e, 0x67, 0x6d, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x45, 0x6e, 0x65, 0x72, 0x67, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, + 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x5a, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x4a, 0x75, 0x65, + 0x78, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x12, 0x2a, 0x0a, 0x09, 0x63, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x63, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x6d, 0x65, - 0x73, 0x22, 0x38, 0x0a, 0x11, 0x48, 0x65, 0x72, 0x6f, 0x5f, 0x4a, 0x75, 0x65, 0x78, 0x69, 0x6e, - 0x67, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, - 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, - 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x22, 0x31, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x4a, 0x75, 0x65, 0x78, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, + 0x68, 0x65, 0x72, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1206,43 +1201,43 @@ func file_hero_hero_msg_proto_rawDescGZIP() []byte { var file_hero_hero_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_hero_hero_msg_proto_goTypes = []interface{}{ - (*Hero_Info_Req)(nil), // 0: pb.Hero_Info_Req - (*Hero_Info_Rsp)(nil), // 1: pb.Hero_Info_Rsp - (*Hero_List_Req)(nil), // 2: pb.Hero_List_Req - (*Hero_List_Rsp)(nil), // 3: pb.Hero_List_Rsp - (*ItemData)(nil), // 4: pb.ItemData - (*Hero_StrengthenUplv_Req)(nil), // 5: pb.Hero_StrengthenUplv_Req - (*Hero_StrengthenUplv_Resp)(nil), // 6: pb.Hero_StrengthenUplv_Resp - (*CostCardData)(nil), // 7: pb.CostCardData - (*Hero_StrengthenUpStar_Req)(nil), // 8: pb.Hero_StrengthenUpStar_Req - (*Hero_StrengthenUpStar_Resp)(nil), // 9: pb.Hero_StrengthenUpStar_Resp - (*Hero_StrengthenUpSkill_Req)(nil), // 10: pb.Hero_StrengthenUpSkill_Req - (*Hero_StrengthenUpSkill_Resp)(nil), // 11: pb.Hero_StrengthenUpSkill_Resp - (*Hero_Gongming_Req)(nil), // 12: pb.Hero_Gongming_Req - (*Hero_Gongming_Resp)(nil), // 13: pb.Hero_Gongming_Resp - (*Hero_GongmingReset_Req)(nil), // 14: pb.Hero_GongmingReset_Req - (*Hero_GongmingReset_Resp)(nil), // 15: pb.Hero_GongmingReset_Resp - (*Hero_GongmingUseEnergy_Req)(nil), // 16: pb.Hero_GongmingUseEnergy_Req - (*Hero_GongmingUseEnergy_Resp)(nil), // 17: pb.Hero_GongmingUseEnergy_Resp - (*Hero_Juexing_Req)(nil), // 18: pb.Hero_Juexing_Req - (*Hero_Juexing_Resp)(nil), // 19: pb.Hero_Juexing_Resp - (*DB_HeroData)(nil), // 20: pb.DB_HeroData + (*HeroInfoReq)(nil), // 0: pb.HeroInfoReq + (*HeroInfoRsp)(nil), // 1: pb.HeroInfoRsp + (*HeroListReq)(nil), // 2: pb.HeroListReq + (*HeroListRsp)(nil), // 3: pb.HeroListRsp + (*ItemData)(nil), // 4: pb.ItemData + (*HeroStrengthenUplvReq)(nil), // 5: pb.HeroStrengthenUplvReq + (*HeroStrengthenUplvResp)(nil), // 6: pb.HeroStrengthenUplvResp + (*CostCardData)(nil), // 7: pb.CostCardData + (*HeroStrengthenUpStarReq)(nil), // 8: pb.HeroStrengthenUpStarReq + (*HeroStrengthenUpStarResp)(nil), // 9: pb.HeroStrengthenUpStarResp + (*HeroStrengthenUpSkillReq)(nil), // 10: pb.HeroStrengthenUpSkillReq + (*HeroStrengthenUpSkillResp)(nil), // 11: pb.HeroStrengthenUpSkillResp + (*HeroGongmingReq)(nil), // 12: pb.HeroGongmingReq + (*HeroGongmingResp)(nil), // 13: pb.HeroGongmingResp + (*HeroGongmingResetReq)(nil), // 14: pb.HeroGongmingResetReq + (*HeroGongmingResetResp)(nil), // 15: pb.HeroGongmingResetResp + (*HeroGongmingUseEnergyReq)(nil), // 16: pb.HeroGongmingUseEnergyReq + (*HeroGongmingUseEnergyResp)(nil), // 17: pb.HeroGongmingUseEnergyResp + (*HeroJuexingReq)(nil), // 18: pb.HeroJuexingReq + (*HeroJuexingResp)(nil), // 19: pb.HeroJuexingResp + (*DBHero)(nil), // 20: pb.DBHero } var file_hero_hero_msg_proto_depIdxs = []int32{ - 20, // 0: pb.Hero_Info_Rsp.base:type_name -> pb.DB_HeroData - 20, // 1: pb.Hero_List_Rsp.list:type_name -> pb.DB_HeroData - 20, // 2: pb.Hero_StrengthenUplv_Resp.hero:type_name -> pb.DB_HeroData - 7, // 3: pb.Hero_StrengthenUpStar_Req.hero:type_name -> pb.CostCardData - 7, // 4: pb.Hero_StrengthenUpStar_Req.heroRace:type_name -> pb.CostCardData - 20, // 5: pb.Hero_StrengthenUpStar_Resp.hero:type_name -> pb.DB_HeroData - 7, // 6: pb.Hero_StrengthenUpSkill_Req.items:type_name -> pb.CostCardData - 20, // 7: pb.Hero_StrengthenUpSkill_Resp.hero:type_name -> pb.DB_HeroData - 20, // 8: pb.Hero_Gongming_Resp.hero:type_name -> pb.DB_HeroData - 20, // 9: pb.Hero_Gongming_Resp.upStarCard:type_name -> pb.DB_HeroData - 20, // 10: pb.Hero_GongmingReset_Resp.hero:type_name -> pb.DB_HeroData - 20, // 11: pb.Hero_GongmingUseEnergy_Resp.hero:type_name -> pb.DB_HeroData - 4, // 12: pb.Hero_Juexing_Req.costItmes:type_name -> pb.ItemData - 20, // 13: pb.Hero_Juexing_Resp.hero:type_name -> pb.DB_HeroData + 20, // 0: pb.HeroInfoRsp.base:type_name -> pb.DBHero + 20, // 1: pb.HeroListRsp.list:type_name -> pb.DBHero + 20, // 2: pb.HeroStrengthenUplvResp.hero:type_name -> pb.DBHero + 7, // 3: pb.HeroStrengthenUpStarReq.hero:type_name -> pb.CostCardData + 7, // 4: pb.HeroStrengthenUpStarReq.heroRace:type_name -> pb.CostCardData + 20, // 5: pb.HeroStrengthenUpStarResp.hero:type_name -> pb.DBHero + 7, // 6: pb.HeroStrengthenUpSkillReq.items:type_name -> pb.CostCardData + 20, // 7: pb.HeroStrengthenUpSkillResp.hero:type_name -> pb.DBHero + 20, // 8: pb.HeroGongmingResp.hero:type_name -> pb.DBHero + 20, // 9: pb.HeroGongmingResp.upStarCard:type_name -> pb.DBHero + 20, // 10: pb.HeroGongmingResetResp.hero:type_name -> pb.DBHero + 20, // 11: pb.HeroGongmingUseEnergyResp.hero:type_name -> pb.DBHero + 4, // 12: pb.HeroJuexingReq.costItmes:type_name -> pb.ItemData + 20, // 13: pb.HeroJuexingResp.hero:type_name -> pb.DBHero 14, // [14:14] is the sub-list for method output_type 14, // [14:14] is the sub-list for method input_type 14, // [14:14] is the sub-list for extension type_name @@ -1258,7 +1253,7 @@ func file_hero_hero_msg_proto_init() { file_hero_hero_db_proto_init() if !protoimpl.UnsafeEnabled { file_hero_hero_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Info_Req); i { + switch v := v.(*HeroInfoReq); i { case 0: return &v.state case 1: @@ -1270,7 +1265,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Info_Rsp); i { + switch v := v.(*HeroInfoRsp); i { case 0: return &v.state case 1: @@ -1282,7 +1277,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_List_Req); i { + switch v := v.(*HeroListReq); i { case 0: return &v.state case 1: @@ -1294,7 +1289,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_List_Rsp); i { + switch v := v.(*HeroListRsp); i { case 0: return &v.state case 1: @@ -1318,7 +1313,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUplv_Req); i { + switch v := v.(*HeroStrengthenUplvReq); i { case 0: return &v.state case 1: @@ -1330,7 +1325,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUplv_Resp); i { + switch v := v.(*HeroStrengthenUplvResp); i { case 0: return &v.state case 1: @@ -1354,7 +1349,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUpStar_Req); i { + switch v := v.(*HeroStrengthenUpStarReq); i { case 0: return &v.state case 1: @@ -1366,7 +1361,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUpStar_Resp); i { + switch v := v.(*HeroStrengthenUpStarResp); i { case 0: return &v.state case 1: @@ -1378,7 +1373,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUpSkill_Req); i { + switch v := v.(*HeroStrengthenUpSkillReq); i { case 0: return &v.state case 1: @@ -1390,7 +1385,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_StrengthenUpSkill_Resp); i { + switch v := v.(*HeroStrengthenUpSkillResp); i { case 0: return &v.state case 1: @@ -1402,7 +1397,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Gongming_Req); i { + switch v := v.(*HeroGongmingReq); i { case 0: return &v.state case 1: @@ -1414,7 +1409,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Gongming_Resp); i { + switch v := v.(*HeroGongmingResp); i { case 0: return &v.state case 1: @@ -1426,7 +1421,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_GongmingReset_Req); i { + switch v := v.(*HeroGongmingResetReq); i { case 0: return &v.state case 1: @@ -1438,7 +1433,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_GongmingReset_Resp); i { + switch v := v.(*HeroGongmingResetResp); i { case 0: return &v.state case 1: @@ -1450,7 +1445,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_GongmingUseEnergy_Req); i { + switch v := v.(*HeroGongmingUseEnergyReq); i { case 0: return &v.state case 1: @@ -1462,7 +1457,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_GongmingUseEnergy_Resp); i { + switch v := v.(*HeroGongmingUseEnergyResp); i { case 0: return &v.state case 1: @@ -1474,7 +1469,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Juexing_Req); i { + switch v := v.(*HeroJuexingReq); i { case 0: return &v.state case 1: @@ -1486,7 +1481,7 @@ func file_hero_hero_msg_proto_init() { } } file_hero_hero_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Hero_Juexing_Resp); i { + switch v := v.(*HeroJuexingResp); i { case 0: return &v.state case 1: diff --git a/pb/proto/hero/hero_db.proto b/pb/proto/hero/hero_db.proto index 45d8efec8..de76cb996 100644 --- a/pb/proto/hero/hero_db.proto +++ b/pb/proto/hero/hero_db.proto @@ -2,19 +2,12 @@ syntax = "proto3"; option go_package = ".;pb"; package pb; -// enum PropertyType{ -// Hp = 0; //血量 -// Atk = 1; //攻击 -// Def = 2; //防御 -// Speed = 3; //速度 -// Crit = 4; //暴击 -// } - -message SkillData{ +message SkillData { int32 skillID = 1; int32 skillLv = 2; } -message DB_HeroData { + +message DBHero { string id = 1; //@go_tags(`bson:"_id"`) ID string uid = 2; int32 heroID = 3; //@go_tags(`bson:"heroID"`) 英雄的配置表ID diff --git a/pb/proto/hero/hero_msg.proto b/pb/proto/hero/hero_msg.proto index 8bba2234b..8da28f31d 100644 --- a/pb/proto/hero/hero_msg.proto +++ b/pb/proto/hero/hero_msg.proto @@ -4,15 +4,15 @@ package pb; import "hero/hero_db.proto"; //英雄基础信息 -message Hero_Info_Req { +message HeroInfoReq { string heroId = 1; //英雄唯一ID } -message Hero_Info_Rsp { DB_HeroData base = 1; } +message HeroInfoRsp { DBHero base = 1; } //英雄列表 -message Hero_List_Req {} +message HeroListReq {} -message Hero_List_Rsp { repeated DB_HeroData list = 1; } +message HeroListRsp { repeated DBHero list = 1; } /// 卡牌养成: 强化(卡牌升级、卡牌升星、技能升级) /// 卡牌养成: 共鸣(共鸣消耗、材料返回、能量点使用) @@ -24,15 +24,15 @@ message ItemData { } // 卡牌升级 -message Hero_StrengthenUplv_Req { +message HeroStrengthenUplvReq { string heroObjID = 1; // 英雄对象ID string expCardID = 2; // 经验卡对象ID int32 amount = 3; // 消耗经验卡数量} } // 卡牌升级返回 -message Hero_StrengthenUplv_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroStrengthenUplvResp { + DBHero hero = 1; // 英雄对象 } message CostCardData { @@ -40,69 +40,69 @@ message CostCardData { int32 amount = 2; // 数量 } // 卡牌升星 -message Hero_StrengthenUpStar_Req { +message HeroStrengthenUpStarReq { string heroObjID = 1; // 英雄对象ID repeated CostCardData hero = 2; // 消耗卡牌对象ID repeated CostCardData heroRace = 3; // 消耗种族卡牌对象ID } // 卡牌升星返回 -message Hero_StrengthenUpStar_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroStrengthenUpStarResp { + DBHero hero = 1; // 英雄对象 } // 卡牌技能升级 -message Hero_StrengthenUpSkill_Req { +message HeroStrengthenUpSkillReq { string heroObjID = 1; // 英雄对象ID int32 skillIndex = 2; // 英雄技能索引 CostCardData items = 3; // 消耗技能升级卡 } // 卡牌技能升级返回 -message Hero_StrengthenUpSkill_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroStrengthenUpSkillResp { + DBHero hero = 1; // 英雄对象 } // 共鸣英雄 -message Hero_Gongming_Req { +message HeroGongmingReq { string heroObjID = 1; // 英雄对象ID string costObjID = 2; // 消耗对象 } -message Hero_Gongming_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroGongmingResp { + DBHero hero = 1; // 英雄对象 int32 energy = 2; // 共鸣成功 获得的能量点数 - DB_HeroData upStarCard = 3; //共鸣成功 获得的升星卡 + DBHero upStarCard = 3; //共鸣成功 获得的升星卡 } // 重置共鸣属性 -message Hero_GongmingReset_Req { +message HeroGongmingResetReq { string heroObjID = 1; // 英雄对象ID } -message Hero_GongmingReset_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroGongmingResetResp { + DBHero hero = 1; // 英雄对象 int32 energy = 2; // 能量点数 } // 使用能量点数 -message Hero_GongmingUseEnergy_Req { +message HeroGongmingUseEnergyReq { string heroObjID = 1; // 英雄对象ID int32 useEnergy = 2; // 使用的能量点数 int32 useType = 3; // 使用的类型 (攻击、血量、防御) } -message Hero_GongmingUseEnergy_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroGongmingUseEnergyResp { + DBHero hero = 1; // 英雄对象 } // 觉醒 -message Hero_Juexing_Req { +message HeroJuexingReq { string heroObjID = 1; // 英雄对象ID ItemData costItmes = 2; // 觉醒消耗待定 } // 觉醒返回 -message Hero_Juexing_Resp { - DB_HeroData hero = 1; // 英雄对象 +message HeroJuexingResp { + DBHero hero = 1; // 英雄对象 } \ No newline at end of file diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 4d92f5495..42d194b72 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -165,7 +165,7 @@ func (this *SCompGateRoute) ReceiveMsg(ctx context.Context, args *pb.AgentMessag //RPC_NoticeUserClose 接收用户离线通知 func (this *SCompGateRoute) NoticeUserClose(ctx context.Context, args *pb.NoticeUserCloseReq, reply *pb.RPCMessageReply) error { - event.TriggerEvent(comm.Event_UserOffline, args.UserId) + event.TriggerEvent(comm.EventUserOffline, args.UserId) this.sessionslock.Lock() delete(this.sessions, args.UserSessionId) this.sessionslock.Unlock()