Convert cloak types to use BitSet

Fixes #15412
This commit is contained in:
Chris Forbes
2018-07-28 22:10:28 -07:00
committed by reaperrr
parent 1f71377d82
commit 67d9ad6a93
2 changed files with 7 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
*/
#endregion
using System.Collections.Generic;
using OpenRA.Primitives;
namespace OpenRA.Mods.Common.Traits
{
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
public class DetectCloakedInfo : ConditionalTraitInfo
{
[Desc("Specific cloak classifications I can reveal.")]
public readonly HashSet<string> CloakTypes = new HashSet<string> { "Cloak" };
public readonly BitSet<CloakType> CloakTypes = new BitSet<CloakType>("Cloak");
public readonly WDist Range = WDist.FromCells(5);