// 如果使用此注释，则使用proto3; 否则使用proto2
syntax = "proto3";

// 生成包名（服务器用）
option java_package = "com.game.expedition.proto";
// 生成类名（服务器用）
option java_outer_classname = "ExpeditionProto";


// -------------------------------------Bean-------------------------------------

// 远征对手Bean
message ExpeditionEnemyInfo{
	int64 playerId = 1;// 角色id
	string playerName = 2;// 角色名
	int32 force = 3;// 战力
	int32 lv = 4;// 等级
	int32 fashionBody = 5;// 身体时装
	int32 fashionHand = 6;// 手部时装
	int32 gender = 7;// 性别
}

// 远征对手宠物Bean
message ExpeditionEnemyPetInfo{
	fixed32 configId = 1;//龙种配置id
	int32 image = 2;// 外观形象参数
	int32 force = 3;//战力
	int32 hp = 4;//当前血量
	int32 maxHp = 5;//最大血量
	int32 qualityId = 6;// 品质id
}

// 远征我方宠物Bean
message ExpeditionPetInfo{
	fixed64 petId = 1;// 宠物唯一id
	int32 currentHp = 2;// 当前血量
}

// -------------------------------------请求消息-------------------------------------

// 请求远征信息 msgId=122101		-----返回消息  msgId=122201
message ReqExpeditionInfo{
	
}

// 请求远征调整阵容 msgId=122102		-----返回消息  msgId=122202
message ReqExpeditionChange{
	repeated fixed64 petIdList = 1;// 出战阵容宠物唯一id列表
}

// 请求远征对阵阵容信息 msgId=122103		-----返回消息  msgId=122203
message ReqExpeditionAtkInfo{
	
}

// 请求远征战斗 msgId=122104		-----返回消息  msgId=108201
message ReqExpeditionFight{
	fixed64 toPlayerId = 1;// 对手角色id
}

// 请求远征领取奖励 msgId=122105		-----返回消息  msgId=122204
message ReqExpeditionAward{
	int32 boxId = 1;// 宝箱配置id
}

// -------------------------------------返回消息-------------------------------------

// 返回远征信息 msgId=122201
message ResExpeditionInfo{
	int32 index = 1;// （1-15当前关卡，>15通关）
	ExpeditionEnemyInfo enemy = 2;// 远征对手数据(通关状态下，此数据为空，如果在非通关状态下，服务器出现找不到对手bug，这里会出现空值，客户端这里加强验证一下)
	repeated int32 awardlist = 3;// 已领取奖励配置id
}

// 返回远征调整阵容 msgId=122202
message ResExpeditionChange{
	repeated fixed64 petIdList = 1;// 出战阵容宠物唯一id列表
}

// 返回远征对阵阵容信息 msgId=122203
message ResExpeditionAtkInfo{
	repeated ExpeditionEnemyPetInfo enemyPetlist = 1;// 地方宠物列表
	repeated fixed64 petList = 2;// 我方当前出战宠物列表（唯一id）
	repeated ExpeditionPetInfo petInfoList = 3;// 我方今日已经出战过的宠物数据（只记录发送已出战血量发生变化的宠物信息）
}

// 返回远征领取奖励 msgId=122204
message ResExpeditionAward{
	int32 boxId = 1;// 宝箱配置id，记录已领取
}








