| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: chapter.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 Chapter struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 当前章节ID
- ChapterID int32 `protobuf:"varint,1,opt,name=chapterID,proto3" json:"chapterID,omitempty"`
- // 当前关卡ID
- LevelID int32 `protobuf:"varint,2,opt,name=levelID,proto3" json:"levelID,omitempty"`
- // 已领取章节累计星级奖励列表 key 章节ID T-探险-章节表章节ID value 章节星级奖励信息
- StarRewards map[int32]*ChapterStarReward `protobuf:"bytes,3,rep,name=starRewards,proto3" json:"starRewards,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // 所有章节关卡信息列表
- Levels []*ChapterLevel `protobuf:"bytes,4,rep,name=levels,proto3" json:"levels,omitempty"`
- // 上一次精力恢复时间戳 单位秒
- LastRecoverTime int64 `protobuf:"varint,5,opt,name=lastRecoverTime,proto3" json:"lastRecoverTime,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Chapter) Reset() {
- *x = Chapter{}
- mi := &file_chapter_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Chapter) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Chapter) ProtoMessage() {}
- func (x *Chapter) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_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 Chapter.ProtoReflect.Descriptor instead.
- func (*Chapter) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{0}
- }
- func (x *Chapter) GetChapterID() int32 {
- if x != nil {
- return x.ChapterID
- }
- return 0
- }
- func (x *Chapter) GetLevelID() int32 {
- if x != nil {
- return x.LevelID
- }
- return 0
- }
- func (x *Chapter) GetStarRewards() map[int32]*ChapterStarReward {
- if x != nil {
- return x.StarRewards
- }
- return nil
- }
- func (x *Chapter) GetLevels() []*ChapterLevel {
- if x != nil {
- return x.Levels
- }
- return nil
- }
- func (x *Chapter) GetLastRecoverTime() int64 {
- if x != nil {
- return x.LastRecoverTime
- }
- return 0
- }
- // 探险关卡列表
- type UpdateChapterLevel struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 当前章节ID
- ChapterID int32 `protobuf:"varint,1,opt,name=chapterID,proto3" json:"chapterID,omitempty"`
- // 当前关卡ID
- LevelID int32 `protobuf:"varint,2,opt,name=levelID,proto3" json:"levelID,omitempty"`
- // 更新关卡列表
- Levels []*ChapterLevel `protobuf:"bytes,3,rep,name=levels,proto3" json:"levels,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *UpdateChapterLevel) Reset() {
- *x = UpdateChapterLevel{}
- mi := &file_chapter_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *UpdateChapterLevel) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateChapterLevel) ProtoMessage() {}
- func (x *UpdateChapterLevel) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_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 UpdateChapterLevel.ProtoReflect.Descriptor instead.
- func (*UpdateChapterLevel) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{1}
- }
- func (x *UpdateChapterLevel) GetChapterID() int32 {
- if x != nil {
- return x.ChapterID
- }
- return 0
- }
- func (x *UpdateChapterLevel) GetLevelID() int32 {
- if x != nil {
- return x.LevelID
- }
- return 0
- }
- func (x *UpdateChapterLevel) GetLevels() []*ChapterLevel {
- if x != nil {
- return x.Levels
- }
- return nil
- }
- // 关卡信息
- type ChapterLevel struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 关卡ID T-探险-关卡表关卡ID
- LevelID int32 `protobuf:"varint,1,opt,name=levelID,proto3" json:"levelID,omitempty"`
- // 关卡当天已挑战次数
- DayChallengeCount int32 `protobuf:"varint,2,opt,name=dayChallengeCount,proto3" json:"dayChallengeCount,omitempty"`
- // 关卡当天已购买挑战次数
- DayBuyChallengeCount int32 `protobuf:"varint,3,opt,name=dayBuyChallengeCount,proto3" json:"dayBuyChallengeCount,omitempty"`
- // 当前关卡星级完成列表 0-未完成 1-已完成 对应关卡表的星级条件
- Stars []int32 `protobuf:"varint,4,rep,packed,name=stars,proto3" json:"stars,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChapterLevel) Reset() {
- *x = ChapterLevel{}
- mi := &file_chapter_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChapterLevel) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChapterLevel) ProtoMessage() {}
- func (x *ChapterLevel) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_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 ChapterLevel.ProtoReflect.Descriptor instead.
- func (*ChapterLevel) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{2}
- }
- func (x *ChapterLevel) GetLevelID() int32 {
- if x != nil {
- return x.LevelID
- }
- return 0
- }
- func (x *ChapterLevel) GetDayChallengeCount() int32 {
- if x != nil {
- return x.DayChallengeCount
- }
- return 0
- }
- func (x *ChapterLevel) GetDayBuyChallengeCount() int32 {
- if x != nil {
- return x.DayBuyChallengeCount
- }
- return 0
- }
- func (x *ChapterLevel) GetStars() []int32 {
- if x != nil {
- return x.Stars
- }
- return nil
- }
- // 星级奖励
- type ChapterStarReward struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 已领取星级奖励ID列表 T-探险-奖励表所需星级
- Rewards []int32 `protobuf:"varint,1,rep,packed,name=rewards,proto3" json:"rewards,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChapterStarReward) Reset() {
- *x = ChapterStarReward{}
- mi := &file_chapter_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChapterStarReward) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChapterStarReward) ProtoMessage() {}
- func (x *ChapterStarReward) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_proto_msgTypes[3]
- 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 ChapterStarReward.ProtoReflect.Descriptor instead.
- func (*ChapterStarReward) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{3}
- }
- func (x *ChapterStarReward) GetRewards() []int32 {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- // 扫荡奖励
- type ChapterLevelSweepReward struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 扫荡奖励列表
- Rewards []*AssetList `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChapterLevelSweepReward) Reset() {
- *x = ChapterLevelSweepReward{}
- mi := &file_chapter_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChapterLevelSweepReward) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChapterLevelSweepReward) ProtoMessage() {}
- func (x *ChapterLevelSweepReward) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_proto_msgTypes[4]
- 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 ChapterLevelSweepReward.ProtoReflect.Descriptor instead.
- func (*ChapterLevelSweepReward) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{4}
- }
- func (x *ChapterLevelSweepReward) GetRewards() []*AssetList {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- // 探险验证返回
- type ChapterVerifyResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 0失败 1胜出
- Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
- // 挑战胜出的关卡信息
- Challenge *ChapterLevelChallenge `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChapterVerifyResponse) Reset() {
- *x = ChapterVerifyResponse{}
- mi := &file_chapter_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChapterVerifyResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChapterVerifyResponse) ProtoMessage() {}
- func (x *ChapterVerifyResponse) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_proto_msgTypes[5]
- 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 ChapterVerifyResponse.ProtoReflect.Descriptor instead.
- func (*ChapterVerifyResponse) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{5}
- }
- func (x *ChapterVerifyResponse) GetResult() bool {
- if x != nil {
- return x.Result
- }
- return false
- }
- func (x *ChapterVerifyResponse) GetChallenge() *ChapterLevelChallenge {
- if x != nil {
- return x.Challenge
- }
- return nil
- }
- // 挑战关卡信息
- type ChapterLevelChallenge struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 当前章节ID
- ChapterID int32 `protobuf:"varint,1,opt,name=chapterID,proto3" json:"chapterID,omitempty"`
- // 当前关卡ID
- LevelID int32 `protobuf:"varint,2,opt,name=levelID,proto3" json:"levelID,omitempty"`
- // 挑战关卡信息
- Level *ChapterLevel `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
- // 获得奖励
- Rewards *AssetList `protobuf:"bytes,4,opt,name=rewards,proto3" json:"rewards,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ChapterLevelChallenge) Reset() {
- *x = ChapterLevelChallenge{}
- mi := &file_chapter_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ChapterLevelChallenge) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChapterLevelChallenge) ProtoMessage() {}
- func (x *ChapterLevelChallenge) ProtoReflect() protoreflect.Message {
- mi := &file_chapter_proto_msgTypes[6]
- 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 ChapterLevelChallenge.ProtoReflect.Descriptor instead.
- func (*ChapterLevelChallenge) Descriptor() ([]byte, []int) {
- return file_chapter_proto_rawDescGZIP(), []int{6}
- }
- func (x *ChapterLevelChallenge) GetChapterID() int32 {
- if x != nil {
- return x.ChapterID
- }
- return 0
- }
- func (x *ChapterLevelChallenge) GetLevelID() int32 {
- if x != nil {
- return x.LevelID
- }
- return 0
- }
- func (x *ChapterLevelChallenge) GetLevel() *ChapterLevel {
- if x != nil {
- return x.Level
- }
- return nil
- }
- func (x *ChapterLevelChallenge) GetRewards() *AssetList {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- var File_chapter_proto protoreflect.FileDescriptor
- const file_chapter_proto_rawDesc = "" +
- "\n" +
- "\rchapter.proto\x12\x02pb\x1a\x0fbase_type.proto\"\xac\x02\n" +
- "\aChapter\x12\x1c\n" +
- "\tchapterID\x18\x01 \x01(\x05R\tchapterID\x12\x18\n" +
- "\alevelID\x18\x02 \x01(\x05R\alevelID\x12>\n" +
- "\vstarRewards\x18\x03 \x03(\v2\x1c.pb.Chapter.StarRewardsEntryR\vstarRewards\x12(\n" +
- "\x06levels\x18\x04 \x03(\v2\x10.pb.ChapterLevelR\x06levels\x12(\n" +
- "\x0flastRecoverTime\x18\x05 \x01(\x03R\x0flastRecoverTime\x1aU\n" +
- "\x10StarRewardsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x05R\x03key\x12+\n" +
- "\x05value\x18\x02 \x01(\v2\x15.pb.ChapterStarRewardR\x05value:\x028\x01\"v\n" +
- "\x12UpdateChapterLevel\x12\x1c\n" +
- "\tchapterID\x18\x01 \x01(\x05R\tchapterID\x12\x18\n" +
- "\alevelID\x18\x02 \x01(\x05R\alevelID\x12(\n" +
- "\x06levels\x18\x03 \x03(\v2\x10.pb.ChapterLevelR\x06levels\"\xa0\x01\n" +
- "\fChapterLevel\x12\x18\n" +
- "\alevelID\x18\x01 \x01(\x05R\alevelID\x12,\n" +
- "\x11dayChallengeCount\x18\x02 \x01(\x05R\x11dayChallengeCount\x122\n" +
- "\x14dayBuyChallengeCount\x18\x03 \x01(\x05R\x14dayBuyChallengeCount\x12\x14\n" +
- "\x05stars\x18\x04 \x03(\x05R\x05stars\"-\n" +
- "\x11ChapterStarReward\x12\x18\n" +
- "\arewards\x18\x01 \x03(\x05R\arewards\"B\n" +
- "\x17ChapterLevelSweepReward\x12'\n" +
- "\arewards\x18\x01 \x03(\v2\r.pb.AssetListR\arewards\"h\n" +
- "\x15ChapterVerifyResponse\x12\x16\n" +
- "\x06result\x18\x01 \x01(\bR\x06result\x127\n" +
- "\tchallenge\x18\x02 \x01(\v2\x19.pb.ChapterLevelChallengeR\tchallenge\"\xa0\x01\n" +
- "\x15ChapterLevelChallenge\x12\x1c\n" +
- "\tchapterID\x18\x01 \x01(\x05R\tchapterID\x12\x18\n" +
- "\alevelID\x18\x02 \x01(\x05R\alevelID\x12&\n" +
- "\x05level\x18\x03 \x01(\v2\x10.pb.ChapterLevelR\x05level\x12'\n" +
- "\arewards\x18\x04 \x01(\v2\r.pb.AssetListR\arewardsB\x05Z\x03/pbb\x06proto3"
- var (
- file_chapter_proto_rawDescOnce sync.Once
- file_chapter_proto_rawDescData []byte
- )
- func file_chapter_proto_rawDescGZIP() []byte {
- file_chapter_proto_rawDescOnce.Do(func() {
- file_chapter_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_chapter_proto_rawDesc), len(file_chapter_proto_rawDesc)))
- })
- return file_chapter_proto_rawDescData
- }
- var file_chapter_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
- var file_chapter_proto_goTypes = []any{
- (*Chapter)(nil), // 0: pb.Chapter
- (*UpdateChapterLevel)(nil), // 1: pb.UpdateChapterLevel
- (*ChapterLevel)(nil), // 2: pb.ChapterLevel
- (*ChapterStarReward)(nil), // 3: pb.ChapterStarReward
- (*ChapterLevelSweepReward)(nil), // 4: pb.ChapterLevelSweepReward
- (*ChapterVerifyResponse)(nil), // 5: pb.ChapterVerifyResponse
- (*ChapterLevelChallenge)(nil), // 6: pb.ChapterLevelChallenge
- nil, // 7: pb.Chapter.StarRewardsEntry
- (*AssetList)(nil), // 8: pb.AssetList
- }
- var file_chapter_proto_depIdxs = []int32{
- 7, // 0: pb.Chapter.starRewards:type_name -> pb.Chapter.StarRewardsEntry
- 2, // 1: pb.Chapter.levels:type_name -> pb.ChapterLevel
- 2, // 2: pb.UpdateChapterLevel.levels:type_name -> pb.ChapterLevel
- 8, // 3: pb.ChapterLevelSweepReward.rewards:type_name -> pb.AssetList
- 6, // 4: pb.ChapterVerifyResponse.challenge:type_name -> pb.ChapterLevelChallenge
- 2, // 5: pb.ChapterLevelChallenge.level:type_name -> pb.ChapterLevel
- 8, // 6: pb.ChapterLevelChallenge.rewards:type_name -> pb.AssetList
- 3, // 7: pb.Chapter.StarRewardsEntry.value:type_name -> pb.ChapterStarReward
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
- }
- func init() { file_chapter_proto_init() }
- func file_chapter_proto_init() {
- if File_chapter_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_chapter_proto_rawDesc), len(file_chapter_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_chapter_proto_goTypes,
- DependencyIndexes: file_chapter_proto_depIdxs,
- MessageInfos: file_chapter_proto_msgTypes,
- }.Build()
- File_chapter_proto = out.File
- file_chapter_proto_goTypes = nil
- file_chapter_proto_depIdxs = nil
- }
|