Document BitSet<TargetableType>

This commit is contained in:
Matthias Mailänder
2020-03-08 22:17:00 +01:00
committed by abcdefg30
parent a1c9b27057
commit 3df43529a6
8 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ namespace OpenRA.Mods.Cnc.Traits
[Desc("Funds are transferred from the owner to the infiltrator.")]
class InfiltrateForCashInfo : ITraitInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[Desc("Percentage of the victim's resources that will be stolen.")]

View File

@@ -21,6 +21,7 @@ namespace OpenRA.Mods.Cnc.Traits
[Desc("Reveals a decoration sprite to the indicated players when infiltrated.")]
class InfiltrateForDecorationInfo : WithDecorationInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
public override object Create(ActorInitializer init) { return new InfiltrateForDecoration(init.Self, this); }

View File

@@ -19,6 +19,7 @@ namespace OpenRA.Mods.Cnc.Traits
[Desc("Steal and reset the owner's exploration.")]
class InfiltrateForExplorationInfo : ITraitInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[NotificationReference("Speech")]

View File

@@ -17,6 +17,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
class InfiltrateForPowerOutageInfo : ITraitInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[Desc("Measured in ticks.")]

View File

@@ -21,6 +21,7 @@ namespace OpenRA.Mods.Cnc.Traits
[FieldLoader.Require]
public readonly string Proxy = null;
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[NotificationReference("Speech")]

View File

@@ -18,6 +18,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
class InfiltrateForSupportPowerResetInfo : ITraitInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
public object Create(ActorInitializer init) { return new InfiltrateForSupportPowerReset(this); }

View File

@@ -29,6 +29,7 @@ namespace OpenRA.Mods.Cnc.Traits
public readonly bool SkipMakeAnims = true;
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
public object Create(ActorInitializer init) { return new InfiltrateForTransform(init, this); }

View File

@@ -22,6 +22,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
public class InfiltratesInfo : ConditionalTraitInfo
{
[Desc("The `TargetTypes` from `Targetable` that are allowed to enter.")]
public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[VoiceReference]