package fish_protocols;

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

message killMonkeyHistory
{
	optional string nickName = 1;
	optional string fishName = 2;
	optional int32 mult = 3;
	optional int64 gold = 4;
	repeated ItemInfo items = 5; 
}

message MonkeyRankInfo
{
	optional int32 playerId = 1;
	optional string nickName = 2;
	optional int32 headid = 3;
	optional int32 frameid = 4;
	optional int32 fishScore = 5;		//特殊鱼积分
	optional int32 monkeyScore = 6;		//大圣积分
	optional int32 rank = 7;			//排名
}

message packetc2l_get_monkey_rank {
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_rank];
}

message packetl2c_get_monkey_rank_result {
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_rank_result];
	optional MonkeyRankInfo myDailyRank = 2;
	optional MonkeyRankInfo myWeeklyRank = 3;
	repeated MonkeyRankInfo dayRankList = 4;
	repeated MonkeyRankInfo weekRankList = 5;
}

message packetc2l_get_monkey_info {
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_info];
}

message packetl2c_get_monkey_info_result{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_info_result];
	optional int32 result = 2; 
	optional int32 bossCountDown = 3;
	optional int64 jackpot = 4;
}

// 杀死大圣
message packetl2c_bc_table_kill_monkey
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey];
	optional int32 playerId = 2;
	optional int32 fishRate = 3;		//倍率
	optional int32 bulletRate = 4;		//炮倍
	optional int64 dropGold = 5;		//大圣掉落金币(不算奖池)
	optional int32 rewardIndex = 6;		//第一轮抽奖道具奖励(Fish_SeniorMonkeyFishCFG)
	optional int64 gainjackpot = 7;		//第二轮奖池金币奖励
	repeated msg_item gainItems = 8;	//第二轮奖励道具
	repeated int32 graphArr = 9;		//第二轮图形
	optional int32 point = 10;			//积分
	optional int32 addPoint = 11;		//加成积分
	optional int64 jackpot = 12;
}

// 杀死大圣场特殊鱼
message packetl2c_bc_table_kill_monkey_fish
{
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey_fish];
	optional int32 playerId = 2;	
	optional int32 fishId = 3;
	repeated int32 slotArr = 4;			//转盘图形
	optional int64 dropGold = 5;		//掉落金币(不算奖池)
	optional int64 gainjackpot = 6;		//奖池金币奖励
	optional int32 point = 7;
	optional int32 addPoint = 8;
	optional int64 jackpot = 9;
}

message packetc2l_get_kill_monkey_history {
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_kill_monkey_history];
}

message packetl2c_get_kill_monkey_history_result {
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_kill_monkey_history_result];
	optional int64 jackpot = 2;
	repeated killMonkeyHistory historyList = 3;
}

message packetc2l_call_monkey {
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_monkey];
}

message packetl2c_call_monkey_result {
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_monkey_result];
	optional int32 result = 2; 
}

message packetc2l_monkey_exchange {
	optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_monkey_exchange];
	optional bool exchangeAll = 2;
	optional int32 exchangeIndex = 3;
}

message packetl2c_monkey_exchange_result {
	optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_monkey_exchange_result];
	optional int32 result = 2; 
	optional bool exchangeAll = 3; 
	repeated int32 exchangeIndex = 4;
	repeated ItemInfo items = 5;
}