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-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-11 19:28:40 +08:00
|
|
|
|
optional int64 gold = 8;
|
|
|
|
|
optional int32 gem = 9;
|
|
|
|
|
optional int32 chargeGem = 10;
|
2019-01-18 16:55:52 +08:00
|
|
|
|
optional int32 curMapId = 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{
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message Skill{
|
|
|
|
|
optional int32 skillId = 1;
|
2019-01-18 17:36:20 +08:00
|
|
|
|
optional int32 level = 2;
|
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;
|
|
|
|
|
optional int32 breakTimes = 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-04 15:08:41 +08:00
|
|
|
|
optional int32 hp= 7;
|
|
|
|
|
optional int32 attack= 8;
|
|
|
|
|
optional int32 pDefence= 9;
|
|
|
|
|
optional int32 mDefence= 10;
|
|
|
|
|
optional int32 speed= 11;
|
2019-01-18 17:36:20 +08:00
|
|
|
|
|
2019-01-16 10:48:20 +08:00
|
|
|
|
repeated Skill skillList = 12;
|
2019-01-18 17:36:20 +08:00
|
|
|
|
repeated string equipIdList = 13;
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-01-07 20:03:29 +08:00
|
|
|
|
message CellEvent{
|
|
|
|
|
// s_c_map_event id
|
|
|
|
|
optional int32 eventId = 1;
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 事件进度,从0开始 -1表示该事件已完成
|
2019-01-07 20:03:29 +08:00
|
|
|
|
optional int32 state = 2;
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
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-07 20:03:29 +08:00
|
|
|
|
// 支持一个格子放多个事件
|
|
|
|
|
repeated CellEvent cellEvents = 2;
|
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{
|
|
|
|
|
optional int32 mailId = 1;
|
|
|
|
|
optional int32 itemId = 2;
|
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;
|
|
|
|
|
}
|