Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into liwei
This commit is contained in:
commit
f030bc6a04
2
pb.bat
2
pb.bat
@ -14,5 +14,5 @@ protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\friend\*.p
|
||||
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\pack\*.proto
|
||||
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\mail\*.proto
|
||||
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\equipment\*.proto
|
||||
|
||||
protoc --proto_path=%SRC% --go_out=%TAR% --go_opt=paths=import %SRC%\hero\*.proto
|
||||
pause
|
234
pb/equip_db.pb.go
Normal file
234
pb/equip_db.pb.go
Normal file
@ -0,0 +1,234 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: equip_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 DB_EquipData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||
EquipID int32 `protobuf:"varint,3,opt,name=equipID,proto3" json:"equipID"` // 装备的配置表ID
|
||||
Star int32 `protobuf:"varint,4,opt,name=star,proto3" json:"star"` // 装备星级
|
||||
Quality int32 `protobuf:"varint,5,opt,name=quality,proto3" json:"quality"` // 装备品质
|
||||
Lv int32 `protobuf:"varint,6,opt,name=lv,proto3" json:"lv"` // 装备等级
|
||||
AddProperty map[int32]int32 `protobuf:"bytes,7,rep,name=addProperty,proto3" json:"addProperty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 装备附加属性
|
||||
Baodi int32 `protobuf:"varint,8,opt,name=baodi,proto3" json:"baodi"` // 保底次数
|
||||
Advance int32 `protobuf:"varint,9,opt,name=advance,proto3" json:"advance"` // 强化次数
|
||||
FailCount int32 `protobuf:"varint,10,opt,name=failCount,proto3" json:"failCount"` // 连续强化失败次数
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) Reset() {
|
||||
*x = DB_EquipData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_equip_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DB_EquipData) ProtoMessage() {}
|
||||
|
||||
func (x *DB_EquipData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_equip_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 DB_EquipData.ProtoReflect.Descriptor instead.
|
||||
func (*DB_EquipData) Descriptor() ([]byte, []int) {
|
||||
return file_equip_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetEquipID() int32 {
|
||||
if x != nil {
|
||||
return x.EquipID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetStar() int32 {
|
||||
if x != nil {
|
||||
return x.Star
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetQuality() int32 {
|
||||
if x != nil {
|
||||
return x.Quality
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetLv() int32 {
|
||||
if x != nil {
|
||||
return x.Lv
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetAddProperty() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.AddProperty
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetBaodi() int32 {
|
||||
if x != nil {
|
||||
return x.Baodi
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetAdvance() int32 {
|
||||
if x != nil {
|
||||
return x.Advance
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_EquipData) GetFailCount() int32 {
|
||||
if x != nil {
|
||||
return x.FailCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_equip_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_equip_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x65, 0x71, 0x75, 0x69, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x22, 0xd8, 0x02, 0x0a, 0x0c, 0x44, 0x42, 0x5f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x44, 0x61, 0x74,
|
||||
0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
||||
0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||
0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61,
|
||||
0x72, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x07, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
|
||||
0x76, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x40, 0x0a, 0x0b, 0x61,
|
||||
0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x1e, 0x2e, 0x44, 0x42, 0x5f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x44, 0x61, 0x74, 0x61, 0x2e,
|
||||
0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x52, 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x62, 0x61, 0x6f, 0x64, 0x69, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x61,
|
||||
0x6f, 0x64, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x09,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a,
|
||||
0x09, 0x66, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x09, 0x66, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x3e, 0x0a, 0x10, 0x41,
|
||||
0x64, 0x64, 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, 0x05, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_equip_db_proto_rawDescOnce sync.Once
|
||||
file_equip_db_proto_rawDescData = file_equip_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_equip_db_proto_rawDescGZIP() []byte {
|
||||
file_equip_db_proto_rawDescOnce.Do(func() {
|
||||
file_equip_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_equip_db_proto_rawDescData)
|
||||
})
|
||||
return file_equip_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_equip_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_equip_db_proto_goTypes = []interface{}{
|
||||
(*DB_EquipData)(nil), // 0: DB_EquipData
|
||||
nil, // 1: DB_EquipData.AddPropertyEntry
|
||||
}
|
||||
var file_equip_db_proto_depIdxs = []int32{
|
||||
1, // 0: DB_EquipData.addProperty:type_name -> DB_EquipData.AddPropertyEntry
|
||||
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_equip_db_proto_init() }
|
||||
func file_equip_db_proto_init() {
|
||||
if File_equip_db_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_equip_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DB_EquipData); 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_equip_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_equip_db_proto_goTypes,
|
||||
DependencyIndexes: file_equip_db_proto_depIdxs,
|
||||
MessageInfos: file_equip_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_equip_db_proto = out.File
|
||||
file_equip_db_proto_rawDesc = nil
|
||||
file_equip_db_proto_goTypes = nil
|
||||
file_equip_db_proto_depIdxs = nil
|
||||
}
|
493
pb/hero_db.pb.go
Normal file
493
pb/hero_db.pb.go
Normal file
@ -0,0 +1,493 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: hero/hero_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 PropertyType int32
|
||||
|
||||
const (
|
||||
PropertyType_Hp PropertyType = 0 //血量
|
||||
PropertyType_Atk PropertyType = 1 //攻击
|
||||
PropertyType_Def PropertyType = 2 //防御
|
||||
PropertyType_Speed PropertyType = 3 //速度
|
||||
PropertyType_Crit PropertyType = 4 //暴击
|
||||
)
|
||||
|
||||
// Enum value maps for PropertyType.
|
||||
var (
|
||||
PropertyType_name = map[int32]string{
|
||||
0: "Hp",
|
||||
1: "Atk",
|
||||
2: "Def",
|
||||
3: "Speed",
|
||||
4: "Crit",
|
||||
}
|
||||
PropertyType_value = map[string]int32{
|
||||
"Hp": 0,
|
||||
"Atk": 1,
|
||||
"Def": 2,
|
||||
"Speed": 3,
|
||||
"Crit": 4,
|
||||
}
|
||||
)
|
||||
|
||||
func (x PropertyType) Enum() *PropertyType {
|
||||
p := new(PropertyType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x PropertyType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (PropertyType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_hero_hero_db_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (PropertyType) Type() protoreflect.EnumType {
|
||||
return &file_hero_hero_db_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x PropertyType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PropertyType.Descriptor instead.
|
||||
func (PropertyType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_hero_hero_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type SkillData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
SkillID int32 `protobuf:"varint,1,opt,name=skillID,proto3" json:"skillID"`
|
||||
SkillLv int32 `protobuf:"varint,2,opt,name=skillLv,proto3" json:"skillLv"`
|
||||
}
|
||||
|
||||
func (x *SkillData) Reset() {
|
||||
*x = SkillData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_hero_hero_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SkillData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SkillData) ProtoMessage() {}
|
||||
|
||||
func (x *SkillData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_hero_hero_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 SkillData.ProtoReflect.Descriptor instead.
|
||||
func (*SkillData) Descriptor() ([]byte, []int) {
|
||||
return file_hero_hero_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SkillData) GetSkillID() int32 {
|
||||
if x != nil {
|
||||
return x.SkillID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SkillData) GetSkillLv() int32 {
|
||||
if x != nil {
|
||||
return x.SkillLv
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DB_HeroData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||
HeroID int32 `protobuf:"varint,3,opt,name=heroID,proto3" json:"heroID"` // 英雄的配置表ID
|
||||
Star int32 `protobuf:"varint,4,opt,name=star,proto3" json:"star"` // 英雄星级
|
||||
Lv int32 `protobuf:"varint,5,opt,name=lv,proto3" json:"lv"` // 英雄等级
|
||||
Exp int32 `protobuf:"varint,6,opt,name=exp,proto3" json:"exp"` // 英雄经验
|
||||
JuexingLv int32 `protobuf:"varint,7,opt,name=juexingLv,proto3" json:"juexingLv"` // 觉醒等级
|
||||
CaptainSkill int32 `protobuf:"varint,8,opt,name=captainSkill,proto3" json:"captainSkill"` // 队长技能
|
||||
NormalSkill []*SkillData `protobuf:"bytes,9,rep,name=normalSkill,proto3" json:"normalSkill"` // 普通技能
|
||||
Property map[int32]int32 `protobuf:"bytes,10,rep,name=property,proto3" json:"property" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 属性相关
|
||||
AddProperty map[int32]int32 `protobuf:"bytes,11,rep,name=addProperty,proto3" json:"addProperty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 附加属性相关
|
||||
Formation int32 `protobuf:"varint,12,opt,name=formation,proto3" json:"formation"` // 阵型类型
|
||||
CardType int32 `protobuf:"varint,13,opt,name=cardType,proto3" json:"cardType"` // 卡片类型(升星卡、经验卡、技能升级卡)
|
||||
CurSkin int32 `protobuf:"varint,14,opt,name=curSkin,proto3" json:"curSkin"` // 当前装备的皮肤ID
|
||||
Skins []int32 `protobuf:"varint,15,rep,packed,name=skins,proto3" json:"skins"` // 所有皮肤ID
|
||||
Block bool `protobuf:"varint,16,opt,name=block,proto3" json:"block"` // 锁定
|
||||
EquipID []string `protobuf:"bytes,17,rep,name=equipID,proto3" json:"equipID"` // 装备 objID
|
||||
ResonateNum int32 `protobuf:"varint,18,opt,name=resonateNum,proto3" json:"resonateNum"` // 共鸣次数
|
||||
DistributionResonate int32 `protobuf:"varint,19,opt,name=distributionResonate,proto3" json:"distributionResonate"` // 分配的共鸣能量
|
||||
Energy map[int32]int32 `protobuf:"bytes,20,rep,name=energy,proto3" json:"energy" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 能量分配到哪里
|
||||
Count int32 `protobuf:"varint,21,opt,name=count,proto3" json:"count"` // 数量
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) Reset() {
|
||||
*x = DB_HeroData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_hero_hero_db_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DB_HeroData) ProtoMessage() {}
|
||||
|
||||
func (x *DB_HeroData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_hero_hero_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 DB_HeroData.ProtoReflect.Descriptor instead.
|
||||
func (*DB_HeroData) Descriptor() ([]byte, []int) {
|
||||
return file_hero_hero_db_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetHeroID() int32 {
|
||||
if x != nil {
|
||||
return x.HeroID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetStar() int32 {
|
||||
if x != nil {
|
||||
return x.Star
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetLv() int32 {
|
||||
if x != nil {
|
||||
return x.Lv
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetExp() int32 {
|
||||
if x != nil {
|
||||
return x.Exp
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetJuexingLv() int32 {
|
||||
if x != nil {
|
||||
return x.JuexingLv
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetCaptainSkill() int32 {
|
||||
if x != nil {
|
||||
return x.CaptainSkill
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetNormalSkill() []*SkillData {
|
||||
if x != nil {
|
||||
return x.NormalSkill
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetProperty() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetAddProperty() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.AddProperty
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetFormation() int32 {
|
||||
if x != nil {
|
||||
return x.Formation
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetCardType() int32 {
|
||||
if x != nil {
|
||||
return x.CardType
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetCurSkin() int32 {
|
||||
if x != nil {
|
||||
return x.CurSkin
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetSkins() []int32 {
|
||||
if x != nil {
|
||||
return x.Skins
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetBlock() bool {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetEquipID() []string {
|
||||
if x != nil {
|
||||
return x.EquipID
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetResonateNum() int32 {
|
||||
if x != nil {
|
||||
return x.ResonateNum
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetDistributionResonate() int32 {
|
||||
if x != nil {
|
||||
return x.DistributionResonate
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetEnergy() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Energy
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DB_HeroData) GetCount() int32 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_hero_hero_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_hero_hero_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x68, 0x65, 0x72, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x09, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x44, 0x61, 0x74,
|
||||
0x61, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x73,
|
||||
0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b,
|
||||
0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0xd6, 0x06, 0x0a, 0x0b, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72,
|
||||
0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49,
|
||||
0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73,
|
||||
0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x6a, 0x75, 0x65, 0x78, 0x69, 0x6e, 0x67,
|
||||
0x4c, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6a, 0x75, 0x65, 0x78, 0x69, 0x6e,
|
||||
0x67, 0x4c, 0x76, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x53, 0x6b,
|
||||
0x69, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x61,
|
||||
0x69, 0x6e, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x2c, 0x0a, 0x0b, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
|
||||
0x6c, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x09, 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, 0x36, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
|
||||
0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72,
|
||||
0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x3f, 0x0a,
|
||||
0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61,
|
||||
0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x63, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
|
||||
0x63, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x53,
|
||||
0x6b, 0x69, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x53, 0x6b,
|
||||
0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28,
|
||||
0x05, 0x52, 0x05, 0x73, 0x6b, 0x69, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52,
|
||||
0x07, 0x65, 0x71, 0x75, 0x69, 0x70, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f,
|
||||
0x6e, 0x61, 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72,
|
||||
0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x69,
|
||||
0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61,
|
||||
0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69,
|
||||
0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x12, 0x30,
|
||||
0x0a, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
|
||||
0x2e, 0x44, 0x42, 0x5f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x65,
|
||||
0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x05, 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, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, 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, 0x05, 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, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 0x2a, 0x3d,
|
||||
0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x06,
|
||||
0x0a, 0x02, 0x48, 0x70, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x74, 0x6b, 0x10, 0x01, 0x12,
|
||||
0x07, 0x0a, 0x03, 0x44, 0x65, 0x66, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x70, 0x65, 0x65,
|
||||
0x64, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x72, 0x69, 0x74, 0x10, 0x04, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_hero_hero_db_proto_rawDescOnce sync.Once
|
||||
file_hero_hero_db_proto_rawDescData = file_hero_hero_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_hero_hero_db_proto_rawDescGZIP() []byte {
|
||||
file_hero_hero_db_proto_rawDescOnce.Do(func() {
|
||||
file_hero_hero_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_hero_hero_db_proto_rawDescData)
|
||||
})
|
||||
return file_hero_hero_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_hero_hero_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_hero_hero_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_hero_hero_db_proto_goTypes = []interface{}{
|
||||
(PropertyType)(0), // 0: PropertyType
|
||||
(*SkillData)(nil), // 1: SkillData
|
||||
(*DB_HeroData)(nil), // 2: DB_HeroData
|
||||
nil, // 3: DB_HeroData.PropertyEntry
|
||||
nil, // 4: DB_HeroData.AddPropertyEntry
|
||||
nil, // 5: DB_HeroData.EnergyEntry
|
||||
}
|
||||
var file_hero_hero_db_proto_depIdxs = []int32{
|
||||
1, // 0: DB_HeroData.normalSkill:type_name -> SkillData
|
||||
3, // 1: DB_HeroData.property:type_name -> DB_HeroData.PropertyEntry
|
||||
4, // 2: DB_HeroData.addProperty:type_name -> DB_HeroData.AddPropertyEntry
|
||||
5, // 3: DB_HeroData.energy:type_name -> DB_HeroData.EnergyEntry
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_hero_hero_db_proto_init() }
|
||||
func file_hero_hero_db_proto_init() {
|
||||
if File_hero_hero_db_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_hero_hero_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SkillData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hero_hero_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DB_HeroData); 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_hero_hero_db_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_hero_hero_db_proto_goTypes,
|
||||
DependencyIndexes: file_hero_hero_db_proto_depIdxs,
|
||||
EnumInfos: file_hero_hero_db_proto_enumTypes,
|
||||
MessageInfos: file_hero_hero_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_hero_hero_db_proto = out.File
|
||||
file_hero_hero_db_proto_rawDesc = nil
|
||||
file_hero_hero_db_proto_goTypes = nil
|
||||
file_hero_hero_db_proto_depIdxs = nil
|
||||
}
|
1260
pb/hero_msg.pb.go
Normal file
1260
pb/hero_msg.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
@ -11,28 +11,28 @@ enum PropertyType{
|
||||
|
||||
message SkillData{
|
||||
int32 skillID = 1;
|
||||
sint32 skillLv = 2;
|
||||
int32 skillLv = 2;
|
||||
}
|
||||
message DB_HeroData {
|
||||
string id = 1; //@go_tags(`bson:"_id"`) ID
|
||||
string uid = 2;
|
||||
int32 heroID = 3; // 英雄的配置表ID
|
||||
sint32 star = 4; // 英雄星级
|
||||
sint32 lv = 5; // 英雄等级
|
||||
int32 star = 4; // 英雄星级
|
||||
int32 lv = 5; // 英雄等级
|
||||
int32 exp = 6; // 英雄经验
|
||||
sint32 juexingLv = 7; // 觉醒等级
|
||||
int32 juexingLv = 7; // 觉醒等级
|
||||
int32 captainSkill = 8; // 队长技能
|
||||
repeated SkillData normalSkill = 9; // 普通技能
|
||||
map<sint32, int32> property = 10; // 属性相关
|
||||
map<sint32, int32> addProperty = 11; // 附加属性相关
|
||||
sint32 formation = 12; // 阵型类型
|
||||
sint32 cardType = 13; // 卡片类型(升星卡、经验卡、技能升级卡)
|
||||
map<int32, int32> property = 10; // 属性相关
|
||||
map<int32, int32> addProperty = 11; // 附加属性相关
|
||||
int32 formation = 12; // 阵型类型
|
||||
int32 cardType = 13; // 卡片类型(升星卡、经验卡、技能升级卡)
|
||||
int32 curSkin = 14; // 当前装备的皮肤ID
|
||||
repeated int32 skins = 15; // 所有皮肤ID
|
||||
bool block = 16;// 锁定
|
||||
repeated string equipID = 17; // 装备 objID
|
||||
sint32 resonateNum = 18; // 共鸣次数
|
||||
sint32 distributionResonate = 19; // 分配的共鸣能量
|
||||
map<sint32, int32> energy = 20; // 能量分配到哪里
|
||||
sint32 count = 21; // 数量
|
||||
int32 resonateNum = 18; // 共鸣次数
|
||||
int32 distributionResonate = 19; // 分配的共鸣能量
|
||||
map<int32, int32> energy = 20; // 能量分配到哪里
|
||||
int32 count = 21; // 数量
|
||||
}
|
95
pb/proto/hero/hero_msg.proto
Normal file
95
pb/proto/hero/hero_msg.proto
Normal file
@ -0,0 +1,95 @@
|
||||
syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
import "hero/hero_db.proto";
|
||||
|
||||
/// 卡牌养成: 强化(卡牌升级、卡牌升星、技能升级)
|
||||
/// 卡牌养成: 共鸣(共鸣消耗、材料返回、能量点使用)
|
||||
/// 卡牌养成: 觉醒(英雄觉醒、材料消耗)
|
||||
|
||||
message ItemData{
|
||||
int32 itemId = 2; //物品Id
|
||||
int32 amount = 3; //数量
|
||||
}
|
||||
|
||||
// 卡牌升级
|
||||
message Hero_StrengthenUplv_Req {
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
repeated string expCardID = 2; // 经验卡对象ID
|
||||
int32 amount = 3; // 消耗经验卡数量
|
||||
}
|
||||
|
||||
// 卡牌升级返回
|
||||
message Hero_StrengthenUplv_Resp {
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
}
|
||||
|
||||
message CostCardData{
|
||||
string costCardObj = 1; // 对象ID
|
||||
int32 amount = 2; // 数量
|
||||
}
|
||||
// 卡牌升星
|
||||
message Hero_StrengthenUpStar_Req {
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
repeated CostCardData items = 2; // 消耗卡牌对象ID
|
||||
}
|
||||
|
||||
// 卡牌升星返回
|
||||
message Hero_StrengthenUpStar_Resp {
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
}
|
||||
|
||||
// 卡牌技能升级
|
||||
message Hero_StrengthenUpSkill_Req {
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
int32 skillIndex = 2; // 英雄技能索引
|
||||
CostCardData items = 3; // 消耗技能升级卡
|
||||
}
|
||||
|
||||
// 卡牌技能升级返回
|
||||
message Hero_StrengthenUpSkill_Resp {
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
}
|
||||
|
||||
// 共鸣英雄
|
||||
message Hero_Gongming_Req{
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
string costObjID = 2; // 消耗对象
|
||||
}
|
||||
|
||||
message Hero_Gongming_Resp{
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
int32 energy = 2; // 共鸣成功 获得的能量点数
|
||||
DB_HeroData upStarCard = 3; //共鸣成功 获得的升星卡
|
||||
}
|
||||
|
||||
// 重置共鸣属性
|
||||
message Hero_GongmingReset_Req{
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
}
|
||||
|
||||
message Hero_GongmingReset_Resp{
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
int32 energy = 2; // 能量点数
|
||||
}
|
||||
|
||||
// 使用能量点数
|
||||
message Hero_GongmingUseEnergy_Req{
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
int32 useEnergy = 2; // 使用的能量点数
|
||||
int32 useType = 3; // 使用的类型 (攻击、血量、防御)
|
||||
}
|
||||
|
||||
message Hero_GongmingUseEnergy_Resp{
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
}
|
||||
|
||||
// 觉醒
|
||||
message Hero_Juexing_Req {
|
||||
string heroObjID = 1; // 英雄对象ID
|
||||
ItemData costItmes = 2; // 觉醒消耗待定
|
||||
}
|
||||
|
||||
// 觉醒返回
|
||||
message Hero_Juexing_Resp {
|
||||
DB_HeroData hero = 1; // 英雄对象
|
||||
}
|
Loading…
Reference in New Issue
Block a user