Fix CA1012
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
|
||||
DeveloperMode developerMode;
|
||||
|
||||
public SelectionDecorationsBase(SelectionDecorationsBaseInfo info)
|
||||
protected SelectionDecorationsBase(SelectionDecorationsBaseInfo info)
|
||||
{
|
||||
Info = info;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user