public void RecvCupCompetitionAllRoundTime(IntPtr ptrParam, int nPtrLen) { IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen); cmd_legendcup_competition_kinmemberhead headData = helper.get <cmd_legendcup_competition_kinmemberhead>(); long nLegendCupID = headData.nLegendCupID; if (!m_legendCupCompetitionDic.ContainsKey(nLegendCupID)) { SingleCompetitionInfo info = new SingleCompetitionInfo(); m_legendCupCompetitionDic.Add(nLegendCupID, info); } // 时间从这里获取 m_legendCupCompetitionDic[nLegendCupID].roundInfo = new List <cmd_legendcup_recv_competition_roundinfo>(); for (int i = 0; i < headData.nMemberCount; i++) { cmd_legendcup_recv_competition_roundinfo roundData = helper.get <cmd_legendcup_recv_competition_roundinfo>(); m_legendCupCompetitionDic[nLegendCupID].roundInfo.Add(roundData); } }
// LegendCupCompetition(Group, BigKnockout, SmallKnockout) public void RecvCupCompetitionKinMember(IntPtr ptrParam, int nPtrLen) { m_CompetitionKinMemberDic.Clear(); IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen); cmd_legendcup_competition_kinmemberhead headData = helper.get <cmd_legendcup_competition_kinmemberhead>(); for (int i = 0; i < headData.nMemberCount; ++i) { cmd_legendcup_competition_kinmembernode data = helper.get <cmd_legendcup_competition_kinmembernode>(); List <cmd_legendcup_competition_kinmembernode> memberList = null; if (m_CompetitionKinMemberDic.TryGetValue(data.nKinID, out memberList)) { memberList.Add(data); } else { memberList = new List <cmd_legendcup_competition_kinmembernode>(); memberList.Add(data); m_CompetitionKinMemberDic[data.nKinID] = memberList; } } }