Fix CA1012

This commit is contained in:
RoosterDragon
2023-03-12 11:16:15 +00:00
committed by abcdefg30
parent 19fa03435b
commit f336a956cf
19 changed files with 29 additions and 22 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
protected abstract void AddCellsToPlayerShroud(Actor self, Player player, PPos[] uv);
protected abstract void RemoveCellsFromPlayerShroud(Actor self, Player player);
public AffectsShroud(AffectsShroudInfo info)
protected AffectsShroud(AffectsShroudInfo info)
: base(info)
{
if (Info.Type == VisibilityType.Footprint)

View File

@@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Traits
bool wasAiming;
public AttackBase(Actor self, AttackBaseInfo info)
protected AttackBase(Actor self, AttackBaseInfo info)
: base(info)
{
this.self = self;

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
[Sync]
public bool IsTraitDisabled { get; private set; }
public ConditionalTrait(InfoType info)
protected ConditionalTrait(InfoType info)
{
Info = info;

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
protected readonly byte ValidLayerType;
protected int conditionToken = Actor.InvalidConditionToken;
public GrantConditionOnLayer(InfoType info, byte validLayer)
protected GrantConditionOnLayer(InfoType info, byte validLayer)
: base(info)
{
ValidLayerType = validLayer;

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits.Render
DeveloperMode developerMode;
public SelectionDecorationsBase(SelectionDecorationsBaseInfo info)
protected SelectionDecorationsBase(SelectionDecorationsBaseInfo info)
{
Info = info;
}

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Traits.Render
int2 conditionalOffset;
BlinkState[] blinkPattern;
public WithDecorationBase(Actor self, InfoType info)
protected WithDecorationBase(Actor self, InfoType info)
: base(info)
{
Self = self;

View File

@@ -141,7 +141,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Sort order for the support power palette. Smaller numbers are presented earlier.")]
public readonly int SupportPowerPaletteOrder = 9999;
public SupportPowerInfo() { OrderName = GetType().Name + "Order"; }
protected SupportPowerInfo() { OrderName = GetType().Name + "Order"; }
}
public class SupportPower : PausableConditionalTrait<SupportPowerInfo>