master_huanxiang
parent
e8a5edb92a
commit
75aeee4a0f
|
|
@ -69,7 +69,7 @@ option optimize_for = SPEED;
|
|||
message CellEvent{
|
||||
// s_c_map_event id
|
||||
optional int32 eventId = 1;
|
||||
// 状态,0:未完成 1:已完成
|
||||
// 事件进度,从0开始 -1表示该事件已完成
|
||||
optional int32 state = 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,18 +3,57 @@ package com.ljsd.jieling.protocols;
|
|||
option optimize_for = SPEED;
|
||||
|
||||
import "CommonProto.proto";
|
||||
|
||||
message MapInfo{
|
||||
// 进入地图
|
||||
message MapEnterRequest{
|
||||
// 需要进入的地图id
|
||||
optional int32 mapId = 1;
|
||||
// 所用英雄
|
||||
repeated HeroInfo heroInfos = 2;
|
||||
}
|
||||
message MapEnterResponse{
|
||||
// 地图信息
|
||||
repeated Cell mapList = 1;
|
||||
// 当前所在坐标
|
||||
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_RESPONSE = 11203;
|
||||
|
||||
MAP_GET_INFO_REQUEST = 11204; //
|
||||
MAP_GET_INFO_RESPONSE = 11205;
|
||||
MAP_UDPATE_EVENT_REQUEST = 11204; // 更新事件
|
||||
MAP_UDPATE_EVENT_RESPONSE = 11205;
|
||||
// N 11300
|
||||
// O 11400
|
||||
// P 11500
|
||||
|
|
|
|||
Loading…
Reference in New Issue