using System; using System.Collections.Generic; namespace Content.Shared.GameObjects.Components.Mobs { 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; } } } }