上传战斗协议
This commit is contained in:
parent
13d8a6e029
commit
3eea25c1e2
@ -692,6 +692,61 @@ func (x *BattleRpcMessage) GetData() *anypb.Any {
|
||||
return nil
|
||||
}
|
||||
|
||||
type BattleTestMessage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
|
||||
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
|
||||
}
|
||||
|
||||
func (x *BattleTestMessage) Reset() {
|
||||
*x = BattleTestMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_battle_battle_msg_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BattleTestMessage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BattleTestMessage) ProtoMessage() {}
|
||||
|
||||
func (x *BattleTestMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_battle_battle_msg_proto_msgTypes[9]
|
||||
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 BattleTestMessage.ProtoReflect.Descriptor instead.
|
||||
func (*BattleTestMessage) Descriptor() ([]byte, []int) {
|
||||
return file_battle_battle_msg_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *BattleTestMessage) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *BattleTestMessage) GetMsg() string {
|
||||
if x != nil {
|
||||
return x.Msg
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_battle_battle_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_battle_battle_msg_proto_rawDesc = []byte{
|
||||
@ -783,8 +838,11 @@ var file_battle_battle_msg_proto_rawDesc = []byte{
|
||||
0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x44,
|
||||
0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
|
||||
0x04, 0x44, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54,
|
||||
0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73,
|
||||
0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x42, 0x06, 0x5a, 0x04,
|
||||
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -799,38 +857,39 @@ func file_battle_battle_msg_proto_rawDescGZIP() []byte {
|
||||
return file_battle_battle_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_battle_battle_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_battle_battle_msg_proto_goTypes = []interface{}{
|
||||
(*LineUp)(nil), // 0: LineUp
|
||||
(*BattleFormation)(nil), // 1: BattleFormation
|
||||
(*BattleEVEReq)(nil), // 2: BattleEVEReq
|
||||
(*BattlePVEReq)(nil), // 3: BattlePVEReq
|
||||
(*PVPFormation)(nil), // 4: PVPFormation
|
||||
(*BattlePVPReq)(nil), // 5: BattlePVPReq
|
||||
(*BattleInfo)(nil), // 6: BattleInfo
|
||||
(*BattleReport)(nil), // 7: BattleReport
|
||||
(*BattleRpcMessage)(nil), // 8: BattleRpcMessage
|
||||
(PlayType)(0), // 9: PlayType
|
||||
(*DBHero)(nil), // 10: DBHero
|
||||
(BattleType)(0), // 11: BattleType
|
||||
(*DBBattleFormt)(nil), // 12: DBBattleFormt
|
||||
(*anypb.Any)(nil), // 13: google.protobuf.Any
|
||||
(*LineUp)(nil), // 0: LineUp
|
||||
(*BattleFormation)(nil), // 1: BattleFormation
|
||||
(*BattleEVEReq)(nil), // 2: BattleEVEReq
|
||||
(*BattlePVEReq)(nil), // 3: BattlePVEReq
|
||||
(*PVPFormation)(nil), // 4: PVPFormation
|
||||
(*BattlePVPReq)(nil), // 5: BattlePVPReq
|
||||
(*BattleInfo)(nil), // 6: BattleInfo
|
||||
(*BattleReport)(nil), // 7: BattleReport
|
||||
(*BattleRpcMessage)(nil), // 8: BattleRpcMessage
|
||||
(*BattleTestMessage)(nil), // 9: BattleTestMessage
|
||||
(PlayType)(0), // 10: PlayType
|
||||
(*DBHero)(nil), // 11: DBHero
|
||||
(BattleType)(0), // 12: BattleType
|
||||
(*DBBattleFormt)(nil), // 13: DBBattleFormt
|
||||
(*anypb.Any)(nil), // 14: google.protobuf.Any
|
||||
}
|
||||
var file_battle_battle_msg_proto_depIdxs = []int32{
|
||||
9, // 0: BattleEVEReq.ptype:type_name -> PlayType
|
||||
10, // 0: BattleEVEReq.ptype:type_name -> PlayType
|
||||
1, // 1: BattleEVEReq.format:type_name -> BattleFormation
|
||||
9, // 2: BattlePVEReq.ptype:type_name -> PlayType
|
||||
10, // 2: BattlePVEReq.ptype:type_name -> PlayType
|
||||
1, // 3: BattlePVEReq.format:type_name -> BattleFormation
|
||||
10, // 4: PVPFormation.format:type_name -> DBHero
|
||||
9, // 5: BattlePVPReq.ptype:type_name -> PlayType
|
||||
11, // 4: PVPFormation.format:type_name -> DBHero
|
||||
10, // 5: BattlePVPReq.ptype:type_name -> PlayType
|
||||
4, // 6: BattlePVPReq.redformat:type_name -> PVPFormation
|
||||
4, // 7: BattlePVPReq.buleformat:type_name -> PVPFormation
|
||||
11, // 8: BattleInfo.btype:type_name -> BattleType
|
||||
9, // 9: BattleInfo.ptype:type_name -> PlayType
|
||||
12, // 10: BattleInfo.redflist:type_name -> DBBattleFormt
|
||||
12, // 11: BattleInfo.buleflist:type_name -> DBBattleFormt
|
||||
12, // 8: BattleInfo.btype:type_name -> BattleType
|
||||
10, // 9: BattleInfo.ptype:type_name -> PlayType
|
||||
13, // 10: BattleInfo.redflist:type_name -> DBBattleFormt
|
||||
13, // 11: BattleInfo.buleflist:type_name -> DBBattleFormt
|
||||
6, // 12: BattleReport.info:type_name -> BattleInfo
|
||||
13, // 13: BattleRpcMessage.Data:type_name -> google.protobuf.Any
|
||||
14, // 13: BattleRpcMessage.Data:type_name -> google.protobuf.Any
|
||||
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
|
||||
@ -954,6 +1013,18 @@ func file_battle_battle_msg_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_battle_battle_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BattleTestMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@ -961,7 +1032,7 @@ func file_battle_battle_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_battle_battle_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user