374 lines
11 KiB
Go
374 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: entertain/entertain_db.proto
|
|
|
|
package pb
|
|
|
|
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 MapData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data []*GirdeData `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` // 地图数据
|
|
CurSocre int32 `protobuf:"varint,2,opt,name=curSocre,proto3" json:"curSocre"` // 本次地图更新得分
|
|
CurEnergy int32 `protobuf:"varint,3,opt,name=curEnergy,proto3" json:"curEnergy"` // 本次掉落获得的能量
|
|
}
|
|
|
|
func (x *MapData) Reset() {
|
|
*x = MapData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_entertain_entertain_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MapData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MapData) ProtoMessage() {}
|
|
|
|
func (x *MapData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_entertain_entertain_db_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 MapData.ProtoReflect.Descriptor instead.
|
|
func (*MapData) Descriptor() ([]byte, []int) {
|
|
return file_entertain_entertain_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MapData) GetData() []*GirdeData {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MapData) GetCurSocre() int32 {
|
|
if x != nil {
|
|
return x.CurSocre
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MapData) GetCurEnergy() int32 {
|
|
if x != nil {
|
|
return x.CurEnergy
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 消消乐
|
|
type GirdeData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Oid int32 `protobuf:"varint,1,opt,name=oid,proto3" json:"oid"` // 唯一id
|
|
Color int32 `protobuf:"varint,2,opt,name=color,proto3" json:"color"` //
|
|
Cid int32 `protobuf:"varint,3,opt,name=cid,proto3" json:"cid"` // 配置表id
|
|
Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score"` // 对应的积分
|
|
Special int32 `protobuf:"varint,5,opt,name=special,proto3" json:"special"` // 消除特效: 1 消除这一列所有方块 2 消除这一行所有方块
|
|
}
|
|
|
|
func (x *GirdeData) Reset() {
|
|
*x = GirdeData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_entertain_entertain_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GirdeData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GirdeData) ProtoMessage() {}
|
|
|
|
func (x *GirdeData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_entertain_entertain_db_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 GirdeData.ProtoReflect.Descriptor instead.
|
|
func (*GirdeData) Descriptor() ([]byte, []int) {
|
|
return file_entertain_entertain_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GirdeData) GetOid() int32 {
|
|
if x != nil {
|
|
return x.Oid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GirdeData) GetColor() int32 {
|
|
if x != nil {
|
|
return x.Color
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GirdeData) GetCid() int32 {
|
|
if x != nil {
|
|
return x.Cid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GirdeData) GetScore() int32 {
|
|
if x != nil {
|
|
return x.Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GirdeData) GetSpecial() int32 {
|
|
if x != nil {
|
|
return x.Special
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PlayerData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 昵称
|
|
Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score"` // 积分
|
|
Ps int32 `protobuf:"varint,4,opt,name=ps,proto3" json:"ps"` // 体力
|
|
Cardid string `protobuf:"bytes,5,opt,name=cardid,proto3" json:"cardid"` // 出战的英雄卡
|
|
Energy int32 `protobuf:"varint,6,opt,name=energy,proto3" json:"energy"` // 能量进度
|
|
}
|
|
|
|
func (x *PlayerData) Reset() {
|
|
*x = PlayerData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_entertain_entertain_db_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PlayerData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PlayerData) ProtoMessage() {}
|
|
|
|
func (x *PlayerData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_entertain_entertain_db_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 PlayerData.ProtoReflect.Descriptor instead.
|
|
func (*PlayerData) Descriptor() ([]byte, []int) {
|
|
return file_entertain_entertain_db_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PlayerData) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PlayerData) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PlayerData) GetScore() int32 {
|
|
if x != nil {
|
|
return x.Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PlayerData) GetPs() int32 {
|
|
if x != nil {
|
|
return x.Ps
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PlayerData) GetCardid() string {
|
|
if x != nil {
|
|
return x.Cardid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PlayerData) GetEnergy() int32 {
|
|
if x != nil {
|
|
return x.Energy
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_entertain_entertain_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_entertain_entertain_db_proto_rawDesc = []byte{
|
|
0x0a, 0x1c, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, 0x74, 0x65,
|
|
0x72, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63,
|
|
0x0a, 0x07, 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
|
0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x47, 0x69, 0x72, 0x64, 0x65, 0x44,
|
|
0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72,
|
|
0x53, 0x6f, 0x63, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
|
0x53, 0x6f, 0x63, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x75, 0x72, 0x45, 0x6e, 0x65, 0x72,
|
|
0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x75, 0x72, 0x45, 0x6e, 0x65,
|
|
0x72, 0x67, 0x79, 0x22, 0x75, 0x0a, 0x09, 0x47, 0x69, 0x72, 0x64, 0x65, 0x44, 0x61, 0x74, 0x61,
|
|
0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6f,
|
|
0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63,
|
|
0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65,
|
|
0x12, 0x18, 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x07, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x22, 0x88, 0x01, 0x0a, 0x0a, 0x50,
|
|
0x6c, 0x61, 0x79, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
|
0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x02, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x72, 0x64, 0x69, 0x64, 0x18,
|
|
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x72, 0x64, 0x69, 0x64, 0x12, 0x16, 0x0a,
|
|
0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65,
|
|
0x6e, 0x65, 0x72, 0x67, 0x79, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_entertain_entertain_db_proto_rawDescOnce sync.Once
|
|
file_entertain_entertain_db_proto_rawDescData = file_entertain_entertain_db_proto_rawDesc
|
|
)
|
|
|
|
func file_entertain_entertain_db_proto_rawDescGZIP() []byte {
|
|
file_entertain_entertain_db_proto_rawDescOnce.Do(func() {
|
|
file_entertain_entertain_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_entertain_entertain_db_proto_rawDescData)
|
|
})
|
|
return file_entertain_entertain_db_proto_rawDescData
|
|
}
|
|
|
|
var file_entertain_entertain_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_entertain_entertain_db_proto_goTypes = []interface{}{
|
|
(*MapData)(nil), // 0: MapData
|
|
(*GirdeData)(nil), // 1: GirdeData
|
|
(*PlayerData)(nil), // 2: PlayerData
|
|
}
|
|
var file_entertain_entertain_db_proto_depIdxs = []int32{
|
|
1, // 0: MapData.data:type_name -> GirdeData
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_entertain_entertain_db_proto_init() }
|
|
func file_entertain_entertain_db_proto_init() {
|
|
if File_entertain_entertain_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_entertain_entertain_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*MapData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_entertain_entertain_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GirdeData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_entertain_entertain_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PlayerData); 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_entertain_entertain_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_entertain_entertain_db_proto_goTypes,
|
|
DependencyIndexes: file_entertain_entertain_db_proto_depIdxs,
|
|
MessageInfos: file_entertain_entertain_db_proto_msgTypes,
|
|
}.Build()
|
|
File_entertain_entertain_db_proto = out.File
|
|
file_entertain_entertain_db_proto_rawDesc = nil
|
|
file_entertain_entertain_db_proto_goTypes = nil
|
|
file_entertain_entertain_db_proto_depIdxs = nil
|
|
}
|