Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -1105,11 +1105,9 @@ namespace Server.Commands
public class DecorationEntry
{
private Point3D m_Location;
private string m_Extra;
public Point3D Location { get; }
public Point3D Location => m_Location;
public string Extra => m_Extra;
public string Extra { get; }
public DecorationEntry( string line )
{
@ -1119,8 +1117,8 @@ namespace Server.Commands
Pop( out y, ref line );
Pop( out z, ref line );
m_Location = new Point3D( Utility.ToInt32( x ), Utility.ToInt32( y ), Utility.ToInt32( z ) );
m_Extra = line;
Location = new Point3D( Utility.ToInt32( x ), Utility.ToInt32( y ), Utility.ToInt32( z ) );
Extra = line;
}
public void Pop( out string v, ref string line )