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

@ -87,13 +87,11 @@ namespace Server.Engines.Quests.Matriarch
public override int Picture => 0x15C9;
private bool m_RedSolen;
public bool RedSolen => m_RedSolen;
public bool RedSolen { get; private set; }
public SolenMatriarchQuest( PlayerMobile from, bool redSolen ) : base( from )
{
m_RedSolen = redSolen;
RedSolen = redSolen;
}
// Serialization
@ -105,14 +103,14 @@ namespace Server.Engines.Quests.Matriarch
{
int version = reader.ReadEncodedInt();
m_RedSolen = reader.ReadBool();
RedSolen = reader.ReadBool();
}
public override void ChildSerialize( GenericWriter writer )
{
writer.WriteEncodedInt( (int) 0 ); // version
writer.Write( (bool) m_RedSolen );
writer.Write( (bool) RedSolen );
}
public override void Accept()