private bool HandleMonthEnd(NetCmdBase obj) { //玩家报名的一场比赛结束了 我们将报名信息关闭掉 LC_Cmd_UserMonthEnd ncb = (LC_Cmd_UserMonthEnd)obj; if (PlayerRole.Instance.RoleInfo.RoleMe.GetMonthID() == ncb.MonthID) { if (SceneRuntime.Instance != null) { SceneRuntime.SceneLogic.BackToHall(); } PlayerRole.Instance.OnUserLeaveTable();//玩家离开桌子的触发函数 } //因为一场比赛结束了 我们想要移除自己的报名信息 if (SignUpList.ContainsKey(ncb.MonthID))//移除比赛数据 { SignUpList.Remove(ncb.MonthID); tagMonthSignUpChangeEvent pEvnet = new tagMonthSignUpChangeEvent(); MsgEventHandle.HandleMsg(pEvnet); } PlayerRole.Instance.RoleGameData.OnHandleRoleMonthReward(Convert.ToUInt32(ncb.MonthIndex)); tagMonthEndEvent pEvent = new tagMonthEndEvent(ncb.MonthID, ncb.MonthIndex, ncb.MonthScores, ncb.VipScores); MsgEventHandle.HandleMsg(pEvent); return(true); }
public void ResetInfo() { OnClear(); //报名数据清空了 tagMonthSignUpChangeEvent pEvnet = new tagMonthSignUpChangeEvent(); MsgEventHandle.HandleMsg(pEvnet); //所有比赛排行榜清空了 foreach (tagMonthConfig var in FishConfig.Instance.m_MatchInfo.m_MonthVec) { tagMonthRankXmlChangeEvent pEventMonth = new tagMonthRankXmlChangeEvent(var.MonthID); MsgEventHandle.HandleMsg(pEventMonth); } }
private bool HandleRoleSignUpInfo(NetCmdBase obj) { //加载玩家的全部的报名信息 LC_Cmd_LoadRoleSignUpInfo ncb = (LC_Cmd_LoadRoleSignUpInfo)obj; if ((ncb.States & FishDataInfo.MsgBegin) != 0) { SignUpList.Clear(); } for (int i = 0; i < ncb.Sum; ++i) { SignUpList.Add(ncb.Array[i], 1); } if ((ncb.States & FishDataInfo.MsgEnd) != 0) { m_IsLoadInfo = true; tagMonthSignUpChangeEvent pEvnet = new tagMonthSignUpChangeEvent(); MsgEventHandle.HandleMsg(pEvnet); } //UIWidgetManager.Instance.SetContestSetContestPeopleNumber(); return(true); }//