示例#1
0
文件: Room.cs 项目: KingCrazy/S115
 public int CountInTeam(ETeam team, EPlayerGameMode gameMode = EPlayerGameMode.Normal)
 {
     var res = _players.Values.Where(plr => plr.Team == team && plr.GameMode == gameMode);
     return res.Count();
 }
示例#2
0
        public int CountInTeam(ETeam team, EPlayerGameMode gameMode = EPlayerGameMode.Normal)
        {
            var res = _players.Values.Where(plr => plr.Team == team && plr.GameMode == gameMode);

            return(res.Count());
        }