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

@@ -10,16 +10,20 @@
#endregion
using System.Collections.Generic;
using OpenRA.Primitives;
using OpenRA.Traits;
namespace OpenRA.Mods.Cnc.Traits
{
// Type tag for CloneableTypes
public class CloneableType { }
[Desc("Actors with the \"ClonesProducedUnits\" trait will produce a free duplicate of me.")]
public class CloneableInfo : TraitInfo<Cloneable>
{
[FieldLoader.Require]
[Desc("This unit's cloneable type is:")]
public readonly HashSet<string> Types = new HashSet<string>();
public readonly BitSet<CloneableType> Types = default(BitSet<CloneableType>);
}
public class Cloneable { }