syntax = "proto3";
option go_package = ".;pb";
import "mline/mline_db.proto";
import "battle/battle_msg.proto";
import "comm.proto";

// 查询关卡进度
message MlineGetListReq {
    int32 cType = 1; // 章节类型
}

// 返回进度信息
message MlineGetListResp { 
    repeated DBMline data = 1; 
}

// 领取关卡宝箱
message MlineGetRewardReq {
    int32 cId = 1; // 章节配置表唯一ID
    int32 star = 2; // 星级奖励
}

message MlineGetRewardResp {
    DBMline data = 1; //当前章节信息
    repeated UserAssets reward = 2; // 奖励
}

// 挑战关卡
message MlineChallengeReq {
    int32 stageId = 1; // 小关ID
    BattleFormation battle = 2; 
}

message MlineChallengeResp {
    BattleInfo info = 1;
    int32 stageId = 2; // 小关ID
}

// 客户端通知服务器打赢了
message MlineChallengeOverReq {
    int32 stageId = 1; // 小关ID
    BattleReport report = 3; //战报
}

message MlineChallengeOverResp {
    DBMline data = 1; //当前章节信息
    repeated UserAssets reward = 2; // 奖励
}

// 扫荡关卡
message MlineCleanStageReq {
    int32 stageId = 1; // 小关ID
}

message MlineCleanStageResp {
    int32 stageId = 1; // 小关ID
    repeated UserAssets reward = 2; // 奖励
}