public void ResetInfo() { OnClear(); tagGiffChangeEvent pEvent = new tagGiffChangeEvent(); MsgEventHandle.HandleMsg(pEvent); }
public void OnNewDay() { if (GiffMap.Count > 0) { for (int i = 0; i < GiffMap.Count; ++i) { if (GiffMap.Values.ElementAt <tagGiffClientInfo>(i).DiffTime != 0xff && GiffMap.Values.ElementAt <tagGiffClientInfo>(i).DiffTime < 250) { GiffMap.Values.ElementAt <tagGiffClientInfo>(i).DiffTime += 1; } } tagGiffChangeEvent pEvent = new tagGiffChangeEvent(); MsgEventHandle.HandleMsg(pEvent); } //tagGiffSendInfoChangeEvent pSendEvent = new tagGiffSendInfoChangeEvent(); //MsgEventHandle.HandleMsg(pSendEvent); }
bool HandleAcceptAllGiffResult(NetCmdBase obj) { LC_Cmd_GetAllRoleGiffReward ncb = (LC_Cmd_GetAllRoleGiffReward)obj; for (UInt16 i = 0; i < ncb.Sum; ++i) { GiffMap.Remove(ncb.Array[i]); } if ((ncb.States & FishDataInfo.MsgEnd) != 0) { tagGiffChangeEvent pEvent = new tagGiffChangeEvent(); MsgEventHandle.HandleMsg(pEvent); tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Giff_GetAllGiff_Sucess); MsgEventHandle.HandleMsg(pUOM); } return(true); }
//bool HandleLoadRoleNowDaySendGiffInfoFinish(NetCmdBase obj) //{ // LC_Cmd_GetRoleNowDaySendGiffFinish ncb = (LC_Cmd_GetRoleNowDaySendGiffFinish)obj; // return true; //} bool HandleDelRoleGiff(NetCmdBase obj) { LC_Cmd_DelRoleGiff ncb = (LC_Cmd_DelRoleGiff)obj; for (int i = 0; i < ncb.Sum; ++i) { GiffMap.Remove(ncb.Array[i]); } if ((ncb.States & FishDataInfo.MsgEnd) != 0) { GissNowDaySendMap.Clear();//将今天目前记录的全部清理掉 tagGiffChangeEvent pEvent = new tagGiffChangeEvent(); MsgEventHandle.HandleMsg(pEvent); tagGiffSendInfoChangeEvent pSendEvent = new tagGiffSendInfoChangeEvent(); MsgEventHandle.HandleMsg(pSendEvent); } return(true); }
bool HandleLoadRoleGiff(NetCmdBase obj) { LC_Cmd_GetRoleGiff ncb = (LC_Cmd_GetRoleGiff)obj; if ((ncb.States & FishDataInfo.MsgBegin) != 0) { GiffMap.Clear(); } for (int i = 0; i < ncb.Sum; ++i) { GiffMap.Add(ncb.Array[i].OnlyID, ncb.Array[i]); } if ((ncb.States & FishDataInfo.MsgEnd) != 0) { m_IsLoadInfo = true; tagGiffChangeEvent pEvent = new tagGiffChangeEvent(); MsgEventHandle.HandleMsg(pEvent); } return(true); }