mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:02:26 +08:00
310 lines
12 KiB
Go
310 lines
12 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: Quest.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)
|
|
)
|
|
|
|
type Quest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
QuestId uint32 `protobuf:"varint,1,opt,name=quest_id,json=questId,proto3" json:"quest_id,omitempty"`
|
|
State uint32 `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
|
|
StartTime uint32 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
|
IsRandom bool `protobuf:"varint,5,opt,name=is_random,json=isRandom,proto3" json:"is_random,omitempty"`
|
|
ParentQuestId uint32 `protobuf:"varint,6,opt,name=parent_quest_id,json=parentQuestId,proto3" json:"parent_quest_id,omitempty"`
|
|
QuestConfigId uint32 `protobuf:"varint,7,opt,name=quest_config_id,json=questConfigId,proto3" json:"quest_config_id,omitempty"`
|
|
StartGameTime uint32 `protobuf:"varint,8,opt,name=start_game_time,json=startGameTime,proto3" json:"start_game_time,omitempty"`
|
|
AcceptTime uint32 `protobuf:"varint,9,opt,name=accept_time,json=acceptTime,proto3" json:"accept_time,omitempty"`
|
|
LackedNpcList []uint32 `protobuf:"varint,10,rep,packed,name=lacked_npc_list,json=lackedNpcList,proto3" json:"lacked_npc_list,omitempty"`
|
|
FinishProgressList []uint32 `protobuf:"varint,11,rep,packed,name=finish_progress_list,json=finishProgressList,proto3" json:"finish_progress_list,omitempty"`
|
|
FailProgressList []uint32 `protobuf:"varint,12,rep,packed,name=fail_progress_list,json=failProgressList,proto3" json:"fail_progress_list,omitempty"`
|
|
LackedNpcMap map[uint32]uint32 `protobuf:"bytes,13,rep,name=lacked_npc_map,json=lackedNpcMap,proto3" json:"lacked_npc_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
|
LackedPlaceList []uint32 `protobuf:"varint,14,rep,packed,name=lacked_place_list,json=lackedPlaceList,proto3" json:"lacked_place_list,omitempty"`
|
|
LackedPlaceMap map[uint32]uint32 `protobuf:"bytes,15,rep,name=lacked_place_map,json=lackedPlaceMap,proto3" json:"lacked_place_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *Quest) Reset() {
|
|
*x = Quest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_Quest_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Quest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Quest) ProtoMessage() {}
|
|
|
|
func (x *Quest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_Quest_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 Quest.ProtoReflect.Descriptor instead.
|
|
func (*Quest) Descriptor() ([]byte, []int) {
|
|
return file_Quest_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Quest) GetQuestId() uint32 {
|
|
if x != nil {
|
|
return x.QuestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetState() uint32 {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetStartTime() uint32 {
|
|
if x != nil {
|
|
return x.StartTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetIsRandom() bool {
|
|
if x != nil {
|
|
return x.IsRandom
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Quest) GetParentQuestId() uint32 {
|
|
if x != nil {
|
|
return x.ParentQuestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetQuestConfigId() uint32 {
|
|
if x != nil {
|
|
return x.QuestConfigId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetStartGameTime() uint32 {
|
|
if x != nil {
|
|
return x.StartGameTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetAcceptTime() uint32 {
|
|
if x != nil {
|
|
return x.AcceptTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Quest) GetLackedNpcList() []uint32 {
|
|
if x != nil {
|
|
return x.LackedNpcList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Quest) GetFinishProgressList() []uint32 {
|
|
if x != nil {
|
|
return x.FinishProgressList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Quest) GetFailProgressList() []uint32 {
|
|
if x != nil {
|
|
return x.FailProgressList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Quest) GetLackedNpcMap() map[uint32]uint32 {
|
|
if x != nil {
|
|
return x.LackedNpcMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Quest) GetLackedPlaceList() []uint32 {
|
|
if x != nil {
|
|
return x.LackedPlaceList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Quest) GetLackedPlaceMap() map[uint32]uint32 {
|
|
if x != nil {
|
|
return x.LackedPlaceMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_Quest_proto protoreflect.FileDescriptor
|
|
|
|
var file_Quest_proto_rawDesc = []byte{
|
|
0x0a, 0x0b, 0x51, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19,
|
|
0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
|
|
0x52, 0x07, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
|
0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20,
|
|
0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b,
|
|
0x0a, 0x09, 0x69, 0x73, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x08, 0x69, 0x73, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x12, 0x26, 0x0a, 0x0f, 0x70,
|
|
0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06,
|
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73,
|
|
0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e,
|
|
0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x73,
|
|
0x74, 0x61, 0x72, 0x74, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08,
|
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x54,
|
|
0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x74, 0x69,
|
|
0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74,
|
|
0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x6e,
|
|
0x70, 0x63, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x6c,
|
|
0x61, 0x63, 0x6b, 0x65, 0x64, 0x4e, 0x70, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14,
|
|
0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f,
|
|
0x6c, 0x69, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x12, 0x66, 0x69, 0x6e, 0x69,
|
|
0x73, 0x68, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c,
|
|
0x0a, 0x12, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f,
|
|
0x6c, 0x69, 0x73, 0x74, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x10, 0x66, 0x61, 0x69, 0x6c,
|
|
0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x0e,
|
|
0x6c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x6e, 0x70, 0x63, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x0d,
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65,
|
|
0x73, 0x74, 0x2e, 0x4c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x4e, 0x70, 0x63, 0x4d, 0x61, 0x70, 0x45,
|
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x4e, 0x70, 0x63, 0x4d,
|
|
0x61, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61,
|
|
0x63, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0f, 0x6c,
|
|
0x61, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4a,
|
|
0x0a, 0x10, 0x6c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x6d,
|
|
0x61, 0x70, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6c, 0x61,
|
|
0x63, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x6c, 0x61, 0x63, 0x6b,
|
|
0x65, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x61, 0x70, 0x1a, 0x3f, 0x0a, 0x11, 0x4c, 0x61,
|
|
0x63, 0x6b, 0x65, 0x64, 0x4e, 0x70, 0x63, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65,
|
|
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
|
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x4c,
|
|
0x61, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74,
|
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0a,
|
|
0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_Quest_proto_rawDescOnce sync.Once
|
|
file_Quest_proto_rawDescData = file_Quest_proto_rawDesc
|
|
)
|
|
|
|
func file_Quest_proto_rawDescGZIP() []byte {
|
|
file_Quest_proto_rawDescOnce.Do(func() {
|
|
file_Quest_proto_rawDescData = protoimpl.X.CompressGZIP(file_Quest_proto_rawDescData)
|
|
})
|
|
return file_Quest_proto_rawDescData
|
|
}
|
|
|
|
var file_Quest_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_Quest_proto_goTypes = []interface{}{
|
|
(*Quest)(nil), // 0: proto.Quest
|
|
nil, // 1: proto.Quest.LackedNpcMapEntry
|
|
nil, // 2: proto.Quest.LackedPlaceMapEntry
|
|
}
|
|
var file_Quest_proto_depIdxs = []int32{
|
|
1, // 0: proto.Quest.lacked_npc_map:type_name -> proto.Quest.LackedNpcMapEntry
|
|
2, // 1: proto.Quest.lacked_place_map:type_name -> proto.Quest.LackedPlaceMapEntry
|
|
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_Quest_proto_init() }
|
|
func file_Quest_proto_init() {
|
|
if File_Quest_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_Quest_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Quest); 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_Quest_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_Quest_proto_goTypes,
|
|
DependencyIndexes: file_Quest_proto_depIdxs,
|
|
MessageInfos: file_Quest_proto_msgTypes,
|
|
}.Build()
|
|
File_Quest_proto = out.File
|
|
file_Quest_proto_rawDesc = nil
|
|
file_Quest_proto_goTypes = nil
|
|
file_Quest_proto_depIdxs = nil
|
|
}
|