miduo_protocol/protos/CommonProto.proto

213 lines
5.0 KiB
Protocol Buffer
Raw Normal View History

2019-01-11 19:28:40 +08:00
2018-12-27 17:56:49 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
2019-01-17 20:46:03 +08:00
// 嵌套的proto 必须在当前 proto 之前声明
2019-01-22 16:29:16 +08:00
message ErrorResponse{
optional int32 errCode =1 ; // 错误码默认为0
optional string errMsg =2 ; // 错误信息
}
2019-01-04 15:08:41 +08:00
message Player{
optional int32 uid = 1;
2019-01-15 14:15:23 +08:00
optional string nickName = 2;
2019-01-04 15:08:41 +08:00
optional int32 level = 3;
optional int32 exp = 4;
optional int32 vipLevel = 5;
optional string familyId = 6;
optional string head = 7;
2019-01-23 10:26:05 +08:00
optional int32 curMapId = 8;
2019-03-19 17:47:12 +08:00
optional int32 energy = 9; //精力
optional int32 lastUpdateEnergyTime = 10 ;// 上次更新精力时间,-1 代表在队伍中,不需要进行定时恢复。
2019-03-19 19:51:25 +08:00
optional int32 serverTime = 11; //服务器时间
2019-01-04 15:08:41 +08:00
}
message Item{
2019-01-16 10:48:20 +08:00
optional int32 itemId = 1;
optional int32 itemNum = 2;
2019-01-16 16:20:04 +08:00
optional int32 endingTime = 3;
2019-01-04 15:08:41 +08:00
}
2019-01-18 17:36:20 +08:00
message SpecialEffects{
2019-02-18 18:22:00 +08:00
optional int32 propertyId = 1;
2019-02-18 18:34:34 +08:00
optional int32 propertyValue = 2;
2019-01-18 17:36:20 +08:00
}
2019-02-18 18:22:00 +08:00
2019-01-17 20:46:03 +08:00
message Equip{
optional string id = 1;
optional int32 equipId = 2;
2019-02-18 18:22:00 +08:00
optional SpecialEffects mainAttribute = 3;
repeated SpecialEffects secondAttribute = 4;
2019-01-17 20:46:03 +08:00
}
2019-01-04 15:08:41 +08:00
message Hero{
optional string id = 1;
optional int32 heroId = 2;
2019-01-18 17:36:20 +08:00
optional int32 level = 3;
2019-01-25 14:23:01 +08:00
optional int32 breakId = 4;
2019-01-04 15:08:41 +08:00
optional int32 star = 5;
2019-01-18 17:36:20 +08:00
optional int32 skinId = 6;
2019-01-22 14:39:33 +08:00
repeated int32 skillIdList = 7;
repeated string equipIdList = 8;
2019-03-19 18:31:25 +08:00
optional int32 createTime = 9; //入手时间
2019-03-02 16:11:58 +08:00
2019-01-04 15:08:41 +08:00
}
2019-03-20 14:52:03 +08:00
message FightUnitInfo {
optional string unitId = 1;//单位静态id
optional string unitSkillIds = 2;//点技#滑技#被动技能1#被动技能2#被动技能3....
optional string property = 3;//1#2390#2390#169#271#95#176#0#0#0.3#0.15#0.3#1.5#1#0.05#0#0#0#0#0#0.05#0#0#0#0#0
2019-03-02 18:21:48 +08:00
}
2019-03-20 14:52:03 +08:00
2019-03-20 19:56:46 +08:00
message FightTeamInfo {
repeated FightUnitInfo fightUnitList = 1;
optional string teamSkillList = 2;//异妖队伍技能技能1#技能2#技能3
}
2019-01-26 12:49:43 +08:00
message EventBehaviorValues{
repeated int32 behaviorValues = 1;
}
// 事件行为结果
message EventBehaviorCommon{
// 行为类型
optional int32 behaviorType = 1;
// 行为参数
repeated EventBehaviorValues eventBehaviorValues = 2;
}
2019-01-07 20:03:29 +08:00
// 地图每个格子的信息
2019-01-04 15:08:41 +08:00
message Cell{
2019-01-07 20:03:29 +08:00
// 格子id
2019-01-04 15:08:41 +08:00
optional int32 cellId = 1;
2019-01-26 12:49:43 +08:00
// mapPointConfig id
optional int32 pointId = 2;
2019-01-04 15:08:41 +08:00
}
message Mission{
2019-02-19 13:35:54 +08:00
optional int32 itemId = 1;
optional string state = 2;
optional int32 missionStep = 3;
2019-03-20 17:16:19 +08:00
optional bool isOpen = 4;
2019-01-04 15:08:41 +08:00
}
2019-01-17 20:46:03 +08:00
message Mail{
2019-01-23 18:40:59 +08:00
optional string mailId = 1;
optional int32 state = 2; //0:未读 1:已读取 2: 未领取 3 已领取
optional string head = 3;
optional string content = 4;
optional string mailItem = 5; //附件
optional int32 sendTime = 6;
optional int32 effectiveTime = 7; // 秒 0:永久有效
optional string sendName = 8 ; //发送者名字
optional int32 mailType = 9; //邮件类型 1:系统邮件 2:idip 业务邮件
2019-01-04 15:08:41 +08:00
}
2019-01-22 09:50:34 +08:00
message Drop{
repeated Item itemlist = 1;
repeated Equip equipId = 2;
repeated Hero Hero = 3;
}
2019-01-22 16:13:06 +08:00
message GMCommand{
2019-01-24 17:20:45 +08:00
optional string command =1 ; // 指令字符串 type#prarm1#param2
}
2019-01-24 16:31:46 +08:00
message AdventureStateInfo{
optional int32 positionId = 1; // 区域编号
repeated string heroIdList =2 ; // 驻扎英雄id
2019-01-25 12:05:45 +08:00
optional int32 remainTime = 3; // 剩余时间
2019-03-21 20:44:05 +08:00
optional int32 allowTime = 4 ;// 还可驻扎剩余时长
2019-03-22 17:42:06 +08:00
optional int32 hourDuration = 5 ; //驻扎时长
}
2019-02-15 10:24:17 +08:00
2019-03-21 18:33:42 +08:00
message AdventureRecommendHeroInfo{
optional int32 positionId = 1; // 区域编号
repeated int32 recommenedId =2 ; // 推荐英雄
}
2019-02-18 14:08:42 +08:00
message TeamHeroInfo{
optional int32 position =1;
optional string heroId = 2;
}
message TeamPokemonInfo{
optional int32 position =1;
optional int32 pokemonId = 2;
}
2019-02-15 10:24:17 +08:00
message TeamPosInfo{
optional int32 teamId = 1; //第几编队
2019-02-15 10:48:21 +08:00
optional string teamName =2; //编码名称
2019-02-18 14:08:42 +08:00
repeated TeamHeroInfo teamHeroInfos = 3; //队伍英雄id
repeated TeamPokemonInfo teamPokemonInfos = 4; // 异妖id
2019-02-15 10:24:17 +08:00
}
2019-02-18 14:08:42 +08:00
2019-02-21 10:22:55 +08:00
message Pokemoncomonpent{
optional int32 id =1;
optional int32 level =2;
}
message PokemonInfo{
optional int32 id = 1; //异妖id
optional int32 stage =2; //异妖进阶阶数
repeated Pokemoncomonpent pokemoncomonpent =3; //组件信息
}
2019-02-25 17:33:36 +08:00
message WorkShopBaseInfo{
optional int32 type =1; // 1: 工坊 2百味居
2019-02-25 10:18:28 +08:00
optional int32 levle =2 ;
optional int32 exp =3;
2019-02-25 17:33:36 +08:00
}
message WorkShopUnLockInfo{
optional int32 type =1 ; // 类型 1 基础锻造 2 装备打造
2019-02-25 10:18:28 +08:00
repeated int32 id =4 ; // 蓝图已经解锁的id
}
2019-02-25 17:33:36 +08:00
2019-03-20 15:55:10 +08:00
message FightData {
// 战斗属性
optional FightTeamInfo heroFightInfos = 1;
// 怪物属性
repeated FightTeamInfo monsterList = 2;
//战斗随机种子
optional int32 fightSeed = 3;
}
2019-02-25 17:33:36 +08:00
2019-03-26 11:59:56 +08:00
message ExploreDetail{
optional int32 id =1;
optional int32 progress =2 ; //进度
}
2019-03-26 10:03:48 +08:00
message MapAccomplishInfo {
optional int32 mapId= 1; // 地图id
optional int32 totalWeight = 2; //总探索度
repeated int32 hadTakedId =3;//已领取的箱子
repeated ExploreDetail exploreDetail =4; //进度详情
}
2019-04-02 15:57:18 +08:00
message FoodBuffer {
optional int32 bufferId = 1;
optional int32 leftStep = 2;
}
2019-02-25 17:33:36 +08:00
2019-02-18 14:08:42 +08:00