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

@@ -27,21 +27,21 @@ namespace OpenRA.Mods.Common.Scripting
}
[Desc("The combined value of units killed by this player.")]
public int KillsCost { get { return stats.KillsCost; } }
public int KillsCost => stats.KillsCost;
[Desc("The combined value of all units lost by this player.")]
public int DeathsCost { get { return stats.DeathsCost; } }
public int DeathsCost => stats.DeathsCost;
[Desc("The total number of units killed by this player.")]
public int UnitsKilled { get { return stats.UnitsKilled; } }
public int UnitsKilled => stats.UnitsKilled;
[Desc("The total number of units lost by this player.")]
public int UnitsLost { get { return stats.UnitsDead; } }
public int UnitsLost => stats.UnitsDead;
[Desc("The total number of buildings killed by this player.")]
public int BuildingsKilled { get { return stats.BuildingsKilled; } }
public int BuildingsKilled => stats.BuildingsKilled;
[Desc("The total number of buildings lost by this player.")]
public int BuildingsLost { get { return stats.BuildingsDead; } }
public int BuildingsLost => stats.BuildingsDead;
}
}