Use expression body syntax

This commit is contained in:
teinarss
2021-02-25 20:52:13 +01:00
committed by Paul Chote
parent 555c43843b
commit 4a1e4f3e16
403 changed files with 1342 additions and 2031 deletions

View File

@@ -95,13 +95,13 @@ namespace OpenRA.Mods.Common.Traits
[Sync]
bool buildAnywhere;
public bool FastCharge { get { return Enabled && fastCharge; } }
public bool AllTech { get { return Enabled && allTech; } }
public bool FastBuild { get { return Enabled && fastBuild; } }
public bool DisableShroud { get { return Enabled && disableShroud; } }
public bool PathDebug { get { return Enabled && pathDebug; } }
public bool UnlimitedPower { get { return Enabled && unlimitedPower; } }
public bool BuildAnywhere { get { return Enabled && buildAnywhere; } }
public bool FastCharge => Enabled && fastCharge;
public bool AllTech => Enabled && allTech;
public bool FastBuild => Enabled && fastBuild;
public bool DisableShroud => Enabled && disableShroud;
public bool PathDebug => Enabled && pathDebug;
public bool UnlimitedPower => Enabled && unlimitedPower;
public bool BuildAnywhere => Enabled && buildAnywhere;
bool enableAll;
@@ -275,6 +275,6 @@ namespace OpenRA.Mods.Common.Traits
Game.Debug("Cheat used: {0} by {1}{2}", order.OrderString, self.Owner.PlayerName, debugSuffix);
}
bool IUnlocksRenderPlayer.RenderPlayerUnlocked { get { return Enabled; } }
bool IUnlocksRenderPlayer.RenderPlayerUnlocked => Enabled;
}
}