syntax = "proto3";
option go_package = ".;pb";
import "errorcode.proto";
import "comm.proto";
import "combat_db.proto";
import "battle_msg.proto";


//关卡进入请求
message CombatInReq {
    int32 id = 1;       //关卡id
}

//关卡进入请求
message CombatInResp {
    DBCombatLevel level = 2; //管卡信息
}

message CombatUpdateLevelReq {
    int32 level = 1;                        //管卡id
    map<string,string>  data = 2;                        //坐标
}

message CombatUpdateLevelResp {
    bool succ = 1;                           //是否成功
    int32 level = 2;                        //管卡id
}

//战斗请求
message CombatChallengeReq {
    int32 level = 1;             //管卡id
    int32 manster = 2;           //怪物id
    BattleFormation battle = 3;  //布阵信息
}

//战斗请求 回应
message CombatChallengeResp {
    ErrorCode code = 1; //是否成功
    int32 level = 2;             //管卡id
    int32 manster = 3;
    BattleInfo info = 4;
}

//战斗奖励领取
message CombatChallengeReceiveReq {
    int32 level = 1;             //管卡id
    int32 manster = 2;
    BattleReport report = 3; //战报
  }
//战斗奖励领取
message CombatChallengeReceiveResp { 
    bool issucc = 1;    
    int32 level = 2;             //管卡id
    bool pass = 3;           //是否通关
}

//宝箱获取请求
message CombatDropReq {
    int32 level = 1;             //管卡id
    int32 drop = 2;           //宝箱id
}

//宝箱获取请求
message CombatDropResp {
    ErrorCode code = 1; //是否成功
    repeated UserAssets atns = 2; //获取物品
    int32 level = 3;             //管卡id
    bool pass = 4;           //是否通关
}