package fish_protocols;

import "fish_def.proto"; 
import "msg_type_def.proto";
import "fish_type_def.proto";

message LegendaryShopInfo
{
	//第几项
	optional int32 itemId = 1;
	//配表ID
	optional int32 shopId = 2;
	//是否领取
	optional bool isReceived = 3;
}

// 巨鲲信息获取
message packetc2l_get_legendaryfish_palace_info
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_legendaryfish_palace_info ];
}

// 巨鲲信息获取结果
message packetl2c_get_legendaryfish_palace_info_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_legendaryfish_palace_info_result ];

	optional int32 result = 2; 

	repeated LegendaryShopInfo shopInfo = 3;

	optional int32 shopFlushTime = 4; 

	optional int32 bossCountDown = 5;
	//巨鲲得分转换比例
	optional int32 bossScoreTransRate = 6;

	optional int32 curBossScore = 7;
}

// 巨鲲商店刷新
message packetc2l_flush_shop
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_flush_shop ];
	//1普通刷新 2钻石刷新 3道具刷新
	optional int32 type = 2;
}

// 巨鲲商店刷新结果
message packetl2c_flush_shop_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_flush_shop_result ];

	optional int32 result = 2; 

	optional int32 type = 3;

	repeated LegendaryShopInfo shopInfo = 4;
}

// 巨鲲商店购买
message packetc2l_buy_shop_item
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_shop_item ];
	//第几项
	optional int32 itemId = 2; 
}

// 巨鲲商店购买结果
message packetl2c_buy_shop_item_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_shop_item_result ];

	optional int32 result = 2; 

	optional int32 itemId = 3;

	repeated LegendaryShopInfo shopInfo = 4;
}

// 召唤BOSS
message packetc2l_call_legendaryfish
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_legendaryfish ];
}

// 召唤BOSS返回
message packetl2c_call_legendaryfish_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_legendaryfish_result ];

	optional int32 result = 2; 
}

// BOSS信息获取
message packetc2l_get_boss_info
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_boss_info ];
}

message packetl2c_notice_boss_countdown
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_notice_boss_countdown ];

	//BOSS倒计时
	optional int32 bossCountDown = 2;
}

// BOSS信息获取返回
message packetl2c_get_boss_info_result
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_boss_info_result ];
	//巨鲲得分转换比例
	optional int32 bossScoreTransRate = 2;

	optional int32 curBossScore = 3;
}