| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: season.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 SeasonQuestInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // key:霸业ID, value:霸业任务数据
- Quests map[int32]*SeasonQuest `protobuf:"bytes,1,rep,name=quests,proto3" json:"quests,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // 当前霸业ID
- CurQuestID int32 `protobuf:"varint,2,opt,name=curQuestID,proto3" json:"curQuestID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SeasonQuestInfo) Reset() {
- *x = SeasonQuestInfo{}
- mi := &file_season_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SeasonQuestInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SeasonQuestInfo) ProtoMessage() {}
- func (x *SeasonQuestInfo) ProtoReflect() protoreflect.Message {
- mi := &file_season_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 SeasonQuestInfo.ProtoReflect.Descriptor instead.
- func (*SeasonQuestInfo) Descriptor() ([]byte, []int) {
- return file_season_proto_rawDescGZIP(), []int{0}
- }
- func (x *SeasonQuestInfo) GetQuests() map[int32]*SeasonQuest {
- if x != nil {
- return x.Quests
- }
- return nil
- }
- func (x *SeasonQuestInfo) GetCurQuestID() int32 {
- if x != nil {
- return x.CurQuestID
- }
- return 0
- }
- // 霸业任务
- type SeasonQuest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 霸业ID
- QuestID int32 `protobuf:"varint,1,opt,name=questID,proto3" json:"questID,omitempty"`
- // 开始时间 (毫秒)
- StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
- // 进度
- Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"`
- // 目标进度
- TargetProgress int32 `protobuf:"varint,4,opt,name=targetProgress,proto3" json:"targetProgress,omitempty"`
- // 结束时间 (毫秒)
- EndTime int64 `protobuf:"varint,5,opt,name=endTime,proto3" json:"endTime,omitempty"`
- // 是否已领取奖励
- IsRewarded bool `protobuf:"varint,6,opt,name=isRewarded,proto3" json:"isRewarded,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SeasonQuest) Reset() {
- *x = SeasonQuest{}
- mi := &file_season_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SeasonQuest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SeasonQuest) ProtoMessage() {}
- func (x *SeasonQuest) ProtoReflect() protoreflect.Message {
- mi := &file_season_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 SeasonQuest.ProtoReflect.Descriptor instead.
- func (*SeasonQuest) Descriptor() ([]byte, []int) {
- return file_season_proto_rawDescGZIP(), []int{1}
- }
- func (x *SeasonQuest) GetQuestID() int32 {
- if x != nil {
- return x.QuestID
- }
- return 0
- }
- func (x *SeasonQuest) GetStartTime() int64 {
- if x != nil {
- return x.StartTime
- }
- return 0
- }
- func (x *SeasonQuest) GetProgress() int32 {
- if x != nil {
- return x.Progress
- }
- return 0
- }
- func (x *SeasonQuest) GetTargetProgress() int32 {
- if x != nil {
- return x.TargetProgress
- }
- return 0
- }
- func (x *SeasonQuest) GetEndTime() int64 {
- if x != nil {
- return x.EndTime
- }
- return 0
- }
- func (x *SeasonQuest) GetIsRewarded() bool {
- if x != nil {
- return x.IsRewarded
- }
- return false
- }
- var File_season_proto protoreflect.FileDescriptor
- const file_season_proto_rawDesc = "" +
- "\n" +
- "\fseason.proto\x12\x02pb\"\xb6\x01\n" +
- "\x0fSeasonQuestInfo\x127\n" +
- "\x06quests\x18\x01 \x03(\v2\x1f.pb.SeasonQuestInfo.QuestsEntryR\x06quests\x12\x1e\n" +
- "\n" +
- "curQuestID\x18\x02 \x01(\x05R\n" +
- "curQuestID\x1aJ\n" +
- "\vQuestsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x05R\x03key\x12%\n" +
- "\x05value\x18\x02 \x01(\v2\x0f.pb.SeasonQuestR\x05value:\x028\x01\"\xc3\x01\n" +
- "\vSeasonQuest\x12\x18\n" +
- "\aquestID\x18\x01 \x01(\x05R\aquestID\x12\x1c\n" +
- "\tstartTime\x18\x02 \x01(\x03R\tstartTime\x12\x1a\n" +
- "\bprogress\x18\x03 \x01(\x05R\bprogress\x12&\n" +
- "\x0etargetProgress\x18\x04 \x01(\x05R\x0etargetProgress\x12\x18\n" +
- "\aendTime\x18\x05 \x01(\x03R\aendTime\x12\x1e\n" +
- "\n" +
- "isRewarded\x18\x06 \x01(\bR\n" +
- "isRewardedB\x05Z\x03/pbb\x06proto3"
- var (
- file_season_proto_rawDescOnce sync.Once
- file_season_proto_rawDescData []byte
- )
- func file_season_proto_rawDescGZIP() []byte {
- file_season_proto_rawDescOnce.Do(func() {
- file_season_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_season_proto_rawDesc), len(file_season_proto_rawDesc)))
- })
- return file_season_proto_rawDescData
- }
- var file_season_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_season_proto_goTypes = []any{
- (*SeasonQuestInfo)(nil), // 0: pb.SeasonQuestInfo
- (*SeasonQuest)(nil), // 1: pb.SeasonQuest
- nil, // 2: pb.SeasonQuestInfo.QuestsEntry
- }
- var file_season_proto_depIdxs = []int32{
- 2, // 0: pb.SeasonQuestInfo.quests:type_name -> pb.SeasonQuestInfo.QuestsEntry
- 1, // 1: pb.SeasonQuestInfo.QuestsEntry.value:type_name -> pb.SeasonQuest
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_season_proto_init() }
- func file_season_proto_init() {
- if File_season_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_season_proto_rawDesc), len(file_season_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_season_proto_goTypes,
- DependencyIndexes: file_season_proto_depIdxs,
- MessageInfos: file_season_proto_msgTypes,
- }.Build()
- File_season_proto = out.File
- file_season_proto_goTypes = nil
- file_season_proto_depIdxs = nil
- }
|