716 lines
24 KiB
Go
716 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: battle/battle_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 BattleType int32
|
|
|
|
const (
|
|
BattleType_nil BattleType = 0
|
|
BattleType_pve BattleType = 1
|
|
BattleType_pvp BattleType = 2
|
|
BattleType_pvb BattleType = 3
|
|
)
|
|
|
|
// Enum value maps for BattleType.
|
|
var (
|
|
BattleType_name = map[int32]string{
|
|
0: "nil",
|
|
1: "pve",
|
|
2: "pvp",
|
|
3: "pvb",
|
|
}
|
|
BattleType_value = map[string]int32{
|
|
"nil": 0,
|
|
"pve": 1,
|
|
"pvp": 2,
|
|
"pvb": 3,
|
|
}
|
|
)
|
|
|
|
func (x BattleType) Enum() *BattleType {
|
|
p := new(BattleType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x BattleType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (BattleType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_battle_battle_db_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (BattleType) Type() protoreflect.EnumType {
|
|
return &file_battle_battle_db_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x BattleType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use BattleType.Descriptor instead.
|
|
func (BattleType) EnumDescriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
//玩法类型
|
|
type PlayType int32
|
|
|
|
const (
|
|
PlayType_mainline PlayType = 0 //主线玩法
|
|
PlayType_pagoda PlayType = 1 //爬塔
|
|
PlayType_moonfantasy PlayType = 2 //月之秘境
|
|
)
|
|
|
|
// Enum value maps for PlayType.
|
|
var (
|
|
PlayType_name = map[int32]string{
|
|
0: "mainline",
|
|
1: "pagoda",
|
|
2: "moonfantasy",
|
|
}
|
|
PlayType_value = map[string]int32{
|
|
"mainline": 0,
|
|
"pagoda": 1,
|
|
"moonfantasy": 2,
|
|
}
|
|
)
|
|
|
|
func (x PlayType) Enum() *PlayType {
|
|
p := new(PlayType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PlayType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PlayType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_battle_battle_db_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (PlayType) Type() protoreflect.EnumType {
|
|
return &file_battle_battle_db_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x PlayType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PlayType.Descriptor instead.
|
|
func (PlayType) EnumDescriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
//战斗状态
|
|
type BBattleState int32
|
|
|
|
const (
|
|
BBattleState_in BBattleState = 0
|
|
BBattleState_end BBattleState = 2
|
|
)
|
|
|
|
// Enum value maps for BBattleState.
|
|
var (
|
|
BBattleState_name = map[int32]string{
|
|
0: "in",
|
|
2: "end",
|
|
}
|
|
BBattleState_value = map[string]int32{
|
|
"in": 0,
|
|
"end": 2,
|
|
}
|
|
)
|
|
|
|
func (x BBattleState) Enum() *BBattleState {
|
|
p := new(BBattleState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x BBattleState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (BBattleState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_battle_battle_db_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (BBattleState) Type() protoreflect.EnumType {
|
|
return &file_battle_battle_db_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x BBattleState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use BBattleState.Descriptor instead.
|
|
func (BBattleState) EnumDescriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
//战斗阵型信息
|
|
type DBBattleComp int32
|
|
|
|
const (
|
|
DBBattleComp_draw DBBattleComp = 0 //平局
|
|
DBBattleComp_red DBBattleComp = 1 //红方
|
|
DBBattleComp_bule DBBattleComp = 2 //蓝方
|
|
)
|
|
|
|
// Enum value maps for DBBattleComp.
|
|
var (
|
|
DBBattleComp_name = map[int32]string{
|
|
0: "draw",
|
|
1: "red",
|
|
2: "bule",
|
|
}
|
|
DBBattleComp_value = map[string]int32{
|
|
"draw": 0,
|
|
"red": 1,
|
|
"bule": 2,
|
|
}
|
|
)
|
|
|
|
func (x DBBattleComp) Enum() *DBBattleComp {
|
|
p := new(DBBattleComp)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DBBattleComp) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DBBattleComp) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_battle_battle_db_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (DBBattleComp) Type() protoreflect.EnumType {
|
|
return &file_battle_battle_db_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x DBBattleComp) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DBBattleComp.Descriptor instead.
|
|
func (DBBattleComp) EnumDescriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type BattleRole struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tid int32 `protobuf:"varint,1,opt,name=tid,proto3" json:"tid"` // 临时id
|
|
Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid"` // 玩家英雄数据库id
|
|
Pos int32 `protobuf:"varint,3,opt,name=pos,proto3" json:"pos"` // 站位坐标
|
|
HeroID string `protobuf:"bytes,4,opt,name=heroID,proto3" json:"heroID" bson:"heroID"` //英雄的配置表ID
|
|
Star int32 `protobuf:"varint,5,opt,name=star,proto3" json:"star"` // 英雄星级
|
|
Lv int32 `protobuf:"varint,6,opt,name=lv,proto3" json:"lv"` // 英雄等级
|
|
CaptainSkill int32 `protobuf:"varint,7,opt,name=captainSkill,proto3" json:"captainSkill" bson:"captainSkill"` //队长技能
|
|
MainSuitSkill int32 `protobuf:"varint,8,opt,name=mainSuitSkill,proto3" json:"mainSuitSkill" bson:"mainSuitSkill"` /// 主套装技能
|
|
SubSuitSkill int32 `protobuf:"varint,9,opt,name=subSuitSkill,proto3" json:"subSuitSkill" bson:"subSuitSkill"` /// 副套装技能
|
|
NormalSkill []*SkillData `protobuf:"bytes,10,rep,name=normalSkill,proto3" json:"normalSkill" bson:"normalSkill"` //普通技能
|
|
Property map[string]int32 `protobuf:"bytes,11,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 属性相关
|
|
}
|
|
|
|
func (x *BattleRole) Reset() {
|
|
*x = BattleRole{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_battle_battle_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *BattleRole) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BattleRole) ProtoMessage() {}
|
|
|
|
func (x *BattleRole) ProtoReflect() protoreflect.Message {
|
|
mi := &file_battle_battle_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 BattleRole.ProtoReflect.Descriptor instead.
|
|
func (*BattleRole) Descriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *BattleRole) GetTid() int32 {
|
|
if x != nil {
|
|
return x.Tid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetOid() string {
|
|
if x != nil {
|
|
return x.Oid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BattleRole) GetPos() int32 {
|
|
if x != nil {
|
|
return x.Pos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetHeroID() string {
|
|
if x != nil {
|
|
return x.HeroID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BattleRole) GetStar() int32 {
|
|
if x != nil {
|
|
return x.Star
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetLv() int32 {
|
|
if x != nil {
|
|
return x.Lv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetCaptainSkill() int32 {
|
|
if x != nil {
|
|
return x.CaptainSkill
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetMainSuitSkill() int32 {
|
|
if x != nil {
|
|
return x.MainSuitSkill
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetSubSuitSkill() int32 {
|
|
if x != nil {
|
|
return x.SubSuitSkill
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BattleRole) GetNormalSkill() []*SkillData {
|
|
if x != nil {
|
|
return x.NormalSkill
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *BattleRole) GetProperty() map[string]int32 {
|
|
if x != nil {
|
|
return x.Property
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//战斗阵型信息
|
|
type DBBattleFormt struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Leadpos int32 `protobuf:"varint,1,opt,name=leadpos,proto3" json:"leadpos"` //队长位置
|
|
Team []*BattleRole `protobuf:"bytes,2,rep,name=team,proto3" json:"team"`
|
|
}
|
|
|
|
func (x *DBBattleFormt) Reset() {
|
|
*x = DBBattleFormt{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_battle_battle_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBBattleFormt) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBBattleFormt) ProtoMessage() {}
|
|
|
|
func (x *DBBattleFormt) ProtoReflect() protoreflect.Message {
|
|
mi := &file_battle_battle_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 DBBattleFormt.ProtoReflect.Descriptor instead.
|
|
func (*DBBattleFormt) Descriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBBattleFormt) GetLeadpos() int32 {
|
|
if x != nil {
|
|
return x.Leadpos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBBattleFormt) GetTeam() []*BattleRole {
|
|
if x != nil {
|
|
return x.Team
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//战斗记录
|
|
type DBBattleRecord struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //战斗记录id
|
|
Btype BattleType `protobuf:"varint,2,opt,name=btype,proto3,enum=BattleType" json:"btype"` //战斗类型
|
|
Ptype PlayType `protobuf:"varint,3,opt,name=ptype,proto3,enum=PlayType" json:"ptype"` //玩法类型
|
|
Plevel string `protobuf:"bytes,4,opt,name=plevel,proto3" json:"plevel"` //玩法关卡
|
|
State BBattleState `protobuf:"varint,5,opt,name=state,proto3,enum=BBattleState" json:"state"` //战斗状态
|
|
RedCompId string `protobuf:"bytes,6,opt,name=redCompId,proto3" json:"redCompId"` //红方阵营id
|
|
Redflist []*DBBattleFormt `protobuf:"bytes,7,rep,name=redflist,proto3" json:"redflist"` //红方阵型列表
|
|
BlueCompId string `protobuf:"bytes,8,opt,name=blueCompId,proto3" json:"blueCompId"` //蓝方阵营id
|
|
Buleflist []*DBBattleFormt `protobuf:"bytes,9,rep,name=buleflist,proto3" json:"buleflist"` //红方阵型列表
|
|
Roundresult []DBBattleComp `protobuf:"varint,10,rep,packed,name=roundresult,proto3,enum=DBBattleComp" json:"roundresult"` //战斗场次结果
|
|
Result DBBattleComp `protobuf:"varint,11,opt,name=result,proto3,enum=DBBattleComp" json:"result"` //最终结果
|
|
}
|
|
|
|
func (x *DBBattleRecord) Reset() {
|
|
*x = DBBattleRecord{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_battle_battle_db_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBBattleRecord) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBBattleRecord) ProtoMessage() {}
|
|
|
|
func (x *DBBattleRecord) ProtoReflect() protoreflect.Message {
|
|
mi := &file_battle_battle_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 DBBattleRecord.ProtoReflect.Descriptor instead.
|
|
func (*DBBattleRecord) Descriptor() ([]byte, []int) {
|
|
return file_battle_battle_db_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetBtype() BattleType {
|
|
if x != nil {
|
|
return x.Btype
|
|
}
|
|
return BattleType_nil
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetPtype() PlayType {
|
|
if x != nil {
|
|
return x.Ptype
|
|
}
|
|
return PlayType_mainline
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetPlevel() string {
|
|
if x != nil {
|
|
return x.Plevel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetState() BBattleState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return BBattleState_in
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetRedCompId() string {
|
|
if x != nil {
|
|
return x.RedCompId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetRedflist() []*DBBattleFormt {
|
|
if x != nil {
|
|
return x.Redflist
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetBlueCompId() string {
|
|
if x != nil {
|
|
return x.BlueCompId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetBuleflist() []*DBBattleFormt {
|
|
if x != nil {
|
|
return x.Buleflist
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetRoundresult() []DBBattleComp {
|
|
if x != nil {
|
|
return x.Roundresult
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBBattleRecord) GetResult() DBBattleComp {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return DBBattleComp_draw
|
|
}
|
|
|
|
var File_battle_battle_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_battle_battle_db_proto_rawDesc = []byte{
|
|
0x0a, 0x16, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x5f,
|
|
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f, 0x2f, 0x68,
|
|
0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x03, 0x0a,
|
|
0x0a, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74,
|
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x69, 0x64, 0x12, 0x10, 0x0a,
|
|
0x03, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12,
|
|
0x10, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x6f,
|
|
0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61,
|
|
0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a,
|
|
0x02, 0x6c, 0x76, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x22, 0x0a,
|
|
0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x07, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x53, 0x6b, 0x69, 0x6c,
|
|
0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x75, 0x69, 0x74, 0x53, 0x6b, 0x69,
|
|
0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x75,
|
|
0x69, 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x53, 0x75,
|
|
0x69, 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73,
|
|
0x75, 0x62, 0x53, 0x75, 0x69, 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x2c, 0x0a, 0x0b, 0x6e,
|
|
0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
|
|
0x32, 0x0a, 0x2e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x6e, 0x6f,
|
|
0x72, 0x6d, 0x61, 0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x35, 0x0a, 0x08, 0x70, 0x72, 0x6f,
|
|
0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x42, 0x61,
|
|
0x74, 0x74, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
|
|
0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
|
|
0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72,
|
|
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a,
|
|
0x0d, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x74, 0x12, 0x18,
|
|
0x0a, 0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
0x07, 0x6c, 0x65, 0x61, 0x64, 0x70, 0x6f, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d,
|
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52,
|
|
0x6f, 0x6c, 0x65, 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x91, 0x03, 0x0a, 0x0e, 0x44, 0x42,
|
|
0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02,
|
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x05,
|
|
0x62, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x42, 0x61,
|
|
0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x62, 0x74, 0x79, 0x70, 0x65, 0x12,
|
|
0x1f, 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
|
|
0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65,
|
|
0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x06, 0x70, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x23, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74,
|
|
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c,
|
|
0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a,
|
|
0x09, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x09, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x72,
|
|
0x65, 0x64, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
|
|
0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x74, 0x52, 0x08, 0x72,
|
|
0x65, 0x64, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x6c, 0x75, 0x65, 0x43,
|
|
0x6f, 0x6d, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x6c, 0x75,
|
|
0x65, 0x43, 0x6f, 0x6d, 0x70, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x09, 0x62, 0x75, 0x6c, 0x65, 0x66,
|
|
0x6c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x42,
|
|
0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x74, 0x52, 0x09, 0x62, 0x75, 0x6c, 0x65,
|
|
0x66, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0b, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x72, 0x65,
|
|
0x73, 0x75, 0x6c, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x42,
|
|
0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x6e, 0x64,
|
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
|
|
0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c,
|
|
0x65, 0x43, 0x6f, 0x6d, 0x70, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2a, 0x30, 0x0a,
|
|
0x0a, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x6e,
|
|
0x69, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x65, 0x10, 0x01, 0x12, 0x07, 0x0a,
|
|
0x03, 0x70, 0x76, 0x70, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x62, 0x10, 0x03, 0x2a,
|
|
0x35, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6d,
|
|
0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x70, 0x61, 0x67,
|
|
0x6f, 0x64, 0x61, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x6d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e,
|
|
0x74, 0x61, 0x73, 0x79, 0x10, 0x02, 0x2a, 0x1f, 0x0a, 0x0c, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c,
|
|
0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x07,
|
|
0x0a, 0x03, 0x65, 0x6e, 0x64, 0x10, 0x02, 0x2a, 0x2b, 0x0a, 0x0c, 0x44, 0x42, 0x42, 0x61, 0x74,
|
|
0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x12, 0x08, 0x0a, 0x04, 0x64, 0x72, 0x61, 0x77, 0x10,
|
|
0x00, 0x12, 0x07, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x62, 0x75,
|
|
0x6c, 0x65, 0x10, 0x02, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_battle_battle_db_proto_rawDescOnce sync.Once
|
|
file_battle_battle_db_proto_rawDescData = file_battle_battle_db_proto_rawDesc
|
|
)
|
|
|
|
func file_battle_battle_db_proto_rawDescGZIP() []byte {
|
|
file_battle_battle_db_proto_rawDescOnce.Do(func() {
|
|
file_battle_battle_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_battle_battle_db_proto_rawDescData)
|
|
})
|
|
return file_battle_battle_db_proto_rawDescData
|
|
}
|
|
|
|
var file_battle_battle_db_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
var file_battle_battle_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_battle_battle_db_proto_goTypes = []interface{}{
|
|
(BattleType)(0), // 0: BattleType
|
|
(PlayType)(0), // 1: PlayType
|
|
(BBattleState)(0), // 2: BBattleState
|
|
(DBBattleComp)(0), // 3: DBBattleComp
|
|
(*BattleRole)(nil), // 4: BattleRole
|
|
(*DBBattleFormt)(nil), // 5: DBBattleFormt
|
|
(*DBBattleRecord)(nil), // 6: DBBattleRecord
|
|
nil, // 7: BattleRole.PropertyEntry
|
|
(*SkillData)(nil), // 8: SkillData
|
|
}
|
|
var file_battle_battle_db_proto_depIdxs = []int32{
|
|
8, // 0: BattleRole.normalSkill:type_name -> SkillData
|
|
7, // 1: BattleRole.property:type_name -> BattleRole.PropertyEntry
|
|
4, // 2: DBBattleFormt.team:type_name -> BattleRole
|
|
0, // 3: DBBattleRecord.btype:type_name -> BattleType
|
|
1, // 4: DBBattleRecord.ptype:type_name -> PlayType
|
|
2, // 5: DBBattleRecord.state:type_name -> BBattleState
|
|
5, // 6: DBBattleRecord.redflist:type_name -> DBBattleFormt
|
|
5, // 7: DBBattleRecord.buleflist:type_name -> DBBattleFormt
|
|
3, // 8: DBBattleRecord.roundresult:type_name -> DBBattleComp
|
|
3, // 9: DBBattleRecord.result:type_name -> DBBattleComp
|
|
10, // [10:10] is the sub-list for method output_type
|
|
10, // [10:10] is the sub-list for method input_type
|
|
10, // [10:10] is the sub-list for extension type_name
|
|
10, // [10:10] is the sub-list for extension extendee
|
|
0, // [0:10] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_battle_battle_db_proto_init() }
|
|
func file_battle_battle_db_proto_init() {
|
|
if File_battle_battle_db_proto != nil {
|
|
return
|
|
}
|
|
file_hero_hero_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_battle_battle_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*BattleRole); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_battle_battle_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBBattleFormt); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_battle_battle_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBBattleRecord); 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_battle_battle_db_proto_rawDesc,
|
|
NumEnums: 4,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_battle_battle_db_proto_goTypes,
|
|
DependencyIndexes: file_battle_battle_db_proto_depIdxs,
|
|
EnumInfos: file_battle_battle_db_proto_enumTypes,
|
|
MessageInfos: file_battle_battle_db_proto_msgTypes,
|
|
}.Build()
|
|
File_battle_battle_db_proto = out.File
|
|
file_battle_battle_db_proto_rawDesc = nil
|
|
file_battle_battle_db_proto_goTypes = nil
|
|
file_battle_battle_db_proto_depIdxs = nil
|
|
}
|