package MergeConst

type ProtocolType int32

const (
	Protocol_Error_Account_Exist        int32 = 100
	Protocol_Error_Account_OR_PWD_ERROR int32 = 101
	Protocol_Error_Account_OR_PWD_Short int32 = 102
	Protocol_Error_Account_Fail         int32 = 103
	Protocol_Error_Account_NoExsit      int32 = 104
	Protocol_Error_Account_Code_Error   int32 = 105
	Protocol_Error_Account_Device_Error int32 = 106
	Protocol_Error_Id_Not_Verify        int32 = 107
	Protocol_Error_Id_Verify_Error      int32 = 108
	Protocol_Error_Account_Ban          int32 = 109
	Protocol_Res_Buy_Cnt_Limit          int32 = 110
	Protocol_Res_Buy_CD                 int32 = 111

	Protocol_Email_Find_Fail                  int32 = 120
	Protocol_Active_No_Exsit                  int32 = 130
	Protocol_Active_7Day_Rewarded             int32 = 131
	Protocol_Active_Card_NoEnough             int32 = 132
	Protocol_Active_CardFragment_NoEnough     int32 = 133
	Protocol_Active_CardTime_NoEnough         int32 = 134
	Protocol_Active_CardTime_Outline          int32 = 135
	Protocol_Exchange_Card_No_Exsit           int32 = 136
	Protocol_PigID_No_Exsit                   int32 = 140
	Protocol_LvUpPack_No_Exsit                int32 = 150
	Protocol_LvUpPack_Buyed                   int32 = 151
	Protocol_GrowthFund_Geted                 int32 = 160
	Protocol_Illustrate_InActive              int32 = 170
	Protocol_Illustrate_Geted                 int32 = 171
	Protocol_Active_Card_Rewarded             int32 = 180
	Protocol_Active_GoldCardTime_Cnt_NoEnouch int32 = 181
	Protocol_Active_GoldCard_illegal_Swap     int32 = 182
	Protocol_Active_GoldCard_illegal_Donate   int32 = 183

	Protocol_Champship_End            int32 = 200
	Protocol_Champship_No_Exsit       int32 = 201
	Protocol_Champship_No_Join        int32 = 202
	Protocol_Champship_Have_GetWarded int32 = 203

	Protocol_Newbie_Pack_Opened  int32 = 210
	Protocol_Newbie_Pack_OutLine int32 = 211
	Protocol_Ad_Pack_Geted       int32 = 212

	Protocol_Player_Not_Exsit            int32 = 220 ///玩家不存在
	Protocol_Player_Is_Friend            int32 = 221 ///该玩家已经是你的好友
	Protocol_AddFriend_Is_Send           int32 = 222 ///已经发送过添加好友请求
	Protocol_AddFriend_Is_NoExsit        int32 = 223 ///添加的好友不存在
	Protocol_AddFriend_Is_YourSelf       int32 = 224 ///搜索玩家是你自己
	Protocol_AddFriend_Is_UpLimit        int32 = 225 ///好友数量已达上限
	Protocol_AddFriend_Is_Target_Send    int32 = 226 ///
	Protocol_AddFriend_Get_Invite_Reward int32 = 230 ///

	Protocol_FaceBook_Binded       int32 = 250 //账号已经绑定过
	Protocol_FaceBook_Binded_other int32 = 251 //账号已经绑定过其他设备

)

const (
	Notify_Socket_Closed     string = "Notify_Socket_Closed"
	Notify_Limit_Active_Open string = "Notify_Limit_Active_Open"
	Notify_Socket_Connect    string = "Notify_Socket_Connect"
	Notify_Daily_Renew       string = "Notify_Daily_Renew"
	Notify_Midday_Renew      string = "Notify_Midday_Renew"
	Notify_Card_Renew        string = "Notify_Card_Renew"
	Notify_Clock_Tick_Sec    string = "Notify_Clock_Tick_Sec"
	ResPlayerEmitUnlockData  string = "ResPlayerEmitUnlockData"
	ResPlayerPackData        string = "ResPlayerPackData"

	OpenNewLimitActivity  string = "OpenNewLimitActivity"
	CloseNewLimitActivity string = "CloseNewLimitActivity"

	Notify_MileStone_Renew string = "Notify_MileStone_Renew"

	Notify_Champion_Renew      string = "Notify_Champion_Renew"
	Notify_OpenChampShipTimes  string = "Notify_OpenChampShipTimes"
	Notify_CloseChampShipTimes string = "Notify_CloseChampShipTimes"
	Notify_EndChampShip        string = "Notify_EndChampShip"
	Notify_Champion_Enter_Rank string = "Notify_Champion_Enter_Rank"

	Notify_Renew_Ad_Pack string = "Notify_Renew_Ad_Pack"
	OpenNewLimitEvent    string = "OpenNewLimitEvent"
)

const G_Sta_RecoverTime = 120 // 2分钟恢复一次能量
const G_Sta_Limit int32 = 100
const G_Sta_Buy_Cnt int32 = 5
const G_Sta_Buy_CD int32 = 60 * 2
const G_Clear_Read_Email_Limit = 3600 * 24 * 3
const G_Pig_Limite = 7 * 3600 * 24
const G_PigIsOne = true
const G_MailStone_Period = 3600 * 24 * 2
const G_Champion_Start_Offset = 1800
const G_Champion_Start_Effect_Time = 3600 * 18
const G_Champion_Start_Effect_Durtion = 1800
const G_Champion_Duration = 3600*24 - 1800
const G_Champion_settlement_Duration = 3600 * 23
const G_Champion_Unlock_Score = 2
const G_Champion_Max_Score = 44650
const G_Champion_People_Cnt = 50
const SUCCESS = 1
const (
	ORDER_STATUS_IDLE   = 0 // 订单未完成
	ORDER_STATUS_PAY    = 1 // 订单已支付
	ORDER_STATUS_CANCEL = 2 // 订单取消
	ORDER_STATUS_SHIP   = 3 // 订单已发货
)

const GLOBAL_SERVER_ID = 0 // 全局服ID
