Fix invalid spacing style warnings.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
this.desiredFacing = desiredFacing;
|
||||
}
|
||||
|
||||
public override Activity Tick( Actor self )
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
if (IsCanceled)
|
||||
return NextActivity;
|
||||
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
var facing = self.Trait<IFacing>();
|
||||
|
||||
if( desiredFacing == facing.Facing )
|
||||
if (desiredFacing == facing.Facing)
|
||||
return NextActivity;
|
||||
facing.Facing = Util.TickFacing(facing.Facing, desiredFacing, facing.ROT);
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ namespace OpenRA.Mods.Common.Activities
|
||||
return (remainingTicks-- == 0) ? NextActivity : this;
|
||||
}
|
||||
|
||||
public override void Cancel( Actor self )
|
||||
public override void Cancel(Actor self)
|
||||
{
|
||||
if( !interruptable )
|
||||
if (!interruptable)
|
||||
return;
|
||||
|
||||
remainingTicks = 0;
|
||||
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
return (f == null || f()) ? NextActivity : this;
|
||||
}
|
||||
|
||||
public override void Cancel( Actor self )
|
||||
public override void Cancel(Actor self)
|
||||
{
|
||||
if (!interruptable)
|
||||
return;
|
||||
|
||||
@@ -75,8 +75,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
WRange.FromCells(Info.Range),
|
||||
0,
|
||||
Color.FromArgb(128, Ready() ? Color.White : Color.Red),
|
||||
Color.FromArgb(96, Color.Black)
|
||||
);
|
||||
Color.FromArgb(96, Color.Black));
|
||||
}
|
||||
|
||||
// Selection bar
|
||||
|
||||
@@ -22,5 +22,5 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string[] NodeTypes = { "wall" };
|
||||
}
|
||||
|
||||
public class LineBuild {}
|
||||
public class LineBuild { }
|
||||
}
|
||||
|
||||
@@ -19,5 +19,5 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string[] Types = { "wall" };
|
||||
}
|
||||
|
||||
public class LineBuildNode {}
|
||||
public class LineBuildNode { }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public class RadarColorFromTerrainInfo : ITraitInfo
|
||||
{
|
||||
public readonly string Terrain;
|
||||
public object Create( ActorInitializer init ) { return new RadarColorFromTerrain(init.self,Terrain); }
|
||||
public object Create(ActorInitializer init) { return new RadarColorFromTerrain(init.self, Terrain); }
|
||||
}
|
||||
|
||||
public class RadarColorFromTerrain : IRadarColorModifier
|
||||
|
||||
Reference in New Issue
Block a user