mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 18:42:26 +08:00
356 lines
14 KiB
Go
356 lines
14 KiB
Go
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
|
|
// Copyright (C) 2022 Sorapointa Team
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.26.0
|
|
// protoc v3.14.0
|
|
// source: ChapterStateNotify.proto
|
|
|
|
package proto
|
|
|
|
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)
|
|
)
|
|
|
|
// CmdId: 405
|
|
// EnetChannelId: 0
|
|
// EnetIsReliable: true
|
|
type ChapterStateNotify struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ChapterState ChapterState `protobuf:"varint,9,opt,name=chapter_state,json=chapterState,proto3,enum=proto.ChapterState" json:"chapter_state,omitempty"`
|
|
NeedPlayerLevel *ChapterStateNotify_NeedPlayerLevel `protobuf:"bytes,10,opt,name=need_player_level,json=needPlayerLevel,proto3" json:"need_player_level,omitempty"`
|
|
NeedBeginTime *ChapterStateNotify_NeedBeginTime `protobuf:"bytes,1,opt,name=need_begin_time,json=needBeginTime,proto3" json:"need_begin_time,omitempty"`
|
|
ChapterId uint32 `protobuf:"varint,2,opt,name=chapter_id,json=chapterId,proto3" json:"chapter_id,omitempty"`
|
|
}
|
|
|
|
func (x *ChapterStateNotify) Reset() {
|
|
*x = ChapterStateNotify{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_ChapterStateNotify_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ChapterStateNotify) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChapterStateNotify) ProtoMessage() {}
|
|
|
|
func (x *ChapterStateNotify) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ChapterStateNotify_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 ChapterStateNotify.ProtoReflect.Descriptor instead.
|
|
func (*ChapterStateNotify) Descriptor() ([]byte, []int) {
|
|
return file_ChapterStateNotify_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ChapterStateNotify) GetChapterState() ChapterState {
|
|
if x != nil {
|
|
return x.ChapterState
|
|
}
|
|
return ChapterState_CHAPTER_STATE_INVALID
|
|
}
|
|
|
|
func (x *ChapterStateNotify) GetNeedPlayerLevel() *ChapterStateNotify_NeedPlayerLevel {
|
|
if x != nil {
|
|
return x.NeedPlayerLevel
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChapterStateNotify) GetNeedBeginTime() *ChapterStateNotify_NeedBeginTime {
|
|
if x != nil {
|
|
return x.NeedBeginTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChapterStateNotify) GetChapterId() uint32 {
|
|
if x != nil {
|
|
return x.ChapterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChapterStateNotify_NeedPlayerLevel struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
IsLimit bool `protobuf:"varint,2,opt,name=is_limit,json=isLimit,proto3" json:"is_limit,omitempty"`
|
|
ConfigNeedPlayerLevel uint32 `protobuf:"varint,11,opt,name=config_need_player_level,json=configNeedPlayerLevel,proto3" json:"config_need_player_level,omitempty"`
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedPlayerLevel) Reset() {
|
|
*x = ChapterStateNotify_NeedPlayerLevel{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_ChapterStateNotify_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedPlayerLevel) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChapterStateNotify_NeedPlayerLevel) ProtoMessage() {}
|
|
|
|
func (x *ChapterStateNotify_NeedPlayerLevel) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ChapterStateNotify_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 ChapterStateNotify_NeedPlayerLevel.ProtoReflect.Descriptor instead.
|
|
func (*ChapterStateNotify_NeedPlayerLevel) Descriptor() ([]byte, []int) {
|
|
return file_ChapterStateNotify_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedPlayerLevel) GetIsLimit() bool {
|
|
if x != nil {
|
|
return x.IsLimit
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedPlayerLevel) GetConfigNeedPlayerLevel() uint32 {
|
|
if x != nil {
|
|
return x.ConfigNeedPlayerLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChapterStateNotify_NeedBeginTime struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ConfigNeedBeginTime uint32 `protobuf:"varint,3,opt,name=config_need_begin_time,json=configNeedBeginTime,proto3" json:"config_need_begin_time,omitempty"`
|
|
IsLimit bool `protobuf:"varint,7,opt,name=is_limit,json=isLimit,proto3" json:"is_limit,omitempty"`
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedBeginTime) Reset() {
|
|
*x = ChapterStateNotify_NeedBeginTime{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_ChapterStateNotify_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedBeginTime) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChapterStateNotify_NeedBeginTime) ProtoMessage() {}
|
|
|
|
func (x *ChapterStateNotify_NeedBeginTime) ProtoReflect() protoreflect.Message {
|
|
mi := &file_ChapterStateNotify_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 ChapterStateNotify_NeedBeginTime.ProtoReflect.Descriptor instead.
|
|
func (*ChapterStateNotify_NeedBeginTime) Descriptor() ([]byte, []int) {
|
|
return file_ChapterStateNotify_proto_rawDescGZIP(), []int{0, 1}
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedBeginTime) GetConfigNeedBeginTime() uint32 {
|
|
if x != nil {
|
|
return x.ConfigNeedBeginTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChapterStateNotify_NeedBeginTime) GetIsLimit() bool {
|
|
if x != nil {
|
|
return x.IsLimit
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_ChapterStateNotify_proto protoreflect.FileDescriptor
|
|
|
|
var file_ChapterStateNotify_proto_rawDesc = []byte{
|
|
0x0a, 0x18, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x1a, 0x12, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x03, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65,
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x12, 0x38, 0x0a, 0x0d,
|
|
0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20,
|
|
0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x61, 0x70,
|
|
0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65,
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x70,
|
|
0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28,
|
|
0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65,
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x4e, 0x65, 0x65,
|
|
0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0f, 0x6e, 0x65,
|
|
0x65, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x4f, 0x0a,
|
|
0x0f, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43,
|
|
0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66,
|
|
0x79, 0x2e, 0x4e, 0x65, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x52,
|
|
0x0d, 0x6e, 0x65, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d,
|
|
0x0a, 0x0a, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x1a, 0x65, 0x0a,
|
|
0x0f, 0x4e, 0x65, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
|
0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x63,
|
|
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x65,
|
|
0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x63,
|
|
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4e, 0x65, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c,
|
|
0x65, 0x76, 0x65, 0x6c, 0x1a, 0x5f, 0x0a, 0x0d, 0x4e, 0x65, 0x65, 0x64, 0x42, 0x65, 0x67, 0x69,
|
|
0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
|
|
0x6e, 0x65, 0x65, 0x64, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4e, 0x65, 0x65,
|
|
0x64, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73,
|
|
0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73,
|
|
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_ChapterStateNotify_proto_rawDescOnce sync.Once
|
|
file_ChapterStateNotify_proto_rawDescData = file_ChapterStateNotify_proto_rawDesc
|
|
)
|
|
|
|
func file_ChapterStateNotify_proto_rawDescGZIP() []byte {
|
|
file_ChapterStateNotify_proto_rawDescOnce.Do(func() {
|
|
file_ChapterStateNotify_proto_rawDescData = protoimpl.X.CompressGZIP(file_ChapterStateNotify_proto_rawDescData)
|
|
})
|
|
return file_ChapterStateNotify_proto_rawDescData
|
|
}
|
|
|
|
var file_ChapterStateNotify_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_ChapterStateNotify_proto_goTypes = []interface{}{
|
|
(*ChapterStateNotify)(nil), // 0: proto.ChapterStateNotify
|
|
(*ChapterStateNotify_NeedPlayerLevel)(nil), // 1: proto.ChapterStateNotify.NeedPlayerLevel
|
|
(*ChapterStateNotify_NeedBeginTime)(nil), // 2: proto.ChapterStateNotify.NeedBeginTime
|
|
(ChapterState)(0), // 3: proto.ChapterState
|
|
}
|
|
var file_ChapterStateNotify_proto_depIdxs = []int32{
|
|
3, // 0: proto.ChapterStateNotify.chapter_state:type_name -> proto.ChapterState
|
|
1, // 1: proto.ChapterStateNotify.need_player_level:type_name -> proto.ChapterStateNotify.NeedPlayerLevel
|
|
2, // 2: proto.ChapterStateNotify.need_begin_time:type_name -> proto.ChapterStateNotify.NeedBeginTime
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_ChapterStateNotify_proto_init() }
|
|
func file_ChapterStateNotify_proto_init() {
|
|
if File_ChapterStateNotify_proto != nil {
|
|
return
|
|
}
|
|
file_ChapterState_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_ChapterStateNotify_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ChapterStateNotify); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_ChapterStateNotify_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ChapterStateNotify_NeedPlayerLevel); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_ChapterStateNotify_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ChapterStateNotify_NeedBeginTime); 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_ChapterStateNotify_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_ChapterStateNotify_proto_goTypes,
|
|
DependencyIndexes: file_ChapterStateNotify_proto_depIdxs,
|
|
MessageInfos: file_ChapterStateNotify_proto_msgTypes,
|
|
}.Build()
|
|
File_ChapterStateNotify_proto = out.File
|
|
file_ChapterStateNotify_proto_rawDesc = nil
|
|
file_ChapterStateNotify_proto_goTypes = nil
|
|
file_ChapterStateNotify_proto_depIdxs = nil
|
|
}
|