Use expression body syntax
This commit is contained in:
@@ -103,13 +103,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
bool isTailTravelling;
|
||||
bool continueTracking = true;
|
||||
|
||||
bool IsBeamComplete
|
||||
{
|
||||
get
|
||||
{
|
||||
return !isHeadTravelling && headTicks >= length && !isTailTravelling && tailTicks >= length;
|
||||
}
|
||||
}
|
||||
bool IsBeamComplete => !isHeadTravelling && headTicks >= length && !isTailTravelling && tailTicks >= length;
|
||||
|
||||
public AreaBeam(AreaBeamInfo info, ProjectileArgs args, Color color)
|
||||
{
|
||||
|
||||
@@ -159,6 +159,6 @@ namespace OpenRA.Mods.Common.Effects
|
||||
return anim.Render(pos, wr.Palette(weaponPalette));
|
||||
}
|
||||
|
||||
public float FractionComplete { get { return ticks * 1f / impactDelay; } }
|
||||
public float FractionComplete => ticks * 1f / impactDelay;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user