Пример #1
0
 public string GetLastWill()
 {
     return(RoleSlots
            .Where(rs => rs.Team == Team.Town && !(rs.IsTemporary && rs.Player == null))
            .Select(rs => rs.LastWillLine)
            .Aggregate((i, j) => i + "\r\n" + j)
            + Environment.NewLine
            + Players.GetLastWill());
 }
Пример #2
0
 private List <Player> GetOverclaimPlayers(Role role) =>
 RoleSlots.Where(rs => rs.Player != null && !rs.Player.IsConfirmed && rs.CanHold(role.Group.Name)).Select(rs => rs.Player).ToList();