Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -32,13 +32,11 @@ namespace Server.Engines.Quests.Ambitious
|
|||
|
||||
public override int Picture => 0x15C9;
|
||||
|
||||
private bool m_RedSolen;
|
||||
|
||||
public bool RedSolen => m_RedSolen;
|
||||
public bool RedSolen { get; private set; }
|
||||
|
||||
public AmbitiousQueenQuest( PlayerMobile from, bool redSolen ) : base( from )
|
||||
{
|
||||
m_RedSolen = redSolen;
|
||||
RedSolen = redSolen;
|
||||
}
|
||||
|
||||
// Serialization
|
||||
|
|
@ -50,14 +48,14 @@ namespace Server.Engines.Quests.Ambitious
|
|||
{
|
||||
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()
|
||||
|
|
|
|||
|
|
@ -95,25 +95,17 @@ namespace Server.Engines.Quests.Ambitious
|
|||
{
|
||||
public override object Message => 1054148;
|
||||
|
||||
private bool m_BagOfSending;
|
||||
private bool m_PowderOfTranslocation;
|
||||
private bool m_Gold;
|
||||
public bool BagOfSending { get; set; }
|
||||
|
||||
public bool BagOfSending{ get => m_BagOfSending;
|
||||
set => m_BagOfSending = value;
|
||||
}
|
||||
public bool PowderOfTranslocation{ get => m_PowderOfTranslocation;
|
||||
set => m_PowderOfTranslocation = value;
|
||||
}
|
||||
public bool Gold{ get => m_Gold;
|
||||
set => m_Gold = value;
|
||||
}
|
||||
public bool PowderOfTranslocation { get; set; }
|
||||
|
||||
public bool Gold { get; set; }
|
||||
|
||||
public GetRewardObjective( bool bagOfSending, bool powderOfTranslocation, bool gold)
|
||||
{
|
||||
m_BagOfSending = bagOfSending;
|
||||
m_PowderOfTranslocation = powderOfTranslocation;
|
||||
m_Gold = gold;
|
||||
BagOfSending = bagOfSending;
|
||||
PowderOfTranslocation = powderOfTranslocation;
|
||||
Gold = gold;
|
||||
}
|
||||
|
||||
public GetRewardObjective()
|
||||
|
|
@ -129,18 +121,18 @@ namespace Server.Engines.Quests.Ambitious
|
|||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_BagOfSending = reader.ReadBool();
|
||||
m_PowderOfTranslocation = reader.ReadBool();
|
||||
m_Gold = reader.ReadBool();
|
||||
BagOfSending = reader.ReadBool();
|
||||
PowderOfTranslocation = reader.ReadBool();
|
||||
Gold = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
|
||||
writer.Write( (bool) m_BagOfSending );
|
||||
writer.Write( (bool) m_PowderOfTranslocation );
|
||||
writer.Write( (bool) m_Gold );
|
||||
writer.Write( (bool) BagOfSending );
|
||||
writer.Write( (bool) PowderOfTranslocation );
|
||||
writer.Write( (bool) Gold );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue