From a9a8d052ea846be5d844f2012ccb5f752aa41b06 Mon Sep 17 00:00:00 2001 From: "WIN-20240218AEU\\Administrator" <123456@qq.com> Date: Fri, 28 Jun 2024 11:03:10 +0800 Subject: [PATCH] update --- protocol/bag/bag.pb.go | 324 +++++++++++++++++++++-------------- protocol/bag/bag.proto | 8 + protocol/player/player.pb.go | 2 +- protocol/player/player.proto | 2 +- 4 files changed, 208 insertions(+), 128 deletions(-) diff --git a/protocol/bag/bag.pb.go b/protocol/bag/bag.pb.go index c61e487..c6c962f 100644 --- a/protocol/bag/bag.pb.go +++ b/protocol/bag/bag.pb.go @@ -89,11 +89,12 @@ func (OpResultCode) EnumDescriptor() ([]byte, []int) { type SPacketID int32 const ( - SPacketID_PACKET_BAG_ZERO SPacketID = 0 // 弃用消息号 - SPacketID_PACKET_ALL_BAG_INFO SPacketID = 2530 //请求背包数据 - SPacketID_PACKET_ALL_BAG_USE SPacketID = 2531 //使用背包道具 - SPacketID_PACKET_SC_SYNCBAGDATA SPacketID = 2532 //背包数据更新 - SPacketID_PACKET_ALL_BAG_END SPacketID = 2549 //最大消息号 + SPacketID_PACKET_BAG_ZERO SPacketID = 0 // 弃用消息号 + SPacketID_PACKET_ALL_BAG_INFO SPacketID = 2530 //请求背包数据 + SPacketID_PACKET_ALL_BAG_USE SPacketID = 2531 //使用背包道具 + SPacketID_PACKET_SC_SYNCBAGDATA SPacketID = 2532 //背包数据更新 + SPacketID_PACKET_SC_ITEM_EXCHANGE_RES SPacketID = 2533 //背包道具兑换返回 + SPacketID_PACKET_ALL_BAG_END SPacketID = 2549 //最大消息号 //3000~3099 SPacketID_PACKET_PropExchange SPacketID = 3000 // 道具兑换 SPacketID_PACKET_ExchangeList SPacketID = 3001 // 兑换列表 @@ -106,18 +107,20 @@ var ( 2530: "PACKET_ALL_BAG_INFO", 2531: "PACKET_ALL_BAG_USE", 2532: "PACKET_SC_SYNCBAGDATA", + 2533: "PACKET_SC_ITEM_EXCHANGE_RES", 2549: "PACKET_ALL_BAG_END", 3000: "PACKET_PropExchange", 3001: "PACKET_ExchangeList", } SPacketID_value = map[string]int32{ - "PACKET_BAG_ZERO": 0, - "PACKET_ALL_BAG_INFO": 2530, - "PACKET_ALL_BAG_USE": 2531, - "PACKET_SC_SYNCBAGDATA": 2532, - "PACKET_ALL_BAG_END": 2549, - "PACKET_PropExchange": 3000, - "PACKET_ExchangeList": 3001, + "PACKET_BAG_ZERO": 0, + "PACKET_ALL_BAG_INFO": 2530, + "PACKET_ALL_BAG_USE": 2531, + "PACKET_SC_SYNCBAGDATA": 2532, + "PACKET_SC_ITEM_EXCHANGE_RES": 2533, + "PACKET_ALL_BAG_END": 2549, + "PACKET_PropExchange": 3000, + "PACKET_ExchangeList": 3001, } ) @@ -532,6 +535,55 @@ func (x *SCUpBagInfo) GetInfos() []*ItemInfo { return nil } +//背包使用兑换返回结果 +//PACKET_SC_ITEM_EXCHANGE_RES +type SCItemExChangeRes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RetCode OpResultCode `protobuf:"varint,1,opt,name=RetCode,proto3,enum=bag.OpResultCode" json:"RetCode,omitempty"` +} + +func (x *SCItemExChangeRes) Reset() { + *x = SCItemExChangeRes{} + if protoimpl.UnsafeEnabled { + mi := &file_bag_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SCItemExChangeRes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SCItemExChangeRes) ProtoMessage() {} + +func (x *SCItemExChangeRes) ProtoReflect() protoreflect.Message { + mi := &file_bag_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SCItemExChangeRes.ProtoReflect.Descriptor instead. +func (*SCItemExChangeRes) Descriptor() ([]byte, []int) { + return file_bag_proto_rawDescGZIP(), []int{5} +} + +func (x *SCItemExChangeRes) GetRetCode() OpResultCode { + if x != nil { + return x.RetCode + } + return OpResultCode_OPRC_Sucess +} + //PACKET_SC_SYNCBAGDATA type SCSyncBagData struct { state protoimpl.MessageState @@ -544,7 +596,7 @@ type SCSyncBagData struct { func (x *SCSyncBagData) Reset() { *x = SCSyncBagData{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[5] + mi := &file_bag_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -557,7 +609,7 @@ func (x *SCSyncBagData) String() string { func (*SCSyncBagData) ProtoMessage() {} func (x *SCSyncBagData) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[5] + mi := &file_bag_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -570,7 +622,7 @@ func (x *SCSyncBagData) ProtoReflect() protoreflect.Message { // Deprecated: Use SCSyncBagData.ProtoReflect.Descriptor instead. func (*SCSyncBagData) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{5} + return file_bag_proto_rawDescGZIP(), []int{6} } func (x *SCSyncBagData) GetInfos() []*ItemInfo { @@ -592,7 +644,7 @@ type PropInfo struct { func (x *PropInfo) Reset() { *x = PropInfo{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[6] + mi := &file_bag_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -605,7 +657,7 @@ func (x *PropInfo) String() string { func (*PropInfo) ProtoMessage() {} func (x *PropInfo) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[6] + mi := &file_bag_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -618,7 +670,7 @@ func (x *PropInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PropInfo.ProtoReflect.Descriptor instead. func (*PropInfo) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{6} + return file_bag_proto_rawDescGZIP(), []int{7} } func (x *PropInfo) GetItemId() int32 { @@ -647,7 +699,7 @@ type CSPropExchange struct { func (x *CSPropExchange) Reset() { *x = CSPropExchange{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[7] + mi := &file_bag_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -660,7 +712,7 @@ func (x *CSPropExchange) String() string { func (*CSPropExchange) ProtoMessage() {} func (x *CSPropExchange) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[7] + mi := &file_bag_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -673,7 +725,7 @@ func (x *CSPropExchange) ProtoReflect() protoreflect.Message { // Deprecated: Use CSPropExchange.ProtoReflect.Descriptor instead. func (*CSPropExchange) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{7} + return file_bag_proto_rawDescGZIP(), []int{8} } func (x *CSPropExchange) GetId() int32 { @@ -696,7 +748,7 @@ type SCPropExchange struct { func (x *SCPropExchange) Reset() { *x = SCPropExchange{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[8] + mi := &file_bag_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -709,7 +761,7 @@ func (x *SCPropExchange) String() string { func (*SCPropExchange) ProtoMessage() {} func (x *SCPropExchange) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[8] + mi := &file_bag_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -722,7 +774,7 @@ func (x *SCPropExchange) ProtoReflect() protoreflect.Message { // Deprecated: Use SCPropExchange.ProtoReflect.Descriptor instead. func (*SCPropExchange) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{8} + return file_bag_proto_rawDescGZIP(), []int{9} } func (x *SCPropExchange) GetRetCode() OpResultCode { @@ -759,7 +811,7 @@ type ExchangeInfo struct { func (x *ExchangeInfo) Reset() { *x = ExchangeInfo{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[9] + mi := &file_bag_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -772,7 +824,7 @@ func (x *ExchangeInfo) String() string { func (*ExchangeInfo) ProtoMessage() {} func (x *ExchangeInfo) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[9] + mi := &file_bag_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -785,7 +837,7 @@ func (x *ExchangeInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeInfo.ProtoReflect.Descriptor instead. func (*ExchangeInfo) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{9} + return file_bag_proto_rawDescGZIP(), []int{10} } func (x *ExchangeInfo) GetId() int32 { @@ -821,7 +873,7 @@ type CSExchangeList struct { func (x *CSExchangeList) Reset() { *x = CSExchangeList{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[10] + mi := &file_bag_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -834,7 +886,7 @@ func (x *CSExchangeList) String() string { func (*CSExchangeList) ProtoMessage() {} func (x *CSExchangeList) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[10] + mi := &file_bag_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -847,7 +899,7 @@ func (x *CSExchangeList) ProtoReflect() protoreflect.Message { // Deprecated: Use CSExchangeList.ProtoReflect.Descriptor instead. func (*CSExchangeList) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{10} + return file_bag_proto_rawDescGZIP(), []int{11} } func (x *CSExchangeList) GetTp() int32 { @@ -869,7 +921,7 @@ type SCExchangeList struct { func (x *SCExchangeList) Reset() { *x = SCExchangeList{} if protoimpl.UnsafeEnabled { - mi := &file_bag_proto_msgTypes[11] + mi := &file_bag_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -882,7 +934,7 @@ func (x *SCExchangeList) String() string { func (*SCExchangeList) ProtoMessage() {} func (x *SCExchangeList) ProtoReflect() protoreflect.Message { - mi := &file_bag_proto_msgTypes[11] + mi := &file_bag_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -895,7 +947,7 @@ func (x *SCExchangeList) ProtoReflect() protoreflect.Message { // Deprecated: Use SCExchangeList.ProtoReflect.Descriptor instead. func (*SCExchangeList) Descriptor() ([]byte, []int) { - return file_bag_proto_rawDescGZIP(), []int{11} + return file_bag_proto_rawDescGZIP(), []int{12} } func (x *SCExchangeList) GetInfos() []*ExchangeInfo { @@ -958,65 +1010,71 @@ var file_bag_proto_rawDesc = []byte{ 0x18, 0x0a, 0x07, 0x44, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x44, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x49, - 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x34, - 0x0a, 0x0d, 0x53, 0x43, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x61, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x23, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, - 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, - 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x74, 0x65, 0x6d, - 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, - 0x75, 0x6d, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x70, 0x45, 0x78, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x02, 0x49, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x53, 0x43, 0x50, 0x72, 0x6f, 0x70, 0x45, - 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, - 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x4f, - 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x52, 0x65, 0x74, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x52, 0x65, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, - 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x52, - 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x78, 0x0a, 0x0c, 0x45, 0x78, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x09, 0x43, 0x6f, - 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x43, 0x6f, - 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x47, 0x61, 0x69, 0x6e, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, - 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x47, 0x61, 0x69, 0x6e, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x22, 0x49, 0x0a, 0x0e, 0x53, 0x43, 0x45, 0x78, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x6f, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x45, 0x78, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x6e, 0x66, 0x6f, - 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, - 0x70, 0x2a, 0x99, 0x01, 0x0a, 0x0c, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, - 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x53, 0x75, 0x63, 0x65, 0x73, - 0x73, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x55, 0x73, 0x65, 0x55, - 0x70, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x49, 0x64, 0x45, 0x72, - 0x72, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x44, 0x62, 0x45, 0x72, - 0x72, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x42, 0x61, 0x67, 0x46, - 0x75, 0x6c, 0x6c, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x4e, 0x6f, - 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x50, 0x52, - 0x43, 0x5f, 0x4e, 0x6f, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x10, 0x07, 0x2a, 0xbc, 0x01, - 0x0a, 0x09, 0x53, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x13, 0x0a, 0x0f, 0x50, - 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, - 0x41, 0x47, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xe2, 0x13, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x41, - 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x55, 0x53, 0x45, - 0x10, 0xe3, 0x13, 0x12, 0x1a, 0x0a, 0x15, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43, - 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x42, 0x41, 0x47, 0x44, 0x41, 0x54, 0x41, 0x10, 0xe4, 0x13, 0x12, - 0x17, 0x0a, 0x12, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41, - 0x47, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0xf5, 0x13, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, - 0x45, 0x54, 0x5f, 0x50, 0x72, 0x6f, 0x70, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x10, - 0xb8, 0x17, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x45, 0x78, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x10, 0xb9, 0x17, 0x42, 0x23, 0x5a, 0x21, - 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x62, 0x61, - 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x40, + 0x0a, 0x11, 0x53, 0x43, 0x49, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, + 0x22, 0x34, 0x0a, 0x0d, 0x53, 0x43, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x61, 0x67, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x05, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x74, + 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x74, 0x65, + 0x6d, 0x4e, 0x75, 0x6d, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x70, 0x45, 0x78, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x53, 0x43, 0x50, 0x72, 0x6f, + 0x70, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x52, 0x65, 0x74, + 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x67, + 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x52, + 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x52, + 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0b, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x78, 0x0a, 0x0c, + 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x09, + 0x43, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x62, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, + 0x43, 0x6f, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x47, 0x61, 0x69, + 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, + 0x61, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x47, 0x61, 0x69, + 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x20, 0x0a, 0x0e, 0x43, 0x53, 0x45, 0x78, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x22, 0x49, 0x0a, 0x0e, 0x53, 0x43, 0x45, 0x78, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x05, 0x49, 0x6e, + 0x66, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x61, 0x67, 0x2e, + 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x49, 0x6e, + 0x66, 0x6f, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x02, 0x54, 0x70, 0x2a, 0x99, 0x01, 0x0a, 0x0c, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x53, 0x75, 0x63, + 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x55, 0x73, + 0x65, 0x55, 0x70, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x49, 0x64, + 0x45, 0x72, 0x72, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x44, 0x62, + 0x45, 0x72, 0x72, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x42, 0x61, + 0x67, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x50, 0x52, 0x43, 0x5f, + 0x4e, 0x6f, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x4f, + 0x50, 0x52, 0x43, 0x5f, 0x4e, 0x6f, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x10, 0x07, 0x2a, + 0xde, 0x01, 0x0a, 0x09, 0x53, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x13, 0x0a, + 0x0f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x5a, 0x45, 0x52, 0x4f, + 0x10, 0x00, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, + 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xe2, 0x13, 0x12, 0x17, 0x0a, 0x12, + 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, 0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x55, + 0x53, 0x45, 0x10, 0xe3, 0x13, 0x12, 0x1a, 0x0a, 0x15, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, + 0x53, 0x43, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x42, 0x41, 0x47, 0x44, 0x41, 0x54, 0x41, 0x10, 0xe4, + 0x13, 0x12, 0x20, 0x0a, 0x1b, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43, 0x5f, 0x49, + 0x54, 0x45, 0x4d, 0x5f, 0x45, 0x58, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x52, 0x45, 0x53, + 0x10, 0xe5, 0x13, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x4c, + 0x4c, 0x5f, 0x42, 0x41, 0x47, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0xf5, 0x13, 0x12, 0x18, 0x0a, 0x13, + 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x50, 0x72, 0x6f, 0x70, 0x45, 0x78, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x10, 0xb8, 0x17, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, + 0x5f, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x10, 0xb9, 0x17, + 0x42, 0x23, 0x5a, 0x21, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2f, 0x62, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1032,40 +1090,42 @@ func file_bag_proto_rawDescGZIP() []byte { } var file_bag_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_bag_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_bag_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_bag_proto_goTypes = []interface{}{ - (OpResultCode)(0), // 0: bag.OpResultCode - (SPacketID)(0), // 1: bag.SPacketID - (*ItemInfo)(nil), // 2: bag.ItemInfo - (*CSBagInfo)(nil), // 3: bag.CSBagInfo - (*SCBagInfo)(nil), // 4: bag.SCBagInfo - (*CSUpBagInfo)(nil), // 5: bag.CSUpBagInfo - (*SCUpBagInfo)(nil), // 6: bag.SCUpBagInfo - (*SCSyncBagData)(nil), // 7: bag.SCSyncBagData - (*PropInfo)(nil), // 8: bag.PropInfo - (*CSPropExchange)(nil), // 9: bag.CSPropExchange - (*SCPropExchange)(nil), // 10: bag.SCPropExchange - (*ExchangeInfo)(nil), // 11: bag.ExchangeInfo - (*CSExchangeList)(nil), // 12: bag.CSExchangeList - (*SCExchangeList)(nil), // 13: bag.SCExchangeList + (OpResultCode)(0), // 0: bag.OpResultCode + (SPacketID)(0), // 1: bag.SPacketID + (*ItemInfo)(nil), // 2: bag.ItemInfo + (*CSBagInfo)(nil), // 3: bag.CSBagInfo + (*SCBagInfo)(nil), // 4: bag.SCBagInfo + (*CSUpBagInfo)(nil), // 5: bag.CSUpBagInfo + (*SCUpBagInfo)(nil), // 6: bag.SCUpBagInfo + (*SCItemExChangeRes)(nil), // 7: bag.SCItemExChangeRes + (*SCSyncBagData)(nil), // 8: bag.SCSyncBagData + (*PropInfo)(nil), // 9: bag.PropInfo + (*CSPropExchange)(nil), // 10: bag.CSPropExchange + (*SCPropExchange)(nil), // 11: bag.SCPropExchange + (*ExchangeInfo)(nil), // 12: bag.ExchangeInfo + (*CSExchangeList)(nil), // 13: bag.CSExchangeList + (*SCExchangeList)(nil), // 14: bag.SCExchangeList } var file_bag_proto_depIdxs = []int32{ 0, // 0: bag.SCBagInfo.RetCode:type_name -> bag.OpResultCode 2, // 1: bag.SCBagInfo.Infos:type_name -> bag.ItemInfo 0, // 2: bag.SCUpBagInfo.RetCode:type_name -> bag.OpResultCode 2, // 3: bag.SCUpBagInfo.Infos:type_name -> bag.ItemInfo - 2, // 4: bag.SCSyncBagData.Infos:type_name -> bag.ItemInfo - 0, // 5: bag.SCPropExchange.RetCode:type_name -> bag.OpResultCode - 8, // 6: bag.SCPropExchange.Items:type_name -> bag.PropInfo - 8, // 7: bag.SCPropExchange.RemainItems:type_name -> bag.PropInfo - 8, // 8: bag.ExchangeInfo.CostItems:type_name -> bag.PropInfo - 8, // 9: bag.ExchangeInfo.GainItems:type_name -> bag.PropInfo - 11, // 10: bag.SCExchangeList.Infos:type_name -> bag.ExchangeInfo - 11, // [11:11] is the sub-list for method output_type - 11, // [11:11] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 0, // 4: bag.SCItemExChangeRes.RetCode:type_name -> bag.OpResultCode + 2, // 5: bag.SCSyncBagData.Infos:type_name -> bag.ItemInfo + 0, // 6: bag.SCPropExchange.RetCode:type_name -> bag.OpResultCode + 9, // 7: bag.SCPropExchange.Items:type_name -> bag.PropInfo + 9, // 8: bag.SCPropExchange.RemainItems:type_name -> bag.PropInfo + 9, // 9: bag.ExchangeInfo.CostItems:type_name -> bag.PropInfo + 9, // 10: bag.ExchangeInfo.GainItems:type_name -> bag.PropInfo + 12, // 11: bag.SCExchangeList.Infos:type_name -> bag.ExchangeInfo + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_bag_proto_init() } @@ -1135,7 +1195,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SCSyncBagData); i { + switch v := v.(*SCItemExChangeRes); i { case 0: return &v.state case 1: @@ -1147,7 +1207,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PropInfo); i { + switch v := v.(*SCSyncBagData); i { case 0: return &v.state case 1: @@ -1159,7 +1219,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSPropExchange); i { + switch v := v.(*PropInfo); i { case 0: return &v.state case 1: @@ -1171,7 +1231,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SCPropExchange); i { + switch v := v.(*CSPropExchange); i { case 0: return &v.state case 1: @@ -1183,7 +1243,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeInfo); i { + switch v := v.(*SCPropExchange); i { case 0: return &v.state case 1: @@ -1195,7 +1255,7 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSExchangeList); i { + switch v := v.(*ExchangeInfo); i { case 0: return &v.state case 1: @@ -1207,6 +1267,18 @@ func file_bag_proto_init() { } } file_bag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CSExchangeList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bag_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SCExchangeList); i { case 0: return &v.state @@ -1225,7 +1297,7 @@ func file_bag_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_bag_proto_rawDesc, NumEnums: 2, - NumMessages: 12, + NumMessages: 13, NumExtensions: 0, NumServices: 0, }, diff --git a/protocol/bag/bag.proto b/protocol/bag/bag.proto index 4ca0182..94da3c6 100644 --- a/protocol/bag/bag.proto +++ b/protocol/bag/bag.proto @@ -18,6 +18,7 @@ enum SPacketID { PACKET_ALL_BAG_INFO = 2530; //请求背包数据 PACKET_ALL_BAG_USE = 2531; //使用背包道具 PACKET_SC_SYNCBAGDATA = 2532;//背包数据更新 + PACKET_SC_ITEM_EXCHANGE_RES = 2533;//背包道具兑换返回 PACKET_ALL_BAG_END = 2549; //最大消息号 //3000~3099 PACKET_PropExchange = 3000; // 道具兑换 @@ -77,6 +78,13 @@ message SCUpBagInfo { //使用道具获得的 repeated ItemInfo Infos = 6;// 物品信息 } +//背包使用兑换返回结果 +//PACKET_SC_ITEM_EXCHANGE_RES +message SCItemExChangeRes{ + OpResultCode RetCode = 1; +} + + //PACKET_SC_SYNCBAGDATA message SCSyncBagData{ repeated ItemInfo Infos = 1;// 物品信息 diff --git a/protocol/player/player.pb.go b/protocol/player/player.pb.go index 4aaa454..ec978fe 100644 --- a/protocol/player/player.pb.go +++ b/protocol/player/player.pb.go @@ -9471,7 +9471,7 @@ type ChannelSwitch struct { unknownFields protoimpl.UnknownFields OnChannelName []string `protobuf:"bytes,1,rep,name=OnChannelName,proto3" json:"OnChannelName,omitempty"` // 开启渠道 - Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"` // 开关类型 1:兑换 2:v卡掉落 + Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"` // 开关类型 1:兑换 2:v卡掉落 3:邀请活动开关 } func (x *ChannelSwitch) Reset() { diff --git a/protocol/player/player.proto b/protocol/player/player.proto index ccbdfcc..f2af2fc 100644 --- a/protocol/player/player.proto +++ b/protocol/player/player.proto @@ -1191,7 +1191,7 @@ message CSExchangeChannel{ message ChannelSwitch { repeated string OnChannelName = 1; // 开启渠道 - int32 Tp = 2; // 开关类型 1:兑换 2:v卡掉落 + int32 Tp = 2; // 开关类型 1:兑换 2:v卡掉落 3:邀请活动开关 } // PACKET_SCExchangeChannel