| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: skill.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- 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 Skill struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 技能 id
- SkillID int32 `protobuf:"varint,1,opt,name=skillID,proto3" json:"skillID,omitempty"`
- // 配置的武将
- Heroes []int64 `protobuf:"varint,2,rep,packed,name=heroes,proto3" json:"heroes,omitempty"`
- // 阶级
- Evolve int32 `protobuf:"varint,3,opt,name=evolve,proto3" json:"evolve,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Skill) Reset() {
- *x = Skill{}
- mi := &file_skill_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Skill) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Skill) ProtoMessage() {}
- func (x *Skill) ProtoReflect() protoreflect.Message {
- mi := &file_skill_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Skill.ProtoReflect.Descriptor instead.
- func (*Skill) Descriptor() ([]byte, []int) {
- return file_skill_proto_rawDescGZIP(), []int{0}
- }
- func (x *Skill) GetSkillID() int32 {
- if x != nil {
- return x.SkillID
- }
- return 0
- }
- func (x *Skill) GetHeroes() []int64 {
- if x != nil {
- return x.Heroes
- }
- return nil
- }
- func (x *Skill) GetEvolve() int32 {
- if x != nil {
- return x.Evolve
- }
- return 0
- }
- type SkillList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*Skill `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SkillList) Reset() {
- *x = SkillList{}
- mi := &file_skill_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SkillList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SkillList) ProtoMessage() {}
- func (x *SkillList) ProtoReflect() protoreflect.Message {
- mi := &file_skill_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SkillList.ProtoReflect.Descriptor instead.
- func (*SkillList) Descriptor() ([]byte, []int) {
- return file_skill_proto_rawDescGZIP(), []int{1}
- }
- func (x *SkillList) GetList() []*Skill {
- if x != nil {
- return x.List
- }
- return nil
- }
- // [请求] 技能学习
- type SkillStudyRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 技能 ID
- SkillID int32 `protobuf:"varint,1,opt,name=skillID,proto3" json:"skillID,omitempty"`
- // 英雄唯一 ID
- HeroGUID int64 `protobuf:"varint,2,opt,name=heroGUID,proto3" json:"heroGUID,omitempty"`
- // 技能下标 (只能是 1 和 2)
- SkillIndex int32 `protobuf:"varint,3,opt,name=skillIndex,proto3" json:"skillIndex,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SkillStudyRequest) Reset() {
- *x = SkillStudyRequest{}
- mi := &file_skill_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SkillStudyRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SkillStudyRequest) ProtoMessage() {}
- func (x *SkillStudyRequest) ProtoReflect() protoreflect.Message {
- mi := &file_skill_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SkillStudyRequest.ProtoReflect.Descriptor instead.
- func (*SkillStudyRequest) Descriptor() ([]byte, []int) {
- return file_skill_proto_rawDescGZIP(), []int{2}
- }
- func (x *SkillStudyRequest) GetSkillID() int32 {
- if x != nil {
- return x.SkillID
- }
- return 0
- }
- func (x *SkillStudyRequest) GetHeroGUID() int64 {
- if x != nil {
- return x.HeroGUID
- }
- return 0
- }
- func (x *SkillStudyRequest) GetSkillIndex() int32 {
- if x != nil {
- return x.SkillIndex
- }
- return 0
- }
- var File_skill_proto protoreflect.FileDescriptor
- const file_skill_proto_rawDesc = "" +
- "\n" +
- "\vskill.proto\x12\x02pb\"Q\n" +
- "\x05Skill\x12\x18\n" +
- "\askillID\x18\x01 \x01(\x05R\askillID\x12\x16\n" +
- "\x06heroes\x18\x02 \x03(\x03R\x06heroes\x12\x16\n" +
- "\x06evolve\x18\x03 \x01(\x05R\x06evolve\"*\n" +
- "\tSkillList\x12\x1d\n" +
- "\x04list\x18\x01 \x03(\v2\t.pb.SkillR\x04list\"i\n" +
- "\x11SkillStudyRequest\x12\x18\n" +
- "\askillID\x18\x01 \x01(\x05R\askillID\x12\x1a\n" +
- "\bheroGUID\x18\x02 \x01(\x03R\bheroGUID\x12\x1e\n" +
- "\n" +
- "skillIndex\x18\x03 \x01(\x05R\n" +
- "skillIndexB\x05Z\x03/pbb\x06proto3"
- var (
- file_skill_proto_rawDescOnce sync.Once
- file_skill_proto_rawDescData []byte
- )
- func file_skill_proto_rawDescGZIP() []byte {
- file_skill_proto_rawDescOnce.Do(func() {
- file_skill_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_skill_proto_rawDesc), len(file_skill_proto_rawDesc)))
- })
- return file_skill_proto_rawDescData
- }
- var file_skill_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_skill_proto_goTypes = []any{
- (*Skill)(nil), // 0: pb.Skill
- (*SkillList)(nil), // 1: pb.SkillList
- (*SkillStudyRequest)(nil), // 2: pb.SkillStudyRequest
- }
- var file_skill_proto_depIdxs = []int32{
- 0, // 0: pb.SkillList.list:type_name -> pb.Skill
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_skill_proto_init() }
- func file_skill_proto_init() {
- if File_skill_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_skill_proto_rawDesc), len(file_skill_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_skill_proto_goTypes,
- DependencyIndexes: file_skill_proto_depIdxs,
- MessageInfos: file_skill_proto_msgTypes,
- }.Build()
- File_skill_proto = out.File
- file_skill_proto_goTypes = nil
- file_skill_proto_depIdxs = nil
- }
|