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

@@ -40,25 +40,25 @@ namespace OpenRA.Mods.Common.Scripting
public double Red
{
get { return hasLighting ? lighting.Red : 1d; }
get => hasLighting ? lighting.Red : 1d;
set { if (hasLighting) lighting.Red = (float)value; }
}
public double Green
{
get { return hasLighting ? lighting.Green : 1d; }
get => hasLighting ? lighting.Green : 1d;
set { if (hasLighting) lighting.Green = (float)value; }
}
public double Blue
{
get { return hasLighting ? lighting.Blue : 1d; }
get => hasLighting ? lighting.Blue : 1d;
set { if (hasLighting) lighting.Blue = (float)value; }
}
public double Ambient
{
get { return hasLighting ? lighting.Ambient : 1d; }
get => hasLighting ? lighting.Ambient : 1d;
set { if (hasLighting) lighting.Ambient = (float)value; }
}
}