Convert cloneabletypes to bitsets

Fixes #15411
This commit is contained in:
Chris Forbes
2018-07-28 22:03:20 -07:00
committed by reaperrr
parent 8634c001f9
commit 1f71377d82
2 changed files with 6 additions and 3 deletions

View File

@@ -9,7 +9,6 @@
*/
#endregion
using System.Collections.Generic;
using OpenRA.Mods.Common;
using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives;
@@ -22,7 +21,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
[FieldLoader.Require]
[Desc("Uses the \"Cloneable\" trait to determine whether or not we should clone a produced unit.")]
public readonly HashSet<string> CloneableTypes = new HashSet<string>();
public readonly BitSet<CloneableType> CloneableTypes = default(BitSet<CloneableType>);
public object Create(ActorInitializer init) { return new ClonesProducedUnits(init, this); }
}