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

@ -9,11 +9,7 @@ namespace Server.Items
{
public override BaseAddonDeed Deed => new LoomEastDeed();
private int m_Phase;
public int Phase{ get => m_Phase;
set => m_Phase = value;
}
public int Phase { get; set; }
[Constructible]
public LoomEastAddon()
@ -32,7 +28,7 @@ namespace Server.Items
writer.Write( (int) 1 ); // version
writer.Write( (int) m_Phase );
writer.Write( (int) Phase );
}
public override void Deserialize( GenericReader reader )
@ -45,7 +41,7 @@ namespace Server.Items
{
case 1:
{
m_Phase = reader.ReadInt();
Phase = reader.ReadInt();
break;
}
}