Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -69,9 +69,7 @@ namespace Server.Engines.Plants
public static PlantHueInfo GetInfo( PlantHue plantHue )
{
PlantHueInfo info = null;
if (m_Table.TryGetValue(plantHue, out info))
if (m_Table.TryGetValue( plantHue, out PlantHueInfo info ))
return info;
else
return m_Table[PlantHue.Plain];
@ -150,10 +148,10 @@ namespace Server.Engines.Plants
private PlantHue m_PlantHue;
private int m_GumpHue;
public int Hue { get { return m_Hue; } }
public int Name { get { return m_Name; } }
public PlantHue PlantHue { get { return m_PlantHue; } }
public int GumpHue { get { return m_GumpHue; } }
public int Hue => m_Hue;
public int Name => m_Name;
public PlantHue PlantHue => m_PlantHue;
public int GumpHue => m_GumpHue;
private PlantHueInfo( int hue, int name, PlantHue plantHue ) : this( hue, name, plantHue, hue )
{
@ -187,4 +185,4 @@ namespace Server.Engines.Plants
return IsPrimary( m_PlantHue );
}
}
}
}