//收到小战绩 private void UerRoomRoundScore(byte[] tmpBuf) { CMD_MB_ROUND_LIST roundList = NetUtil.BytesToStruct <CMD_MB_ROUND_LIST>(tmpBuf); MainNewsDataManager.instance.SetMyQueryList(roundList); SocketEngine.Instance.SocketQuit(); }
public void SetMyQueryList(CMD_MB_ROUND_LIST roundList) { if (myRoundQureylist == null) { myRoundQureylist = new List <CMD_MB_ROUND_INFO>(); } // myRoundQureylist.Clear(); for (int i = 0; i < roundList.count; i++) { if (roundList.roomInfo.Length > i) { myRoundQureylist.Add(roundList.roomInfo[i]); } } SocketEventHandle.Instance.SetClientResponse(APIS.ZHANJI_DETAIL_REPORTER_REPONSE, null); }