864 lines
28 KiB
Go
864 lines
28 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.1-devel
|
|
// protoc v3.19.4
|
|
// source: task.proto
|
|
|
|
package task
|
|
|
|
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 OpResultCode int32
|
|
|
|
const (
|
|
OpResultCode_OPRC_Success OpResultCode = 0 //成功
|
|
OpResultCode_OPRC_Error OpResultCode = 1 //失败
|
|
)
|
|
|
|
// Enum value maps for OpResultCode.
|
|
var (
|
|
OpResultCode_name = map[int32]string{
|
|
0: "OPRC_Success",
|
|
1: "OPRC_Error",
|
|
}
|
|
OpResultCode_value = map[string]int32{
|
|
"OPRC_Success": 0,
|
|
"OPRC_Error": 1,
|
|
}
|
|
)
|
|
|
|
func (x OpResultCode) Enum() *OpResultCode {
|
|
p := new(OpResultCode)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x OpResultCode) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (OpResultCode) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_task_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (OpResultCode) Type() protoreflect.EnumType {
|
|
return &file_task_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x OpResultCode) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use OpResultCode.Descriptor instead.
|
|
func (OpResultCode) EnumDescriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// 协议号
|
|
type TaskPacketID int32
|
|
|
|
const (
|
|
TaskPacketID_PACKET_Task_ZERO TaskPacketID = 0 // 弃用消息号
|
|
TaskPacketID_PACKET_CSTaskList TaskPacketID = 2400 // 任务列表
|
|
TaskPacketID_PACKET_SCTaskList TaskPacketID = 2401 // 任务列表
|
|
TaskPacketID_PACKET_CSTaskReward TaskPacketID = 2402 // 领取任务奖励
|
|
TaskPacketID_PACKET_SCTaskReward TaskPacketID = 2403 // 领取任务奖励
|
|
TaskPacketID_PACKET_SCTaskChange TaskPacketID = 2404 // 任务变更通知
|
|
TaskPacketID_PACKET_CSDebugInc TaskPacketID = 2405 // 测试用:直接增加任务计数
|
|
TaskPacketID_PACKET_SCDebugInc TaskPacketID = 2406 // 测试用:直接增加任务计数的返回
|
|
)
|
|
|
|
// Enum value maps for TaskPacketID.
|
|
var (
|
|
TaskPacketID_name = map[int32]string{
|
|
0: "PACKET_Task_ZERO",
|
|
2400: "PACKET_CSTaskList",
|
|
2401: "PACKET_SCTaskList",
|
|
2402: "PACKET_CSTaskReward",
|
|
2403: "PACKET_SCTaskReward",
|
|
2404: "PACKET_SCTaskChange",
|
|
2405: "PACKET_CSDebugInc",
|
|
2406: "PACKET_SCDebugInc",
|
|
}
|
|
TaskPacketID_value = map[string]int32{
|
|
"PACKET_Task_ZERO": 0,
|
|
"PACKET_CSTaskList": 2400,
|
|
"PACKET_SCTaskList": 2401,
|
|
"PACKET_CSTaskReward": 2402,
|
|
"PACKET_SCTaskReward": 2403,
|
|
"PACKET_SCTaskChange": 2404,
|
|
"PACKET_CSDebugInc": 2405,
|
|
"PACKET_SCDebugInc": 2406,
|
|
}
|
|
)
|
|
|
|
func (x TaskPacketID) Enum() *TaskPacketID {
|
|
p := new(TaskPacketID)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x TaskPacketID) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (TaskPacketID) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_task_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (TaskPacketID) Type() protoreflect.EnumType {
|
|
return &file_task_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x TaskPacketID) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use TaskPacketID.Descriptor instead.
|
|
func (TaskPacketID) EnumDescriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
// 任务数据
|
|
type TaskData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // 任务ID
|
|
N int64 `protobuf:"varint,2,opt,name=N,proto3" json:"N,omitempty"` // 当前计数
|
|
TargetN int64 `protobuf:"varint,3,opt,name=TargetN,proto3" json:"TargetN,omitempty"` // 目标计数
|
|
Status int32 `protobuf:"varint,4,opt,name=Status,proto3" json:"Status,omitempty"` // 任务状态 0:进行中 1:已完成 2:奖励已领取
|
|
Reward map[int64]int64 `protobuf:"bytes,5,rep,name=Reward,proto3" json:"Reward,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 奖励
|
|
TaskType int32 `protobuf:"varint,6,opt,name=TaskType,proto3" json:"TaskType,omitempty"` // 任务类型
|
|
}
|
|
|
|
func (x *TaskData) Reset() {
|
|
*x = TaskData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TaskData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TaskData) ProtoMessage() {}
|
|
|
|
func (x *TaskData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_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 TaskData.ProtoReflect.Descriptor instead.
|
|
func (*TaskData) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *TaskData) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TaskData) GetN() int64 {
|
|
if x != nil {
|
|
return x.N
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TaskData) GetTargetN() int64 {
|
|
if x != nil {
|
|
return x.TargetN
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TaskData) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TaskData) GetReward() map[int64]int64 {
|
|
if x != nil {
|
|
return x.Reward
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TaskData) GetTaskType() int32 {
|
|
if x != nil {
|
|
return x.TaskType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 任务列表
|
|
// PACKET_CSTaskList
|
|
type CSTaskList struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型 1:日常任务 2:周活跃任务 3:新手任务 4:邀请任务 5:成就系统
|
|
}
|
|
|
|
func (x *CSTaskList) Reset() {
|
|
*x = CSTaskList{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CSTaskList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CSTaskList) ProtoMessage() {}
|
|
|
|
func (x *CSTaskList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_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 CSTaskList.ProtoReflect.Descriptor instead.
|
|
func (*CSTaskList) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CSTaskList) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// PACKET_SCTaskList
|
|
type SCTaskList struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型 1:日常任务 2:周活跃任务 3:新手任务 4:邀请任务 5:成就系统
|
|
List []*TaskData `protobuf:"bytes,2,rep,name=List,proto3" json:"List,omitempty"` // 任务列表
|
|
}
|
|
|
|
func (x *SCTaskList) Reset() {
|
|
*x = SCTaskList{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SCTaskList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SCTaskList) ProtoMessage() {}
|
|
|
|
func (x *SCTaskList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_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 SCTaskList.ProtoReflect.Descriptor instead.
|
|
func (*SCTaskList) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SCTaskList) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SCTaskList) GetList() []*TaskData {
|
|
if x != nil {
|
|
return x.List
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 领取任务奖励
|
|
// PACKET_CSTaskReward
|
|
type CSTaskReward struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型 1:日常任务 2:周活跃任务 3:新手任务 4:邀请任务 5:成就系统 6:赛季通行证任务
|
|
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` // 任务id; 0 表示一键领取
|
|
}
|
|
|
|
func (x *CSTaskReward) Reset() {
|
|
*x = CSTaskReward{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CSTaskReward) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CSTaskReward) ProtoMessage() {}
|
|
|
|
func (x *CSTaskReward) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_proto_msgTypes[3]
|
|
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 CSTaskReward.ProtoReflect.Descriptor instead.
|
|
func (*CSTaskReward) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CSTaskReward) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CSTaskReward) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// PACKET_SCTaskReward
|
|
type SCTaskReward struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
OpCode OpResultCode `protobuf:"varint,1,opt,name=OpCode,proto3,enum=task.OpResultCode" json:"OpCode,omitempty"` // 操作码
|
|
Tp int32 `protobuf:"varint,2,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型
|
|
Id int32 `protobuf:"varint,3,opt,name=Id,proto3" json:"Id,omitempty"` // 任务id
|
|
Reward map[int64]int64 `protobuf:"bytes,5,rep,name=Reward,proto3" json:"Reward,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 奖励
|
|
}
|
|
|
|
func (x *SCTaskReward) Reset() {
|
|
*x = SCTaskReward{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SCTaskReward) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SCTaskReward) ProtoMessage() {}
|
|
|
|
func (x *SCTaskReward) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_proto_msgTypes[4]
|
|
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 SCTaskReward.ProtoReflect.Descriptor instead.
|
|
func (*SCTaskReward) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *SCTaskReward) GetOpCode() OpResultCode {
|
|
if x != nil {
|
|
return x.OpCode
|
|
}
|
|
return OpResultCode_OPRC_Success
|
|
}
|
|
|
|
func (x *SCTaskReward) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SCTaskReward) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SCTaskReward) GetReward() map[int64]int64 {
|
|
if x != nil {
|
|
return x.Reward
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 任务变更通知
|
|
// PACKET_SCTaskChange
|
|
type SCTaskChange struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型 1:日常任务 2:周活跃任务 3:新手任务 4:邀请任务 5:成就系统
|
|
List []*TaskData `protobuf:"bytes,2,rep,name=List,proto3" json:"List,omitempty"` // 任务列表
|
|
}
|
|
|
|
func (x *SCTaskChange) Reset() {
|
|
*x = SCTaskChange{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SCTaskChange) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SCTaskChange) ProtoMessage() {}
|
|
|
|
func (x *SCTaskChange) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_proto_msgTypes[5]
|
|
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 SCTaskChange.ProtoReflect.Descriptor instead.
|
|
func (*SCTaskChange) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *SCTaskChange) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SCTaskChange) GetList() []*TaskData {
|
|
if x != nil {
|
|
return x.List
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CSTaskDebugInc struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tp int32 `protobuf:"varint,1,opt,name=Tp,proto3" json:"Tp,omitempty"` // 任务类型 1:日常任务 2:周活跃任务 3:新手任务 4:邀请任务 5:成就系统
|
|
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` // 任务id
|
|
AddNum int32 `protobuf:"varint,3,opt,name=AddNum,proto3" json:"AddNum,omitempty"` // 直接增加次数
|
|
}
|
|
|
|
func (x *CSTaskDebugInc) Reset() {
|
|
*x = CSTaskDebugInc{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CSTaskDebugInc) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CSTaskDebugInc) ProtoMessage() {}
|
|
|
|
func (x *CSTaskDebugInc) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_proto_msgTypes[6]
|
|
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 CSTaskDebugInc.ProtoReflect.Descriptor instead.
|
|
func (*CSTaskDebugInc) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CSTaskDebugInc) GetTp() int32 {
|
|
if x != nil {
|
|
return x.Tp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CSTaskDebugInc) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CSTaskDebugInc) GetAddNum() int32 {
|
|
if x != nil {
|
|
return x.AddNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SCTaskDebugInc struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
OpCode OpResultCode `protobuf:"varint,1,opt,name=OpCode,proto3,enum=task.OpResultCode" json:"OpCode,omitempty"` // 操作码
|
|
}
|
|
|
|
func (x *SCTaskDebugInc) Reset() {
|
|
*x = SCTaskDebugInc{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_task_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SCTaskDebugInc) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SCTaskDebugInc) ProtoMessage() {}
|
|
|
|
func (x *SCTaskDebugInc) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_proto_msgTypes[7]
|
|
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 SCTaskDebugInc.ProtoReflect.Descriptor instead.
|
|
func (*SCTaskDebugInc) Descriptor() ([]byte, []int) {
|
|
return file_task_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *SCTaskDebugInc) GetOpCode() OpResultCode {
|
|
if x != nil {
|
|
return x.OpCode
|
|
}
|
|
return OpResultCode_OPRC_Success
|
|
}
|
|
|
|
var File_task_proto protoreflect.FileDescriptor
|
|
|
|
var file_task_proto_rawDesc = []byte{
|
|
0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x61,
|
|
0x73, 0x6b, 0x22, 0xe5, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12,
|
|
0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12,
|
|
0x0c, 0x0a, 0x01, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x4e, 0x12, 0x18, 0x0a,
|
|
0x07, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
|
|
0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
|
|
0x32, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
0x1a, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x2e,
|
|
0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x52, 0x65, 0x77,
|
|
0x61, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18,
|
|
0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x1a,
|
|
0x39, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
|
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1c, 0x0a, 0x0a, 0x43, 0x53,
|
|
0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x22, 0x40, 0x0a, 0x0a, 0x53, 0x43, 0x54, 0x61,
|
|
0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x12, 0x22, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02,
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x61, 0x73, 0x6b,
|
|
0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2e, 0x0a, 0x0c, 0x43, 0x53,
|
|
0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x22, 0xcd, 0x01, 0x0a, 0x0c, 0x53,
|
|
0x43, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x2a, 0x0a, 0x06, 0x4f,
|
|
0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x61,
|
|
0x73, 0x6b, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52,
|
|
0x06, 0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72,
|
|
0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x53,
|
|
0x43, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x65, 0x77, 0x61,
|
|
0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x1a,
|
|
0x39, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
|
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x42, 0x0a, 0x0c, 0x53, 0x43,
|
|
0x54, 0x61, 0x73, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70, 0x12, 0x22, 0x0a, 0x04, 0x4c, 0x69,
|
|
0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x2e,
|
|
0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x48,
|
|
0x0a, 0x0e, 0x43, 0x53, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x63,
|
|
0x12, 0x0e, 0x0a, 0x02, 0x54, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x54, 0x70,
|
|
0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64,
|
|
0x12, 0x16, 0x0a, 0x06, 0x41, 0x64, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
|
|
0x52, 0x06, 0x41, 0x64, 0x64, 0x4e, 0x75, 0x6d, 0x22, 0x3c, 0x0a, 0x0e, 0x53, 0x43, 0x54, 0x61,
|
|
0x73, 0x6b, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x63, 0x12, 0x2a, 0x0a, 0x06, 0x4f, 0x70,
|
|
0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x61, 0x73,
|
|
0x6b, 0x2e, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06,
|
|
0x4f, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x2a, 0x30, 0x0a, 0x0c, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x75,
|
|
0x6c, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x50, 0x52, 0x43, 0x5f, 0x53,
|
|
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x50, 0x52, 0x43,
|
|
0x5f, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x01, 0x2a, 0xd2, 0x01, 0x0a, 0x0c, 0x54, 0x61, 0x73,
|
|
0x6b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x41, 0x43,
|
|
0x4b, 0x45, 0x54, 0x5f, 0x54, 0x61, 0x73, 0x6b, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12,
|
|
0x16, 0x0a, 0x11, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x53, 0x54, 0x61, 0x73, 0x6b,
|
|
0x4c, 0x69, 0x73, 0x74, 0x10, 0xe0, 0x12, 0x12, 0x16, 0x0a, 0x11, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
|
0x54, 0x5f, 0x53, 0x43, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x10, 0xe1, 0x12, 0x12,
|
|
0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x53, 0x54, 0x61, 0x73, 0x6b,
|
|
0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe2, 0x12, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43,
|
|
0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64,
|
|
0x10, 0xe3, 0x12, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43,
|
|
0x54, 0x61, 0x73, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x10, 0xe4, 0x12, 0x12, 0x16, 0x0a,
|
|
0x11, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x53, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49,
|
|
0x6e, 0x63, 0x10, 0xe5, 0x12, 0x12, 0x16, 0x0a, 0x11, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f,
|
|
0x53, 0x43, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x63, 0x10, 0xe6, 0x12, 0x42, 0x24, 0x5a,
|
|
0x22, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
|
|
0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74,
|
|
0x61, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_task_proto_rawDescOnce sync.Once
|
|
file_task_proto_rawDescData = file_task_proto_rawDesc
|
|
)
|
|
|
|
func file_task_proto_rawDescGZIP() []byte {
|
|
file_task_proto_rawDescOnce.Do(func() {
|
|
file_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_task_proto_rawDescData)
|
|
})
|
|
return file_task_proto_rawDescData
|
|
}
|
|
|
|
var file_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_task_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
var file_task_proto_goTypes = []interface{}{
|
|
(OpResultCode)(0), // 0: task.OpResultCode
|
|
(TaskPacketID)(0), // 1: task.TaskPacketID
|
|
(*TaskData)(nil), // 2: task.TaskData
|
|
(*CSTaskList)(nil), // 3: task.CSTaskList
|
|
(*SCTaskList)(nil), // 4: task.SCTaskList
|
|
(*CSTaskReward)(nil), // 5: task.CSTaskReward
|
|
(*SCTaskReward)(nil), // 6: task.SCTaskReward
|
|
(*SCTaskChange)(nil), // 7: task.SCTaskChange
|
|
(*CSTaskDebugInc)(nil), // 8: task.CSTaskDebugInc
|
|
(*SCTaskDebugInc)(nil), // 9: task.SCTaskDebugInc
|
|
nil, // 10: task.TaskData.RewardEntry
|
|
nil, // 11: task.SCTaskReward.RewardEntry
|
|
}
|
|
var file_task_proto_depIdxs = []int32{
|
|
10, // 0: task.TaskData.Reward:type_name -> task.TaskData.RewardEntry
|
|
2, // 1: task.SCTaskList.List:type_name -> task.TaskData
|
|
0, // 2: task.SCTaskReward.OpCode:type_name -> task.OpResultCode
|
|
11, // 3: task.SCTaskReward.Reward:type_name -> task.SCTaskReward.RewardEntry
|
|
2, // 4: task.SCTaskChange.List:type_name -> task.TaskData
|
|
0, // 5: task.SCTaskDebugInc.OpCode:type_name -> task.OpResultCode
|
|
6, // [6:6] is the sub-list for method output_type
|
|
6, // [6:6] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_task_proto_init() }
|
|
func file_task_proto_init() {
|
|
if File_task_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TaskData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CSTaskList); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SCTaskList); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CSTaskReward); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SCTaskReward); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SCTaskChange); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CSTaskDebugInc); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_task_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SCTaskDebugInc); 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_task_proto_rawDesc,
|
|
NumEnums: 2,
|
|
NumMessages: 10,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_task_proto_goTypes,
|
|
DependencyIndexes: file_task_proto_depIdxs,
|
|
EnumInfos: file_task_proto_enumTypes,
|
|
MessageInfos: file_task_proto_msgTypes,
|
|
}.Build()
|
|
File_task_proto = out.File
|
|
file_task_proto_rawDesc = nil
|
|
file_task_proto_goTypes = nil
|
|
file_task_proto_depIdxs = nil
|
|
}
|