Fixed inconsistent declaration modifier order

This commit is contained in:
penev92
2022-01-09 21:57:51 +02:00
committed by abcdefg30
parent 3bacd81b8b
commit d37336456d
4 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits
throw new YamlException("Facing tolerance must be in range of [0, 512], 512 covers 360 degrees.");
}
public override abstract object Create(ActorInitializer init);
public abstract override object Create(ActorInitializer init);
}
public abstract class AttackBase : PausableConditionalTrait<AttackBaseInfo>, ITick, IIssueOrder, IResolveOrder, IOrderVoice, ISync

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits
public class AttackFrontalInfo : AttackBaseInfo, Requires<IFacingInfo>
{
[Desc("Tolerance for attack angle. Range [0, 512], 512 covers 360 degrees.")]
public readonly new WAngle FacingTolerance = WAngle.Zero;
public new readonly WAngle FacingTolerance = WAngle.Zero;
public override object Create(ActorInitializer init) { return new AttackFrontal(init.Self, this); }
}

View File

@@ -77,7 +77,7 @@ namespace OpenRA.Mods.Common.Traits
public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender
{
public readonly new AttackGarrisonedInfo Info;
public new readonly AttackGarrisonedInfo Info;
Lazy<BodyOrientation> coords;
List<Armament> armaments;
List<AnimationWithOffset> muzzles;

View File

@@ -43,7 +43,7 @@ namespace OpenRA.Mods.D2k.Traits
class AttackSwallow : AttackFrontal
{
public readonly new AttackSwallowInfo Info;
public new readonly AttackSwallowInfo Info;
public AttackSwallow(Actor self, AttackSwallowInfo info)
: base(self, info)