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

@@ -48,8 +48,11 @@ namespace OpenRA.Mods.Cnc.Traits
IPositionable iPositionable;
// Return-to-origin logic
[Sync] public CPos Origin;
[Sync] public int ReturnTicks = 0;
[Sync]
public CPos Origin;
[Sync]
public int ReturnTicks = 0;
public Chronoshiftable(ActorInitializer init, ChronoshiftableInfo info)
: base(info)
@@ -180,7 +183,9 @@ namespace OpenRA.Mods.Cnc.Traits
public class ChronoshiftReturnInit : IActorInit<int>
{
[FieldFromYamlKey] readonly int value = 0;
[FieldFromYamlKey]
readonly int value = 0;
public ChronoshiftReturnInit() { }
public ChronoshiftReturnInit(int init) { value = init; }
public int Value(World world) { return value; }
@@ -188,7 +193,9 @@ namespace OpenRA.Mods.Cnc.Traits
public class ChronoshiftDurationInit : IActorInit<int>
{
[FieldFromYamlKey] readonly int value = 0;
[FieldFromYamlKey]
readonly int value = 0;
public ChronoshiftDurationInit() { }
public ChronoshiftDurationInit(int init) { value = init; }
public int Value(World world) { return value; }
@@ -196,7 +203,9 @@ namespace OpenRA.Mods.Cnc.Traits
public class ChronoshiftOriginInit : IActorInit<CPos>
{
[FieldFromYamlKey] readonly CPos value;
[FieldFromYamlKey]
readonly CPos value;
public ChronoshiftOriginInit(CPos init) { value = init; }
public CPos Value(World world) { return value; }
}