地图修改
parent
270933a637
commit
74516ccae5
|
@ -28,6 +28,10 @@ option optimize_for = SPEED;
|
|||
optional int32 endingTime = 3;
|
||||
}
|
||||
|
||||
message Buff{
|
||||
optional int32 buffId = 1;
|
||||
}
|
||||
|
||||
|
||||
message SpecialEffects{
|
||||
optional int32 specialId = 1;
|
||||
|
@ -66,14 +70,27 @@ option optimize_for = SPEED;
|
|||
optional float speed = 6;
|
||||
}
|
||||
|
||||
message EventBehaviorValues{
|
||||
repeated int32 behaviorValues = 1;
|
||||
}
|
||||
// 事件行为结果
|
||||
message EventBehaviorCommon{
|
||||
// 行为类型
|
||||
optional int32 behaviorType = 1;
|
||||
// 行为参数
|
||||
repeated EventBehaviorValues eventBehaviorValues = 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 地图每个格子的信息
|
||||
message Cell{
|
||||
// 格子id
|
||||
optional int32 cellId = 1;
|
||||
// s_c_map_event id
|
||||
optional int32 eventId = 2;
|
||||
// 事件进度,从0开始 -1表示该事件已完成
|
||||
optional int32 state = 3;
|
||||
// mapPointConfig id
|
||||
optional int32 pointId = 2;
|
||||
// eventPointConfig id
|
||||
optional int32 eventId = 3;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -25,25 +25,26 @@ import "CommonProto.proto";
|
|||
}
|
||||
|
||||
// 更新事件
|
||||
message EventUpdateRequest{
|
||||
// optionConfig Id
|
||||
optional int32 optionId = 1;
|
||||
}
|
||||
message EventUpdateResponse{
|
||||
// eventPointConfig id
|
||||
optional int32 eventId = 1;
|
||||
|
||||
optional EventBehaviorCommon EventBehaviorCommon = 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 {
|
||||
// 所用英雄(保存血量)
|
||||
|
|
|
@ -89,6 +89,7 @@ enum MessageType{
|
|||
RECONNECT_REQUEST = 11700; //
|
||||
RECONNECT_RESPONSE = 11701;
|
||||
// S 11800
|
||||
SUCCESS_RESPONSE = 11800; // 通用成功回复
|
||||
// T 11900
|
||||
TRIGGER_EVENT_REQUEST = 11900; //
|
||||
TRIGGER_EVENT_RESPONSE = 11901;
|
||||
|
|
Loading…
Reference in New Issue