Fix and enable SA1133, SA1134 style rules.

This commit is contained in:
Paul Chote
2019-05-23 18:43:21 +00:00
committed by abcdefg30
parent fbf9461890
commit 78a70be0d4
214 changed files with 1012 additions and 432 deletions

View File

@@ -28,14 +28,17 @@ namespace OpenRA.Mods.Cnc.Traits
[Desc("The percentage of damage that is received while this actor is closed.")]
public readonly int ClosedDamageMultiplier = 50;
[SequenceReference]
[Desc("Sequence to play when opening.")]
[SequenceReference] public readonly string OpeningSequence = "opening";
public readonly string OpeningSequence = "opening";
[SequenceReference]
[Desc("Sequence to play when closing.")]
[SequenceReference] public readonly string ClosingSequence = "closing";
public readonly string ClosingSequence = "closing";
[SequenceReference]
[Desc("Idle sequence to play when closed.")]
[SequenceReference] public readonly string ClosedIdleSequence = "closed-idle";
public readonly string ClosedIdleSequence = "closed-idle";
[Desc("Which sprite body to play the animation on.")]
public readonly string Body = "body";

View File

@@ -41,8 +41,11 @@ namespace OpenRA.Mods.Cnc.Traits
{
readonly AttackTeslaInfo info;
[Sync] int charges;
[Sync] int timeToRecharge;
[Sync]
int charges;
[Sync]
int timeToRecharge;
public AttackTesla(Actor self, AttackTeslaInfo info)
: base(self, info)