using System;
using System.Collections.Generic;
namespace Content.Shared.MobState
{
public static class DamageStateHelpers
{
///
/// Enumerates over , returning them in order
/// of alive to dead.
///
/// An enumerable of .
public static IEnumerable AliveToDead()
{
foreach (DamageState state in Enum.GetValues(typeof(DamageState)))
{
if (state == DamageState.Invalid)
{
continue;
}
yield return state;
}
}
}
}