| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: equip.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 EquipList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*Equip `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *EquipList) Reset() {
- *x = EquipList{}
- mi := &file_equip_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *EquipList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*EquipList) ProtoMessage() {}
- func (x *EquipList) ProtoReflect() protoreflect.Message {
- mi := &file_equip_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 EquipList.ProtoReflect.Descriptor instead.
- func (*EquipList) Descriptor() ([]byte, []int) {
- return file_equip_proto_rawDescGZIP(), []int{0}
- }
- func (x *EquipList) GetList() []*Equip {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 装备
- type Equip struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 装备唯一ID
- EquipGUID int64 `protobuf:"varint,1,opt,name=equipGUID,proto3" json:"equipGUID,omitempty"`
- // 装备配置ID
- EquipID int32 `protobuf:"varint,2,opt,name=equipID,proto3" json:"equipID,omitempty"`
- // 强化等级
- EnhanceLevel int32 `protobuf:"varint,3,opt,name=enhanceLevel,proto3" json:"enhanceLevel,omitempty"`
- // 基础属性
- BaseAttrs *Attrs `protobuf:"bytes,4,opt,name=baseAttrs,proto3" json:"baseAttrs,omitempty"`
- // 额外属性
- ExtraAttrs *Attrs `protobuf:"bytes,5,opt,name=extraAttrs,proto3" json:"extraAttrs,omitempty"`
- // 专属技能(key:技能ID, value:技能等级[0表示未解锁])
- SpecialSkill *I32I32 `protobuf:"bytes,6,opt,name=specialSkill,proto3" json:"specialSkill,omitempty"`
- // 状态 0:未解锁 1:已解锁 2:已上架(锁定不展示)
- State int32 `protobuf:"varint,7,opt,name=state,proto3" json:"state,omitempty"`
- // 穿戴英雄唯一ID
- WearHeroGUID int64 `protobuf:"varint,8,opt,name=wearHeroGUID,proto3" json:"wearHeroGUID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Equip) Reset() {
- *x = Equip{}
- mi := &file_equip_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Equip) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Equip) ProtoMessage() {}
- func (x *Equip) ProtoReflect() protoreflect.Message {
- mi := &file_equip_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 Equip.ProtoReflect.Descriptor instead.
- func (*Equip) Descriptor() ([]byte, []int) {
- return file_equip_proto_rawDescGZIP(), []int{1}
- }
- func (x *Equip) GetEquipGUID() int64 {
- if x != nil {
- return x.EquipGUID
- }
- return 0
- }
- func (x *Equip) GetEquipID() int32 {
- if x != nil {
- return x.EquipID
- }
- return 0
- }
- func (x *Equip) GetEnhanceLevel() int32 {
- if x != nil {
- return x.EnhanceLevel
- }
- return 0
- }
- func (x *Equip) GetBaseAttrs() *Attrs {
- if x != nil {
- return x.BaseAttrs
- }
- return nil
- }
- func (x *Equip) GetExtraAttrs() *Attrs {
- if x != nil {
- return x.ExtraAttrs
- }
- return nil
- }
- func (x *Equip) GetSpecialSkill() *I32I32 {
- if x != nil {
- return x.SpecialSkill
- }
- return nil
- }
- func (x *Equip) GetState() int32 {
- if x != nil {
- return x.State
- }
- return 0
- }
- func (x *Equip) GetWearHeroGUID() int64 {
- if x != nil {
- return x.WearHeroGUID
- }
- return 0
- }
- var File_equip_proto protoreflect.FileDescriptor
- const file_equip_proto_rawDesc = "" +
- "\n" +
- "\vequip.proto\x12\x02pb\x1a\x0fbase_type.proto\"*\n" +
- "\tEquipList\x12\x1d\n" +
- "\x04list\x18\x01 \x03(\v2\t.pb.EquipR\x04list\"\xa1\x02\n" +
- "\x05Equip\x12\x1c\n" +
- "\tequipGUID\x18\x01 \x01(\x03R\tequipGUID\x12\x18\n" +
- "\aequipID\x18\x02 \x01(\x05R\aequipID\x12\"\n" +
- "\fenhanceLevel\x18\x03 \x01(\x05R\fenhanceLevel\x12'\n" +
- "\tbaseAttrs\x18\x04 \x01(\v2\t.pb.AttrsR\tbaseAttrs\x12)\n" +
- "\n" +
- "extraAttrs\x18\x05 \x01(\v2\t.pb.AttrsR\n" +
- "extraAttrs\x12.\n" +
- "\fspecialSkill\x18\x06 \x01(\v2\n" +
- ".pb.I32I32R\fspecialSkill\x12\x14\n" +
- "\x05state\x18\a \x01(\x05R\x05state\x12\"\n" +
- "\fwearHeroGUID\x18\b \x01(\x03R\fwearHeroGUIDB\x05Z\x03/pbb\x06proto3"
- var (
- file_equip_proto_rawDescOnce sync.Once
- file_equip_proto_rawDescData []byte
- )
- func file_equip_proto_rawDescGZIP() []byte {
- file_equip_proto_rawDescOnce.Do(func() {
- file_equip_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_equip_proto_rawDesc), len(file_equip_proto_rawDesc)))
- })
- return file_equip_proto_rawDescData
- }
- var file_equip_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_equip_proto_goTypes = []any{
- (*EquipList)(nil), // 0: pb.EquipList
- (*Equip)(nil), // 1: pb.Equip
- (*Attrs)(nil), // 2: pb.Attrs
- (*I32I32)(nil), // 3: pb.I32I32
- }
- var file_equip_proto_depIdxs = []int32{
- 1, // 0: pb.EquipList.list:type_name -> pb.Equip
- 2, // 1: pb.Equip.baseAttrs:type_name -> pb.Attrs
- 2, // 2: pb.Equip.extraAttrs:type_name -> pb.Attrs
- 3, // 3: pb.Equip.specialSkill:type_name -> pb.I32I32
- 4, // [4:4] is the sub-list for method output_type
- 4, // [4:4] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_equip_proto_init() }
- func file_equip_proto_init() {
- if File_equip_proto != nil {
- return
- }
- file_base_type_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_equip_proto_rawDesc), len(file_equip_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_equip_proto_goTypes,
- DependencyIndexes: file_equip_proto_depIdxs,
- MessageInfos: file_equip_proto_msgTypes,
- }.Build()
- File_equip_proto = out.File
- file_equip_proto_goTypes = nil
- file_equip_proto_depIdxs = nil
- }
|