/// <summary> /// 获取等待组队列表 /// </summary> /// <returns></returns> public List <MorePlotTeam> ToTeamList() { List <MorePlotTeam> list = new List <MorePlotTeam>(); if (_teamList != null) { List <KeyValuePair <int, MorePlotTeam> > cuserList = _teamList.ToList(); foreach (KeyValuePair <int, MorePlotTeam> keyPair in cuserList) { MorePlotTeam cuser = keyPair.Value; if (cuser.IsAllow && IsCombat(cuser.MorePlot.PlotID)) { list.Add(cuser); } } } return(list); }