miduo_protocol/protos/CommonProto.proto

145 lines
3.2 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-02-14 17:53:16 +08:00
optional int32 workLevel = 9; // 工坊等级
optional int32 workExp = 10; // 工坊经验
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-26 12:49:43 +08:00
message Buff{
optional int32 buffId = 1;
}
2019-01-18 17:36:20 +08:00
message SpecialEffects{
optional int32 specialId = 1;
repeated int32 effects = 2;
}
2019-01-17 20:46:03 +08:00
message Equip{
optional string id = 1;
optional int32 equipId = 2;
2019-01-18 17:36:20 +08:00
optional int32 mainAttribute = 3;
repeated int32 attributeList = 4;
optional SpecialEffects specialEffects = 5;
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-01-25 12:05:45 +08:00
optional int32 actionPower = 9 ; //行动力
optional int32 createTime = 10; //入手时间
2019-01-04 15:08:41 +08:00
}
2019-01-25 18:27:33 +08:00
message HeroFightInfo {
optional Hero hero = 1;
optional float attack = 2;
optional float physicalDefence = 3;
optional float magicDefence = 4;
optional float hp = 5;
optional float speed = 6;
}
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;
// eventPointConfig id
optional int32 eventId = 3;
2019-01-04 15:08:41 +08:00
}
message Mission{
optional string id = 1;
optional int32 itemId = 2;
}
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
}
message Family{
optional string id = 1;
}
2018-12-27 17:56:49 +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-02-15 10:24:17 +08:00
message TeamPosInfo{
optional int32 teamId = 1; //第几编队
2019-02-15 10:30:56 +08:00
optional int32 teamName =2; //编码名称
repeated string heroIds = 3; //队伍英雄id
repeated int32 pokemonIds = 4; // 异妖id
2019-02-15 10:24:17 +08:00
}