//import "google/protobuf/any.proto"; // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.3.0 // source: pb/fight.proto package BossServer import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) //上报伤害输出 type CSFightReportDamage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // 伤害输出 Damage int32 `protobuf:"varint,1,opt,name=Damage,proto3" json:"Damage,omitempty"` } func (x *CSFightReportDamage) Reset() { *x = CSFightReportDamage{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CSFightReportDamage) String() string { return protoimpl.X.MessageStringOf(x) } func (*CSFightReportDamage) ProtoMessage() {} func (x *CSFightReportDamage) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[0] 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 CSFightReportDamage.ProtoReflect.Descriptor instead. func (*CSFightReportDamage) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{0} } func (x *CSFightReportDamage) GetDamage() int32 { if x != nil { return x.Damage } return 0 } // 上报玩家剩余血量 type CSReportUserHP struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserHP int32 `protobuf:"varint,1,opt,name=UserHP,proto3" json:"UserHP,omitempty"` } func (x *CSReportUserHP) Reset() { *x = CSReportUserHP{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CSReportUserHP) String() string { return protoimpl.X.MessageStringOf(x) } func (*CSReportUserHP) ProtoMessage() {} func (x *CSReportUserHP) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[1] 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 CSReportUserHP.ProtoReflect.Descriptor instead. func (*CSReportUserHP) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{1} } func (x *CSReportUserHP) GetUserHP() int32 { if x != nil { return x.UserHP } return 0 } // 结束(一般情况下是玩家血量到底主动退出) type CSLeaveFight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields XNo int32 `protobuf:"varint,1,opt,name=_no,json=No,proto3" json:"_no,omitempty"` } func (x *CSLeaveFight) Reset() { *x = CSLeaveFight{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CSLeaveFight) String() string { return protoimpl.X.MessageStringOf(x) } func (*CSLeaveFight) ProtoMessage() {} func (x *CSLeaveFight) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[2] 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 CSLeaveFight.ProtoReflect.Descriptor instead. func (*CSLeaveFight) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{2} } func (x *CSLeaveFight) GetXNo() int32 { if x != nil { return x.XNo } return 0 } // 从连接状态转入已经登陆状态(标记自己的uid和zoneid) type CSEnterFight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Zoneid int32 `protobuf:"varint,1,opt,name=Zoneid,proto3" json:"Zoneid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=Uid,proto3" json:"Uid,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` BossId int32 `protobuf:"varint,4,opt,name=BossId,proto3" json:"BossId,omitempty"` } func (x *CSEnterFight) Reset() { *x = CSEnterFight{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CSEnterFight) String() string { return protoimpl.X.MessageStringOf(x) } func (*CSEnterFight) ProtoMessage() {} func (x *CSEnterFight) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[3] 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 CSEnterFight.ProtoReflect.Descriptor instead. func (*CSEnterFight) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{3} } func (x *CSEnterFight) GetZoneid() int32 { if x != nil { return x.Zoneid } return 0 } func (x *CSEnterFight) GetUid() string { if x != nil { return x.Uid } return "" } func (x *CSEnterFight) GetName() string { if x != nil { return x.Name } return "" } func (x *CSEnterFight) GetBossId() int32 { if x != nil { return x.BossId } return 0 } // 登陆完成 type SCEnterFight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields BossHp int32 `protobuf:"varint,1,opt,name=BossHp,proto3" json:"BossHp,omitempty"` BossMaxHp int32 `protobuf:"varint,2,opt,name=BossMaxHp,proto3" json:"BossMaxHp,omitempty"` UserHP int32 `protobuf:"varint,3,opt,name=UserHP,proto3" json:"UserHP,omitempty"` // 倒计时 CountDown int32 `protobuf:"varint,4,opt,name=CountDown,proto3" json:"CountDown,omitempty"` } func (x *SCEnterFight) Reset() { *x = SCEnterFight{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SCEnterFight) String() string { return protoimpl.X.MessageStringOf(x) } func (*SCEnterFight) ProtoMessage() {} func (x *SCEnterFight) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[4] 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 SCEnterFight.ProtoReflect.Descriptor instead. func (*SCEnterFight) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{4} } func (x *SCEnterFight) GetBossHp() int32 { if x != nil { return x.BossHp } return 0 } func (x *SCEnterFight) GetBossMaxHp() int32 { if x != nil { return x.BossMaxHp } return 0 } func (x *SCEnterFight) GetUserHP() int32 { if x != nil { return x.UserHP } return 0 } func (x *SCEnterFight) GetCountDown() int32 { if x != nil { return x.CountDown } return 0 } // 更新状态数据 type SCUpdateProperties struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields BossHp int32 `protobuf:"varint,1,opt,name=BossHp,proto3" json:"BossHp,omitempty"` BossMaxHp int32 `protobuf:"varint,2,opt,name=BossMaxHp,proto3" json:"BossMaxHp,omitempty"` // 倒计时 CountDown int32 `protobuf:"varint,3,opt,name=CountDown,proto3" json:"CountDown,omitempty"` } func (x *SCUpdateProperties) Reset() { *x = SCUpdateProperties{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SCUpdateProperties) String() string { return protoimpl.X.MessageStringOf(x) } func (*SCUpdateProperties) ProtoMessage() {} func (x *SCUpdateProperties) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_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 SCUpdateProperties.ProtoReflect.Descriptor instead. func (*SCUpdateProperties) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{5} } func (x *SCUpdateProperties) GetBossHp() int32 { if x != nil { return x.BossHp } return 0 } func (x *SCUpdateProperties) GetBossMaxHp() int32 { if x != nil { return x.BossMaxHp } return 0 } func (x *SCUpdateProperties) GetCountDown() int32 { if x != nil { return x.CountDown } return 0 } // 战斗结束 type SCGameOver struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields BossHp int32 `protobuf:"varint,1,opt,name=BossHp,proto3" json:"BossHp,omitempty"` // 倒计时 CountDown int32 `protobuf:"varint,2,opt,name=CountDown,proto3" json:"CountDown,omitempty"` } func (x *SCGameOver) Reset() { *x = SCGameOver{} if protoimpl.UnsafeEnabled { mi := &file_pb_fight_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SCGameOver) String() string { return protoimpl.X.MessageStringOf(x) } func (*SCGameOver) ProtoMessage() {} func (x *SCGameOver) ProtoReflect() protoreflect.Message { mi := &file_pb_fight_proto_msgTypes[6] 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 SCGameOver.ProtoReflect.Descriptor instead. func (*SCGameOver) Descriptor() ([]byte, []int) { return file_pb_fight_proto_rawDescGZIP(), []int{6} } func (x *SCGameOver) GetBossHp() int32 { if x != nil { return x.BossHp } return 0 } func (x *SCGameOver) GetCountDown() int32 { if x != nil { return x.CountDown } return 0 } var File_pb_fight_proto protoreflect.FileDescriptor var file_pb_fight_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x70, 0x62, 0x2f, 0x66, 0x69, 0x67, 0x68, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x42, 0x6f, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x2d, 0x0a, 0x13, 0x43, 0x53, 0x46, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x43, 0x53, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x48, 0x50, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x48, 0x50, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x48, 0x50, 0x22, 0x1f, 0x0a, 0x0c, 0x43, 0x53, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x46, 0x69, 0x67, 0x68, 0x74, 0x12, 0x0f, 0x0a, 0x03, 0x5f, 0x6e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x4e, 0x6f, 0x22, 0x64, 0x0a, 0x0c, 0x43, 0x53, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x46, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x0c, 0x53, 0x43, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x46, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x42, 0x6f, 0x73, 0x73, 0x4d, 0x61, 0x78, 0x48, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x42, 0x6f, 0x73, 0x73, 0x4d, 0x61, 0x78, 0x48, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x48, 0x50, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x48, 0x50, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x22, 0x68, 0x0a, 0x12, 0x53, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x42, 0x6f, 0x73, 0x73, 0x4d, 0x61, 0x78, 0x48, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x42, 0x6f, 0x73, 0x73, 0x4d, 0x61, 0x78, 0x48, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x22, 0x42, 0x0a, 0x0a, 0x53, 0x43, 0x47, 0x61, 0x6d, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42, 0x6f, 0x73, 0x73, 0x48, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x42, 0x0f, 0x5a, 0x0d, 0x70, 0x62, 0x2f, 0x42, 0x6f, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_pb_fight_proto_rawDescOnce sync.Once file_pb_fight_proto_rawDescData = file_pb_fight_proto_rawDesc ) func file_pb_fight_proto_rawDescGZIP() []byte { file_pb_fight_proto_rawDescOnce.Do(func() { file_pb_fight_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_fight_proto_rawDescData) }) return file_pb_fight_proto_rawDescData } var file_pb_fight_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_pb_fight_proto_goTypes = []interface{}{ (*CSFightReportDamage)(nil), // 0: BossServer.CSFightReportDamage (*CSReportUserHP)(nil), // 1: BossServer.CSReportUserHP (*CSLeaveFight)(nil), // 2: BossServer.CSLeaveFight (*CSEnterFight)(nil), // 3: BossServer.CSEnterFight (*SCEnterFight)(nil), // 4: BossServer.SCEnterFight (*SCUpdateProperties)(nil), // 5: BossServer.SCUpdateProperties (*SCGameOver)(nil), // 6: BossServer.SCGameOver } var file_pb_fight_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_pb_fight_proto_init() } func file_pb_fight_proto_init() { if File_pb_fight_proto != nil { return } if !protoimpl.UnsafeEnabled { file_pb_fight_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CSFightReportDamage); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CSReportUserHP); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CSLeaveFight); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CSEnterFight); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SCEnterFight); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SCUpdateProperties); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pb_fight_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SCGameOver); 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{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pb_fight_proto_rawDesc, NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_pb_fight_proto_goTypes, DependencyIndexes: file_pb_fight_proto_depIdxs, MessageInfos: file_pb_fight_proto_msgTypes, }.Build() File_pb_fight_proto = out.File file_pb_fight_proto_rawDesc = nil file_pb_fight_proto_goTypes = nil file_pb_fight_proto_depIdxs = nil }