master_huanxiang
mashiyu 2019-01-08 09:37:59 +08:00
commit 25823ddac0
3 changed files with 71 additions and 35 deletions

View File

@ -64,17 +64,19 @@ message Common{
} }
message Map{ message CellEvent{
optional int32 mapId = 1; // s_c_map_event id
repeated Cell cellList = 2; optional int32 eventId = 1;
// 0: 1:
optional int32 state = 2;
} }
//
message Cell{ message Cell{
// id
optional int32 cellId = 1; optional int32 cellId = 1;
optional bool canGo = 2; //
optional bool isFoggy = 3; repeated CellEvent cellEvents = 2;
repeated int32 eventList = 4;
} }

View File

@ -6,13 +6,22 @@ import "CommonProto.proto";
message MapInfo{ message MapInfo{
message GetMapInfoRequest{ //
optional int32 num = 1; message MapGetInfoResponse{
optional string str = 2; // id
optional int32 mapId = 1;
} }
message GetMapInfoResponse{ //
repeated Common.Map mapList = 1; message MapEnterRequest{
// id
optional int32 mapId = 1;
}
message MapEnterResponse{
//
repeated Common.Cell mapList = 1;
//
optional int32 curXY = 2;
} }
} }

View File

@ -12,31 +12,56 @@ enum MessageType{
HEART_BEAT_RESPONSE = 1001; // HEART_BEAT_RESPONSE = 1001; //
// 10000 // 10000
LOGIN_REQUEST = 10000; // // A 10000
LOGIN_RESPONSE = 10001; // B 10100
// C 10200
// D 10300
// E 10400
// F 10500
FIGHT_START_REQUEST = 10500; //
FIGHT_START_RESPONSE = 10501;
GET_PLAYERINFO_REQUEST = 10002; // FIGHT_END_REQUEST = 10502; //
GET_PLAYERINFO_RESPONSE = 10003; FIGHT_END_RESPONSE = 10503;
// G 10600
GET_PLAYERINFO_REQUEST = 10600; //
GET_PLAYERINFO_RESPONSE = 10601;
GET_HEROINFO_REQUEST = 10004; // GET_HEROINFO_REQUEST = 10602; //
GET_HEROINFO_RESPONSE = 10005; GET_HEROINFO_RESPONSE = 10603;
GET_ITEMINFO_REQUEST = 10006; // GET_ITEMINFO_REQUEST = 10604; //
GET_ITEMINFO_RESPONSE = 10007; GET_ITEMINFO_RESPONSE = 10605;
// H 10700
// I 10800
// J 10900
// K 11000
// L 11100
LOGIN_REQUEST = 11100; //
LOGIN_RESPONSE = 11101;
// M 11200
MAP_ENTER_REQUEST = 11200; //
MAP_ENTER_RESPONSE = 11201;
ENTER_MAP_REQUEST = 10008; // MAP_OUT_REQUEST = 11202; //
ENTER_MAP_RESPONSE = 10009; MAP_OUT_RESPONSE = 11203;
START_FIGHT_REQUEST = 10010; // MAP_GET_INFO_REQUEST = 11204; //
START_FIGHT_RESPONSE = 10011; MAP_GET_INFO_RESPONSE = 11205;
// N 11300
END_FIGHT_REQUEST = 10012; // // O 11400
END_FIGHT_RESPONSE = 10013; // P 11500
// Q 11600
TRIGGER_EVENT_REQUEST = 10014; // // R 11700
TRIGGER_EVENT_RESPONSE = 10015; // S 11800
// T 11900
OUT_MAP_REQUEST = 10016; // TRIGGER_EVENT_REQUEST = 11900; //
OUT_MAP_RESPONSE = 10017; TRIGGER_EVENT_RESPONSE = 11901;
// U 12000
// V 12100
// W 12200
// X 12300
// Y 12400
// Z 12500
} }