Esempio n. 1
0
    public IEnumerable <T> Max(int count)
    {
        ValidateCount(count);

        foreach (var node in byOrder.OrderByDescending(x => x.Value).Take(count))
        {
            yield return(node.Value);
        }
    }
Esempio n. 2
0
        public IEnemy[] GetOrderedByHealth()
        {
            var curr = enemies.OrderByDescending(x => x.Health).ToArray();

            return(curr);
        }