StyleCop clean OpenRA.Game
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Delay between charge attacks (in ticks).")]
|
||||
public readonly int ChargeDelay = 3;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new AttackCharge(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackCharge(init.Self, this); }
|
||||
}
|
||||
|
||||
class AttackCharge : AttackOmni, ITick, INotifyAttack, ISync
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Actor will follow units until in range to attack them.")]
|
||||
public class AttackFollowInfo : AttackBaseInfo
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new AttackFollow(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackFollow(init.Self, this); }
|
||||
}
|
||||
|
||||
public class AttackFollow : AttackBase, ITick, ISync
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
public readonly int FacingTolerance = 1;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new AttackFrontal(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackFrontal(init.Self, this); }
|
||||
}
|
||||
|
||||
public class AttackFrontal : AttackBase
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"heal process then. It also won't work with buildings (use RepairsUnits: for them)")]
|
||||
public class AttackMedicInfo : AttackFrontalInfo
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new AttackMedic(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackMedic(init.Self, this); }
|
||||
}
|
||||
|
||||
public class AttackMedic : AttackFrontal
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
class AttackOmniInfo : AttackBaseInfo
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new AttackOmni(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackOmni(init.Self, this); }
|
||||
}
|
||||
|
||||
class AttackOmni : AttackBase, ISync
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Actor has a visual turret used to attack.")]
|
||||
public class AttackTurretedInfo : AttackFollowInfo, Requires<TurretedInfo>
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new AttackTurreted(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackTurreted(init.Self, this); }
|
||||
}
|
||||
|
||||
public class AttackTurreted : AttackFollow, ITick, ISync
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"This conflicts with player orders and should only be added to animal creeps.")]
|
||||
class AttackWanderInfo : WandersInfo, Requires<AttackMoveInfo>
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new AttackWander(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new AttackWander(init.Self, this); }
|
||||
}
|
||||
|
||||
class AttackWander : Wanders
|
||||
|
||||
Reference in New Issue
Block a user