战斗传参优化
This commit is contained in:
parent
855f59a462
commit
4d51ce4327
@ -320,7 +320,7 @@ type (
|
|||||||
//校验战报
|
//校验战报
|
||||||
CheckBattleReport(session IUserSession, report *pb.BattleReport) (errdata *pb.ErrorData, iswin bool)
|
CheckBattleReport(session IUserSession, report *pb.BattleReport) (errdata *pb.ErrorData, iswin bool)
|
||||||
///创建石阵秘境战斗
|
///创建石阵秘境战斗
|
||||||
CreateStoneBattle(session IUserSession, diBuff []*pb.DySkillData, format []int32, role []*pb.BattleRole, leadpos int32) (errdata *pb.ErrorData, record *pb.DBBattleRecord)
|
CreateStoneBattle(session IUserSession, stoneBattle *pb.StroneBattleReq) (errdata *pb.ErrorData, record *pb.DBBattleRecord)
|
||||||
}
|
}
|
||||||
IGm interface {
|
IGm interface {
|
||||||
CreateCmd(session IUserSession, cmd string) (errdata *pb.ErrorData)
|
CreateCmd(session IUserSession, cmd string) (errdata *pb.ErrorData)
|
||||||
|
@ -936,10 +936,20 @@ func (this *modelBattleComp) getGlobalBuff(uid string) (buff *cfg.GamePandamasBu
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 创建石阵秘境战斗
|
// 创建石阵秘境战斗
|
||||||
func (this *modelBattleComp) creatStoneBattle(session comm.IUserSession, diBuff []*pb.DySkillData, format []int32, role []*pb.BattleRole, leadpos int32) (record *pb.DBBattleRecord, errdata *pb.ErrorData) {
|
func (this *modelBattleComp) creatStoneBattle(session comm.IUserSession, stoneBattle *pb.StroneBattleReq) (record *pb.DBBattleRecord, errdata *pb.ErrorData) {
|
||||||
var (
|
var (
|
||||||
heros []*pb.DBHero = make([]*pb.DBHero, 5)
|
heros []*pb.DBHero = make([]*pb.DBHero, 5)
|
||||||
|
conf *cfg.GameBattleReadyData
|
||||||
|
err error
|
||||||
)
|
)
|
||||||
|
if conf, err = this.module.configure.GetBattleReady(stoneBattle.BattleEvents); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
record = &pb.DBBattleRecord{
|
record = &pb.DBBattleRecord{
|
||||||
Id: primitive.NewObjectID().Hex(),
|
Id: primitive.NewObjectID().Hex(),
|
||||||
Title: "",
|
Title: "",
|
||||||
@ -949,14 +959,15 @@ func (this *modelBattleComp) creatStoneBattle(session comm.IUserSession, diBuff
|
|||||||
RedCompId: session.GetUserId(),
|
RedCompId: session.GetUserId(),
|
||||||
Redflist: make([]*pb.DBBattleFormt, 1),
|
Redflist: make([]*pb.DBBattleFormt, 1),
|
||||||
BlueCompId: "",
|
BlueCompId: "",
|
||||||
Buleflist: make([]*pb.DBBattleFormt, len(format)),
|
Buleflist: make([]*pb.DBBattleFormt, len(stoneBattle.Format)),
|
||||||
|
Tasks: conf.BattleEvents,
|
||||||
}
|
}
|
||||||
record.Redflist[0] = &pb.DBBattleFormt{
|
record.Redflist[0] = &pb.DBBattleFormt{
|
||||||
Leadpos: leadpos,
|
Leadpos: stoneBattle.Leadpos,
|
||||||
Team: role,
|
Team: stoneBattle.Role,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ok := this.checkBattlereadyCapskill(leadpos, heros); !ok {
|
if ok := this.checkBattlereadyCapskill(stoneBattle.Leadpos, heros); !ok {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_BattleCapskillCheckFailed,
|
Code: pb.ErrorCode_BattleCapskillCheckFailed,
|
||||||
Title: pb.ErrorCode_BattleCapskillCheckFailed.ToString(),
|
Title: pb.ErrorCode_BattleCapskillCheckFailed.ToString(),
|
||||||
@ -967,13 +978,13 @@ func (this *modelBattleComp) creatStoneBattle(session comm.IUserSession, diBuff
|
|||||||
captain int32
|
captain int32
|
||||||
masters []*pb.BattleRole
|
masters []*pb.BattleRole
|
||||||
)
|
)
|
||||||
for i, v := range format {
|
for i, v := range stoneBattle.Format {
|
||||||
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, v1 := range masters {
|
for _, v1 := range masters {
|
||||||
if v1 != nil {
|
if v1 != nil {
|
||||||
v1.BattleBeforeSkill = diBuff
|
v1.BattleBeforeSkill = stoneBattle.DiBuff
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -526,9 +526,9 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 创建石阵秘境战斗
|
// 创建石阵秘境战斗
|
||||||
func (this *Battle) CreateStoneBattle(session comm.IUserSession, diBuff []*pb.DySkillData, format []int32, role []*pb.BattleRole, leadpos int32) (errdata *pb.ErrorData, record *pb.DBBattleRecord) {
|
func (this *Battle) CreateStoneBattle(session comm.IUserSession, stoneBattle *pb.StroneBattleReq) (errdata *pb.ErrorData, record *pb.DBBattleRecord) {
|
||||||
|
|
||||||
if record, errdata = this.modelBattle.creatStoneBattle(session, diBuff, format, role, leadpos); errdata != nil {
|
if record, errdata = this.modelBattle.creatStoneBattle(session, stoneBattle); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,11 +97,28 @@ func (this *apiComp) Battle(session comm.IUserSession, req *pb.StonehengeBattleR
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
szHero = append(szHero, nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stoneBattle := &pb.StroneBattleReq{
|
||||||
|
DiBuff: diBuff,
|
||||||
|
Format: battleConf.FormatList,
|
||||||
|
Role: szHero,
|
||||||
|
Leadpos: req.Battle.Leadpos,
|
||||||
|
Btype: pb.BattleType_pve,
|
||||||
|
Ptype: pb.PlayType_stone,
|
||||||
|
BattleEvents: battleConf.BattleReadyID,
|
||||||
|
}
|
||||||
// 石阵秘境战斗前准备
|
// 石阵秘境战斗前准备
|
||||||
errdata, record := this.module.battle.CreateStoneBattle(session, diBuff, battleConf.FormatList, szHero, req.Battle.Leadpos)
|
// errdata, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
|
||||||
|
// Rulesid: battleConf.BattleReadyID,
|
||||||
|
// Ptype: pb.PlayType_mainline,
|
||||||
|
// Title: "",
|
||||||
|
// Format: req.Battle,
|
||||||
|
// Mformat: battleConf.FormatList,
|
||||||
|
// })
|
||||||
|
errdata, record := this.module.battle.CreateStoneBattle(session, stoneBattle)
|
||||||
if errdata != nil {
|
if errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1771,6 +1771,101 @@ func (x *BattleStateInfo) GetInputCmds() []*BattleCmd {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StroneBattleReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
DiBuff []*DySkillData `protobuf:"bytes,1,rep,name=diBuff,proto3" json:"diBuff"`
|
||||||
|
Format []int32 `protobuf:"varint,2,rep,packed,name=format,proto3" json:"format"`
|
||||||
|
Role []*BattleRole `protobuf:"bytes,3,rep,name=role,proto3" json:"role"`
|
||||||
|
Leadpos int32 `protobuf:"varint,4,opt,name=leadpos,proto3" json:"leadpos"`
|
||||||
|
Btype BattleType `protobuf:"varint,5,opt,name=Btype,proto3,enum=BattleType" json:"Btype"`
|
||||||
|
Ptype PlayType `protobuf:"varint,6,opt,name=Ptype,proto3,enum=PlayType" json:"Ptype"`
|
||||||
|
BattleEvents int32 `protobuf:"varint,7,opt,name=BattleEvents,proto3" json:"BattleEvents"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) Reset() {
|
||||||
|
*x = StroneBattleReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_battle_battle_msg_proto_msgTypes[25]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*StroneBattleReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_battle_battle_msg_proto_msgTypes[25]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use StroneBattleReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*StroneBattleReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_battle_battle_msg_proto_rawDescGZIP(), []int{25}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetDiBuff() []*DySkillData {
|
||||||
|
if x != nil {
|
||||||
|
return x.DiBuff
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetFormat() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Format
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetRole() []*BattleRole {
|
||||||
|
if x != nil {
|
||||||
|
return x.Role
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetLeadpos() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Leadpos
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetBtype() BattleType {
|
||||||
|
if x != nil {
|
||||||
|
return x.Btype
|
||||||
|
}
|
||||||
|
return BattleType_nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetPtype() PlayType {
|
||||||
|
if x != nil {
|
||||||
|
return x.Ptype
|
||||||
|
}
|
||||||
|
return PlayType_null
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *StroneBattleReq) GetBattleEvents() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BattleEvents
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
var File_battle_battle_msg_proto protoreflect.FileDescriptor
|
var File_battle_battle_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_battle_battle_msg_proto_rawDesc = []byte{
|
var file_battle_battle_msg_proto_rawDesc = []byte{
|
||||||
@ -1983,8 +2078,23 @@ var file_battle_battle_msg_proto_rawDesc = []byte{
|
|||||||
0x6f, 0x75, 0x74, 0x43, 0x6d, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74,
|
0x6f, 0x75, 0x74, 0x43, 0x6d, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74,
|
||||||
0x43, 0x6d, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x42, 0x61, 0x74,
|
0x43, 0x6d, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x42, 0x61, 0x74,
|
||||||
0x74, 0x6c, 0x65, 0x43, 0x6d, 0x64, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6d, 0x64,
|
0x74, 0x6c, 0x65, 0x43, 0x6d, 0x64, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6d, 0x64,
|
||||||
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x73, 0x22, 0xf2, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x6f, 0x6e, 0x65, 0x42, 0x61, 0x74, 0x74,
|
||||||
0x33,
|
0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x06, 0x64, 0x69, 0x42, 0x75, 0x66, 0x66, 0x18,
|
||||||
|
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x79, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x44,
|
||||||
|
0x61, 0x74, 0x61, 0x52, 0x06, 0x64, 0x69, 0x42, 0x75, 0x66, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x66,
|
||||||
|
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x66, 0x6f, 0x72,
|
||||||
|
0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28,
|
||||||
|
0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04,
|
||||||
|
0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x18,
|
||||||
|
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x12, 0x21,
|
||||||
|
0x0a, 0x05, 0x42, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e,
|
||||||
|
0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x42, 0x74, 0x79, 0x70,
|
||||||
|
0x65, 0x12, 0x1f, 0x0a, 0x05, 0x50, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e,
|
||||||
|
0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x50, 0x74, 0x79,
|
||||||
|
0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x45, 0x76, 0x65, 0x6e,
|
||||||
|
0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65,
|
||||||
|
0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -1999,7 +2109,7 @@ func file_battle_battle_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_battle_battle_msg_proto_rawDescData
|
return file_battle_battle_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
||||||
var file_battle_battle_msg_proto_goTypes = []interface{}{
|
var file_battle_battle_msg_proto_goTypes = []interface{}{
|
||||||
(*LineUp)(nil), // 0: LineUp
|
(*LineUp)(nil), // 0: LineUp
|
||||||
(*BattleFormation)(nil), // 1: BattleFormation
|
(*BattleFormation)(nil), // 1: BattleFormation
|
||||||
@ -2026,39 +2136,41 @@ var file_battle_battle_msg_proto_goTypes = []interface{}{
|
|||||||
(*BattleConcedeReq)(nil), // 22: BattleConcedeReq
|
(*BattleConcedeReq)(nil), // 22: BattleConcedeReq
|
||||||
(*BattleConcedeResp)(nil), // 23: BattleConcedeResp
|
(*BattleConcedeResp)(nil), // 23: BattleConcedeResp
|
||||||
(*BattleStateInfo)(nil), // 24: BattleStateInfo
|
(*BattleStateInfo)(nil), // 24: BattleStateInfo
|
||||||
(PlayType)(0), // 25: PlayType
|
(*StroneBattleReq)(nil), // 25: StroneBattleReq
|
||||||
(*DBHero)(nil), // 26: DBHero
|
(PlayType)(0), // 26: PlayType
|
||||||
(*BattleRole)(nil), // 27: BattleRole
|
(*DBHero)(nil), // 27: DBHero
|
||||||
(BattleType)(0), // 28: BattleType
|
(*BattleRole)(nil), // 28: BattleRole
|
||||||
(*DBBattleFormt)(nil), // 29: DBBattleFormt
|
(BattleType)(0), // 29: BattleType
|
||||||
(*anypb.Any)(nil), // 30: google.protobuf.Any
|
(*DBBattleFormt)(nil), // 30: DBBattleFormt
|
||||||
|
(*anypb.Any)(nil), // 31: google.protobuf.Any
|
||||||
|
(*DySkillData)(nil), // 32: DySkillData
|
||||||
}
|
}
|
||||||
var file_battle_battle_msg_proto_depIdxs = []int32{
|
var file_battle_battle_msg_proto_depIdxs = []int32{
|
||||||
25, // 0: BattleEVEReq.ptype:type_name -> PlayType
|
26, // 0: BattleEVEReq.ptype:type_name -> PlayType
|
||||||
1, // 1: BattleEVEReq.format:type_name -> BattleFormation
|
1, // 1: BattleEVEReq.format:type_name -> BattleFormation
|
||||||
25, // 2: BattlePVEReq.ptype:type_name -> PlayType
|
26, // 2: BattlePVEReq.ptype:type_name -> PlayType
|
||||||
1, // 3: BattlePVEReq.format:type_name -> BattleFormation
|
1, // 3: BattlePVEReq.format:type_name -> BattleFormation
|
||||||
26, // 4: PVPFormation.format:type_name -> DBHero
|
27, // 4: PVPFormation.format:type_name -> DBHero
|
||||||
25, // 5: BattlePVPReq.ptype:type_name -> PlayType
|
26, // 5: BattlePVPReq.ptype:type_name -> PlayType
|
||||||
4, // 6: BattlePVPReq.redformat:type_name -> PVPFormation
|
4, // 6: BattlePVPReq.redformat:type_name -> PVPFormation
|
||||||
4, // 7: BattlePVPReq.buleformat:type_name -> PVPFormation
|
4, // 7: BattlePVPReq.buleformat:type_name -> PVPFormation
|
||||||
25, // 8: BattleRTPVPReq.ptype:type_name -> PlayType
|
26, // 8: BattleRTPVPReq.ptype:type_name -> PlayType
|
||||||
1, // 9: BattleRTPVPReq.redformat:type_name -> BattleFormation
|
1, // 9: BattleRTPVPReq.redformat:type_name -> BattleFormation
|
||||||
1, // 10: BattleRTPVPReq.bulefformat:type_name -> BattleFormation
|
1, // 10: BattleRTPVPReq.bulefformat:type_name -> BattleFormation
|
||||||
25, // 11: BattleLPVEReq.ptype:type_name -> PlayType
|
26, // 11: BattleLPVEReq.ptype:type_name -> PlayType
|
||||||
1, // 12: BattleLPVEReq.format:type_name -> BattleFormation
|
1, // 12: BattleLPVEReq.format:type_name -> BattleFormation
|
||||||
27, // 13: BattleLPVEReq.monsters:type_name -> BattleRole
|
28, // 13: BattleLPVEReq.monsters:type_name -> BattleRole
|
||||||
25, // 14: BattlePVBReq.ptype:type_name -> PlayType
|
26, // 14: BattlePVBReq.ptype:type_name -> PlayType
|
||||||
1, // 15: BattlePVBReq.format:type_name -> BattleFormation
|
1, // 15: BattlePVBReq.format:type_name -> BattleFormation
|
||||||
28, // 16: BattleInfo.btype:type_name -> BattleType
|
29, // 16: BattleInfo.btype:type_name -> BattleType
|
||||||
25, // 17: BattleInfo.ptype:type_name -> PlayType
|
26, // 17: BattleInfo.ptype:type_name -> PlayType
|
||||||
29, // 18: BattleInfo.redflist:type_name -> DBBattleFormt
|
30, // 18: BattleInfo.redflist:type_name -> DBBattleFormt
|
||||||
29, // 19: BattleInfo.buleflist:type_name -> DBBattleFormt
|
30, // 19: BattleInfo.buleflist:type_name -> DBBattleFormt
|
||||||
9, // 20: BattleReport.info:type_name -> BattleInfo
|
9, // 20: BattleReport.info:type_name -> BattleInfo
|
||||||
10, // 21: BattleReport.incmd:type_name -> BattleCmd
|
10, // 21: BattleReport.incmd:type_name -> BattleCmd
|
||||||
10, // 22: BattleReport.outcmd:type_name -> BattleCmd
|
10, // 22: BattleReport.outcmd:type_name -> BattleCmd
|
||||||
27, // 23: BattleReport.alive:type_name -> BattleRole
|
28, // 23: BattleReport.alive:type_name -> BattleRole
|
||||||
30, // 24: BattleRpcMessage.data:type_name -> google.protobuf.Any
|
31, // 24: BattleRpcMessage.data:type_name -> google.protobuf.Any
|
||||||
24, // 25: BattleGetInfoResp.info:type_name -> BattleStateInfo
|
24, // 25: BattleGetInfoResp.info:type_name -> BattleStateInfo
|
||||||
9, // 26: BattleCreateServerReq.info:type_name -> BattleInfo
|
9, // 26: BattleCreateServerReq.info:type_name -> BattleInfo
|
||||||
10, // 27: BattleInCmdReq.in:type_name -> BattleCmd
|
10, // 27: BattleInCmdReq.in:type_name -> BattleCmd
|
||||||
@ -2067,11 +2179,15 @@ var file_battle_battle_msg_proto_depIdxs = []int32{
|
|||||||
9, // 30: BattleStateInfo.info:type_name -> BattleInfo
|
9, // 30: BattleStateInfo.info:type_name -> BattleInfo
|
||||||
10, // 31: BattleStateInfo.outCmds:type_name -> BattleCmd
|
10, // 31: BattleStateInfo.outCmds:type_name -> BattleCmd
|
||||||
10, // 32: BattleStateInfo.inputCmds:type_name -> BattleCmd
|
10, // 32: BattleStateInfo.inputCmds:type_name -> BattleCmd
|
||||||
33, // [33:33] is the sub-list for method output_type
|
32, // 33: StroneBattleReq.diBuff:type_name -> DySkillData
|
||||||
33, // [33:33] is the sub-list for method input_type
|
28, // 34: StroneBattleReq.role:type_name -> BattleRole
|
||||||
33, // [33:33] is the sub-list for extension type_name
|
29, // 35: StroneBattleReq.Btype:type_name -> BattleType
|
||||||
33, // [33:33] is the sub-list for extension extendee
|
26, // 36: StroneBattleReq.Ptype:type_name -> PlayType
|
||||||
0, // [0:33] is the sub-list for field type_name
|
37, // [37:37] is the sub-list for method output_type
|
||||||
|
37, // [37:37] is the sub-list for method input_type
|
||||||
|
37, // [37:37] is the sub-list for extension type_name
|
||||||
|
37, // [37:37] is the sub-list for extension extendee
|
||||||
|
0, // [0:37] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_battle_battle_msg_proto_init() }
|
func init() { file_battle_battle_msg_proto_init() }
|
||||||
@ -2382,6 +2498,18 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_battle_battle_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*StroneBattleReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -2389,7 +2517,7 @@ func file_battle_battle_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_battle_battle_msg_proto_rawDesc,
|
RawDescriptor: file_battle_battle_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 25,
|
NumMessages: 26,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user