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

@@ -19,7 +19,9 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Actor becomes a specified actor type when this trait is triggered.")]
public class TransformsInfo : PausableConditionalTraitInfo
{
[Desc("Actor to transform into."), ActorReference, FieldLoader.Require]
[ActorReference]
[FieldLoader.Require]
[Desc("Actor to transform into.")]
public readonly string IntoActor = null;
[Desc("Offset to spawn the transformed actor relative to the current cell.")]
@@ -48,7 +50,8 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Cursor to display when unable to (un)deploy the actor.")]
public readonly string DeployBlockedCursor = "deploy-blocked";
[VoiceReference] public readonly string Voice = "Action";
[VoiceReference]
public readonly string Voice = "Action";
public override object Create(ActorInitializer init) { return new Transforms(init, this); }
}