From dcd057d032e1ede2ae5036bf6d269e96c1444784 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Mon, 16 May 2016 02:02:44 +0200 Subject: [PATCH] Make DamageStates flags --- OpenRA.Game/Traits/TraitsInterfaces.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Traits/TraitsInterfaces.cs b/OpenRA.Game/Traits/TraitsInterfaces.cs index 56346096a4..be07eb8eab 100644 --- a/OpenRA.Game/Traits/TraitsInterfaces.cs +++ b/OpenRA.Game/Traits/TraitsInterfaces.cs @@ -22,7 +22,16 @@ namespace OpenRA.Traits { public sealed class RequireExplicitImplementationAttribute : Attribute { } - public enum DamageState { Undamaged, Light, Medium, Heavy, Critical, Dead } + [Flags] + public enum DamageState + { + Undamaged = 1, + Light = 2, + Medium = 4, + Heavy = 8, + Critical = 16, + Dead = 32 + } public interface IHealth {