Merge branch 'master' of 60.1.1.230:backend/jieling_protocol
commit
554bf7dd70
|
|
@ -63,7 +63,7 @@ option optimize_for = SPEED;
|
||||||
message CellEvent{
|
message CellEvent{
|
||||||
// s_c_map_event id
|
// s_c_map_event id
|
||||||
optional int32 eventId = 1;
|
optional int32 eventId = 1;
|
||||||
// 状态,0:未完成 1:已完成
|
// 事件进度,从0开始 -1表示该事件已完成
|
||||||
optional int32 state = 2;
|
optional int32 state = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,3 +92,8 @@ option optimize_for = SPEED;
|
||||||
optional string id = 1;
|
optional string id = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Drop{
|
||||||
|
repeated Item itemlist = 1;
|
||||||
|
repeated Equip equipId = 2;
|
||||||
|
repeated Hero Hero = 3;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,57 @@ package com.ljsd.jieling.protocols;
|
||||||
option optimize_for = SPEED;
|
option optimize_for = SPEED;
|
||||||
|
|
||||||
import "CommonProto.proto";
|
import "CommonProto.proto";
|
||||||
|
|
||||||
|
|
||||||
// 进入地图
|
// 进入地图
|
||||||
message MapEnterRequest{
|
message MapEnterRequest{
|
||||||
// 需要进入的地图id
|
// 需要进入的地图id
|
||||||
optional int32 mapId = 1;
|
optional int32 mapId = 1;
|
||||||
|
// 所用英雄
|
||||||
|
repeated HeroInfo heroInfos = 2;
|
||||||
}
|
}
|
||||||
message MapEnterResponse{
|
message MapEnterResponse{
|
||||||
// 地图信息
|
// 地图信息
|
||||||
repeated Cell mapList = 1;
|
repeated Cell mapList = 1;
|
||||||
// 当前所在坐标
|
// 当前所在坐标
|
||||||
optional int32 curXY = 2;
|
optional int32 curXY = 2;
|
||||||
|
// 所用英雄
|
||||||
|
repeated HeroInfo heroInfos = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message HeroInfo {
|
||||||
|
optional string heroId = 1;
|
||||||
|
optional int32 heroHp = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新事件
|
||||||
|
message MapUpdateEventRequest{
|
||||||
|
// 走过的格子
|
||||||
|
repeated int32 cells = 1;
|
||||||
|
// 当前所在坐标
|
||||||
|
optional int32 curXY = 2;
|
||||||
|
// 所选大事件id
|
||||||
|
optional int32 bigEventId = 3;
|
||||||
|
// 可选事件,玩家做出的选项 从1开始
|
||||||
|
optional int32 choice = 4;
|
||||||
|
}
|
||||||
|
message MapUpdateEventResponse{
|
||||||
|
// 当前所在坐标
|
||||||
|
optional int32 curXY = 1;
|
||||||
|
// 事件进度,从0开始 -1表示该事件已完成
|
||||||
|
optional int32 eventSchedule = 2;
|
||||||
|
// 获得的道具
|
||||||
|
repeated Item Items = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 战斗事件结算
|
||||||
|
message FightEndRequest {
|
||||||
|
// 所用英雄(保存血量)
|
||||||
|
repeated HeroInfo heroInfos = 1;
|
||||||
|
}
|
||||||
|
message FightEndResponse {
|
||||||
|
// 获得的道具
|
||||||
|
repeated Item Items = 1;
|
||||||
|
// 大事件id
|
||||||
|
optional int32 bigEventId = 2;
|
||||||
|
// 事件进度,从0开始 -1表示该事件已完成
|
||||||
|
optional int32 eventSchedule = 3;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ enum MessageType{
|
||||||
MAP_OUT_REQUEST = 11202; //
|
MAP_OUT_REQUEST = 11202; //
|
||||||
MAP_OUT_RESPONSE = 11203;
|
MAP_OUT_RESPONSE = 11203;
|
||||||
|
|
||||||
MAP_GET_INFO_REQUEST = 11204; //
|
MAP_UDPATE_EVENT_REQUEST = 11204; // 更新事件
|
||||||
MAP_GET_INFO_RESPONSE = 11205;
|
MAP_UDPATE_EVENT_RESPONSE = 11205;
|
||||||
// N 11300
|
// N 11300
|
||||||
// O 11400
|
// O 11400
|
||||||
// P 11500
|
// P 11500
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue