master_huanxiang
jiahuiwen 2019-01-21 17:51:57 +08:00
parent e8a5edb92a
commit 75aeee4a0f
3 changed files with 45 additions and 6 deletions

View File

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

View File

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

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