Merge branch 'master' of 60.1.1.230:backend/jieling_protocol

master_huanxiang
wangyuan 2019-01-22 09:58:00 +08:00
commit 554bf7dd70
3 changed files with 50 additions and 5 deletions

View File

@ -63,7 +63,7 @@ option optimize_for = SPEED;
message CellEvent{
// s_c_map_event id
optional int32 eventId = 1;
// 0: 1:
// 0 -1
optional int32 state = 2;
}
@ -92,3 +92,8 @@ option optimize_for = SPEED;
optional string id = 1;
}
message Drop{
repeated Item itemlist = 1;
repeated Equip equipId = 2;
repeated Hero Hero = 3;
}

View File

@ -3,17 +3,57 @@ package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
//
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;
}

View File

@ -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