|
|
@ -723,6 +723,118 @@ func (x *SupportAirdrop) GetLevel() int32 {
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 加时 push -> game.control.overtime
|
|
|
|
|
|
|
|
type Overtime struct {
|
|
|
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
|
|
|
Duration int32 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` // 具体加时时长,单位:秒
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Overtime) Reset() {
|
|
|
|
|
|
|
|
*x = Overtime{}
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
|
|
|
mi := &file_game_zhgww2_command_proto_msgTypes[11]
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Overtime) String() string {
|
|
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*Overtime) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Overtime) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
mi := &file_game_zhgww2_command_proto_msgTypes[11]
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ms
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Overtime.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
|
|
func (*Overtime) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return file_game_zhgww2_command_proto_rawDescGZIP(), []int{11}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Overtime) GetUser() *common.PbUser {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.User
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Overtime) GetDuration() int32 {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.Duration
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 成为指挥官 push -> game.become.commander
|
|
|
|
|
|
|
|
type BecomeCommander struct {
|
|
|
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
|
|
|
Rand int32 `protobuf:"varint,2,opt,name=rand,proto3" json:"rand,omitempty"` // 随机到的数值
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *BecomeCommander) Reset() {
|
|
|
|
|
|
|
|
*x = BecomeCommander{}
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
|
|
|
mi := &file_game_zhgww2_command_proto_msgTypes[12]
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *BecomeCommander) String() string {
|
|
|
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (*BecomeCommander) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *BecomeCommander) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
mi := &file_game_zhgww2_command_proto_msgTypes[12]
|
|
|
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ms
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use BecomeCommander.ProtoReflect.Descriptor instead.
|
|
|
|
|
|
|
|
func (*BecomeCommander) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return file_game_zhgww2_command_proto_rawDescGZIP(), []int{12}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *BecomeCommander) GetUser() *common.PbUser {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.User
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (x *BecomeCommander) GetRand() int32 {
|
|
|
|
|
|
|
|
if x != nil {
|
|
|
|
|
|
|
|
return x.Rand
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var File_game_zhgww2_command_proto protoreflect.FileDescriptor
|
|
|
|
var File_game_zhgww2_command_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
|
|
var file_game_zhgww2_command_proto_rawDesc = []byte{
|
|
|
|
var file_game_zhgww2_command_proto_rawDesc = []byte{
|
|
|
@ -795,10 +907,20 @@ var file_game_zhgww2_command_proto_rawDesc = []byte{
|
|
|
|
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
|
|
|
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
|
|
|
0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
|
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x26, 0x5a, 0x24, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61,
|
|
|
|
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x4d, 0x0a, 0x08, 0x4f, 0x76, 0x65, 0x72, 0x74, 0x69,
|
|
|
|
0x6d, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x7a, 0x68, 0x67, 0x77, 0x77,
|
|
|
|
0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x3b, 0x70, 0x62, 0x47, 0x61, 0x6d, 0x65, 0x5a, 0x68, 0x67, 0x57, 0x57, 0x32, 0x62, 0x06,
|
|
|
|
0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72,
|
|
|
|
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72,
|
|
|
|
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x0a, 0x0f, 0x42, 0x65, 0x63, 0x6f, 0x6d, 0x65, 0x43,
|
|
|
|
|
|
|
|
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
|
|
|
|
|
|
|
|
0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12,
|
|
|
|
|
|
|
|
0x12, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72,
|
|
|
|
|
|
|
|
0x61, 0x6e, 0x64, 0x42, 0x26, 0x5a, 0x24, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f,
|
|
|
|
|
|
|
|
0x70, 0x62, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x7a, 0x68, 0x67, 0x77, 0x77, 0x32, 0x3b, 0x70,
|
|
|
|
|
|
|
|
0x62, 0x47, 0x61, 0x6d, 0x65, 0x5a, 0x68, 0x67, 0x57, 0x57, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
|
|
|
|
|
0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
@ -814,7 +936,7 @@ func file_game_zhgww2_command_proto_rawDescGZIP() []byte {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var file_game_zhgww2_command_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
var file_game_zhgww2_command_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
var file_game_zhgww2_command_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
|
|
var file_game_zhgww2_command_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
|
|
var file_game_zhgww2_command_proto_goTypes = []interface{}{
|
|
|
|
var file_game_zhgww2_command_proto_goTypes = []interface{}{
|
|
|
|
(SupportSpecial_Type)(0), // 0: pb.game.zhgww2.SupportSpecial.Type
|
|
|
|
(SupportSpecial_Type)(0), // 0: pb.game.zhgww2.SupportSpecial.Type
|
|
|
|
(*JoinGame)(nil), // 1: pb.game.zhgww2.JoinGame
|
|
|
|
(*JoinGame)(nil), // 1: pb.game.zhgww2.JoinGame
|
|
|
@ -828,26 +950,30 @@ var file_game_zhgww2_command_proto_goTypes = []interface{}{
|
|
|
|
(*ChargeTank)(nil), // 9: pb.game.zhgww2.ChargeTank
|
|
|
|
(*ChargeTank)(nil), // 9: pb.game.zhgww2.ChargeTank
|
|
|
|
(*SupportSpecial)(nil), // 10: pb.game.zhgww2.SupportSpecial
|
|
|
|
(*SupportSpecial)(nil), // 10: pb.game.zhgww2.SupportSpecial
|
|
|
|
(*SupportAirdrop)(nil), // 11: pb.game.zhgww2.SupportAirdrop
|
|
|
|
(*SupportAirdrop)(nil), // 11: pb.game.zhgww2.SupportAirdrop
|
|
|
|
(*common.PbUser)(nil), // 12: pb.common.PbUser
|
|
|
|
(*Overtime)(nil), // 12: pb.game.zhgww2.Overtime
|
|
|
|
|
|
|
|
(*BecomeCommander)(nil), // 13: pb.game.zhgww2.BecomeCommander
|
|
|
|
|
|
|
|
(*common.PbUser)(nil), // 14: pb.common.PbUser
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var file_game_zhgww2_command_proto_depIdxs = []int32{
|
|
|
|
var file_game_zhgww2_command_proto_depIdxs = []int32{
|
|
|
|
12, // 0: pb.game.zhgww2.JoinGame.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 0: pb.game.zhgww2.JoinGame.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 1: pb.game.zhgww2.JoinGameReq.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 1: pb.game.zhgww2.JoinGameReq.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 2: pb.game.zhgww2.JoinGameResp.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 2: pb.game.zhgww2.JoinGameResp.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 3: pb.game.zhgww2.ChangeUnit.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 3: pb.game.zhgww2.ChangeUnit.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 4: pb.game.zhgww2.Attack.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 4: pb.game.zhgww2.Attack.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 5: pb.game.zhgww2.RestoreHealth.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 5: pb.game.zhgww2.RestoreHealth.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 6: pb.game.zhgww2.Reborn.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 6: pb.game.zhgww2.Reborn.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 7: pb.game.zhgww2.SupportSkill.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 7: pb.game.zhgww2.SupportSkill.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 8: pb.game.zhgww2.ChargeTank.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 8: pb.game.zhgww2.ChargeTank.user:type_name -> pb.common.PbUser
|
|
|
|
12, // 9: pb.game.zhgww2.SupportSpecial.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 9: pb.game.zhgww2.SupportSpecial.user:type_name -> pb.common.PbUser
|
|
|
|
0, // 10: pb.game.zhgww2.SupportSpecial.type:type_name -> pb.game.zhgww2.SupportSpecial.Type
|
|
|
|
0, // 10: pb.game.zhgww2.SupportSpecial.type:type_name -> pb.game.zhgww2.SupportSpecial.Type
|
|
|
|
12, // 11: pb.game.zhgww2.SupportAirdrop.user:type_name -> pb.common.PbUser
|
|
|
|
14, // 11: pb.game.zhgww2.SupportAirdrop.user:type_name -> pb.common.PbUser
|
|
|
|
12, // [12:12] is the sub-list for method output_type
|
|
|
|
14, // 12: pb.game.zhgww2.Overtime.user:type_name -> pb.common.PbUser
|
|
|
|
12, // [12:12] is the sub-list for method input_type
|
|
|
|
14, // 13: pb.game.zhgww2.BecomeCommander.user:type_name -> pb.common.PbUser
|
|
|
|
12, // [12:12] is the sub-list for extension type_name
|
|
|
|
14, // [14:14] is the sub-list for method output_type
|
|
|
|
12, // [12:12] is the sub-list for extension extendee
|
|
|
|
14, // [14:14] is the sub-list for method input_type
|
|
|
|
0, // [0:12] is the sub-list for field type_name
|
|
|
|
14, // [14:14] is the sub-list for extension type_name
|
|
|
|
|
|
|
|
14, // [14:14] is the sub-list for extension extendee
|
|
|
|
|
|
|
|
0, // [0:14] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { file_game_zhgww2_command_proto_init() }
|
|
|
|
func init() { file_game_zhgww2_command_proto_init() }
|
|
|
@ -988,6 +1114,30 @@ func file_game_zhgww2_command_proto_init() {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
file_game_zhgww2_command_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
|
|
|
switch v := v.(*Overtime); i {
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
return &v.state
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
file_game_zhgww2_command_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
|
|
|
switch v := v.(*BecomeCommander); 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{
|
|
|
@ -995,7 +1145,7 @@ func file_game_zhgww2_command_proto_init() {
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_game_zhgww2_command_proto_rawDesc,
|
|
|
|
RawDescriptor: file_game_zhgww2_command_proto_rawDesc,
|
|
|
|
NumEnums: 1,
|
|
|
|
NumEnums: 1,
|
|
|
|
NumMessages: 11,
|
|
|
|
NumMessages: 13,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|