Fix CA1012
This commit is contained in:
@@ -372,7 +372,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
readonly int terrainOrientationMargin;
|
||||
protected int progress;
|
||||
|
||||
public MovePart(Move move, WPos from, WPos to, WAngle fromFacing, WAngle toFacing,
|
||||
protected MovePart(Move move, WPos from, WPos to, WAngle fromFacing, WAngle toFacing,
|
||||
WRot? fromTerrainOrientation, WRot? toTerrainOrientation, int terrainOrientationMargin,
|
||||
int carryoverProgress, bool shouldArc, bool movingOnGroundLayer)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.Orders
|
||||
{
|
||||
readonly string order;
|
||||
|
||||
public GlobalButtonOrderGenerator(string order)
|
||||
protected GlobalButtonOrderGenerator(string order)
|
||||
{
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.Orders
|
||||
readonly string cursor;
|
||||
readonly bool targetEnemyUnits, targetAllyUnits;
|
||||
|
||||
public UnitOrderTargeter(string order, int priority, string cursor, bool targetEnemyUnits, bool targetAllyUnits)
|
||||
protected UnitOrderTargeter(string order, int priority, string cursor, bool targetEnemyUnits, bool targetAllyUnits)
|
||||
{
|
||||
OrderID = order;
|
||||
OrderPriority = priority;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -569,7 +569,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string Name;
|
||||
public readonly int DisplayOrder;
|
||||
|
||||
public EditorActorOption(string name, int displayOrder)
|
||||
protected EditorActorOption(string name, int displayOrder)
|
||||
{
|
||||
Name = name;
|
||||
DisplayOrder = displayOrder;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
protected string[] allCategories;
|
||||
protected string searchFilter;
|
||||
|
||||
public CommonSelectorLogic(Widget widget, ModData modData, World world, WorldRenderer worldRenderer, string templateListId, string previewTemplateId)
|
||||
protected CommonSelectorLogic(Widget widget, ModData modData, World world, WorldRenderer worldRenderer, string templateListId, string previewTemplateId)
|
||||
{
|
||||
Widget = widget;
|
||||
ModData = modData;
|
||||
|
||||
Reference in New Issue
Block a user