import "client2world_msg_type.proto";
import "msg_type_def.proto";
import "msg_info_def.proto";

package client2world_protocols;

//领取奖励
message packetc2w_receive_questreward
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_questreward];
	optional int32 type =2;
	optional int32 questid = 3;
}

//返回奖励
message packetw2c_receive_questreward_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_questreward_result];
	optional int32 type = 2;
	optional int32 questid = 3;
	optional int32 result = 4;
	repeated msg_info_def.ItemInfo items = 5;
	optional int32 nextQuestId = 6;
	optional int32 nextQuestCount = 7;
}

//一键领取
message packetc2w_recvall_questreward
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_recvall_questreward];
	optional int32 type =2;
}

//一键领取返回
message packetw2c_recvall_questreward_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_recvall_questreward_result];
	optional int32 type = 2;
	repeated int32 questid = 3;
	repeated int32 active = 4;
	optional int32 result = 5;
	repeated msg_info_def.ItemInfo items = 6;
}

// 请求每日任务列表
message packetc2w_get_quest
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_quest];

	//任务类型 1每日任务 2每周任务 3主线任务 4并行任务
	optional int32 questType = 2;
}

// 请求每日任务列表结果
message packetw2c_get_quest_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_quest_result];
	
	// 任务列表
	repeated msg_info_def.msg_quest_info questList = 2;

	// 奖励已领取的列表
	repeated int32 rewardRecvList = 3;

	optional int32 questType = 4;
	// 当前积分
	optional int32 curScore = 5;
	// 结束时间
	optional int32 endTime = 6;
}

// 领取每日任务积分
message packetc2w_receive_quest_score
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_quest_score];
	
	// 任务ID
	optional int32 questId = 2;
}

// 领取每日任务积分结果
message packetw2c_receive_quest_score_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_quest_score_result];
	
	// 任务ID
	optional int32 questId = 2;

	// 领取结果,对照 e_msg_result_def 定义
	optional int32 result = 3;
}

// 领取活跃奖励
message packetc2w_receive_active_reward
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_active_reward];
	
	optional int32 questType = 2;
	// 奖励ID
	optional int32 rewardId = 3;
}

// 领取活跃奖励
message packetw2c_receive_active_reward_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_active_reward_result];
	
	optional int32 questType = 2;
	// 奖励ID
	optional int32 rewardId = 3;
	// 领取结果,对照 e_msg_result_def 定义
	optional int32 result = 4;
}

// 任务通知
message packetw2c_quest_notify
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_quest_notify];
	
	optional int32 type = 2;

	optional int32 questId = 3;

	optional int32 count = 4;

	optional int32 day = 5;
}