37 lines
1.7 KiB
Protocol Buffer
37 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
message SkillData {
|
|
int32 skillID = 1;
|
|
int32 skillLv = 2;
|
|
}
|
|
|
|
message DBHero {
|
|
string id = 1; //@go_tags(`bson:"_id"`) ID
|
|
string uid = 2;
|
|
int32 heroID = 3; //@go_tags(`bson:"heroID"`) 英雄的配置表ID
|
|
int32 star = 4; // 英雄星级
|
|
int32 lv = 5; // 英雄等级
|
|
int32 exp = 6; // 英雄经验
|
|
int32 juexingLv = 7; //@go_tags(`bson:"juexingLv"`) 觉醒等级
|
|
int32 captainSkill = 8; //@go_tags(`bson:"captainSkill"`) 队长技能
|
|
repeated SkillData normalSkill = 9; //@go_tags(`bson:"normalSkill"`) 普通技能
|
|
map<string, int32> property = 10; // 属性相关
|
|
map<string, int32> addProperty =
|
|
11; //@go_tags(`bson:"addProperty"`) 附加属性相关
|
|
int32 formation = 12; // 阵型类型
|
|
int32 cardType =
|
|
13; //@go_tags(`bson:"cardType"`) 卡片类型(升星卡、经验卡、技能升级卡)
|
|
int32 curSkin = 14; //@go_tags(`bson:"curSkin"`) 当前装备的皮肤ID
|
|
repeated int32 skins = 15; // 所有皮肤ID
|
|
bool block = 16; // 锁定
|
|
repeated string equipID = 17; //@go_tags(`bson:"equipID"`) 装备 objID
|
|
int32 resonateNum = 18; //@go_tags(`bson:"resonateNum"`) 共鸣次数
|
|
int32 distributionResonate =
|
|
19; //@go_tags(`bson:"distributionResonate"`) 分配的共鸣能量
|
|
map<int32, int32> energy = 20; // @go_tags(`bson:"energy"`)能量分配到哪里
|
|
int32 sameCount = 21; // @go_tags(`bson:"sameCount"`) 卡片叠加数量
|
|
int32 suiteId = 22; //@go_tags(`bson:"suiteId"`) 套装Id
|
|
int32 suiteExtId = 23; // go_tags(`bson:"suiteExtId"`) 扩展套装Id
|
|
bool isOverlying = 24; // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true
|
|
} |