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
|
|
@ -53,13 +53,7 @@ namespace Server.Engines.Quests.Ninja
|
|||
|
||||
public class SneakPastGuardiansObjective : QuestObjective
|
||||
{
|
||||
private bool m_TaughtHowToUseSkills;
|
||||
|
||||
public bool TaughtHowToUseSkills
|
||||
{
|
||||
get => m_TaughtHowToUseSkills;
|
||||
set => m_TaughtHowToUseSkills = value;
|
||||
}
|
||||
public bool TaughtHowToUseSkills { get; set; }
|
||||
|
||||
public override object Message => 1063261;
|
||||
|
||||
|
|
@ -82,14 +76,14 @@ namespace Server.Engines.Quests.Ninja
|
|||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_TaughtHowToUseSkills = reader.ReadBool();
|
||||
TaughtHowToUseSkills = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
|
||||
writer.Write( (bool) m_TaughtHowToUseSkills );
|
||||
writer.Write( (bool) TaughtHowToUseSkills );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -173,13 +167,7 @@ namespace Server.Engines.Quests.Ninja
|
|||
|
||||
public class HallwayWalkObjective : QuestObjective
|
||||
{
|
||||
private bool m_StolenTreasure;
|
||||
|
||||
public bool StolenTreasure
|
||||
{
|
||||
get => m_StolenTreasure;
|
||||
set => m_StolenTreasure = value;
|
||||
}
|
||||
public bool StolenTreasure { get; set; }
|
||||
|
||||
public override object Message => 1063202;
|
||||
|
||||
|
|
@ -196,14 +184,14 @@ namespace Server.Engines.Quests.Ninja
|
|||
{
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_StolenTreasure = reader.ReadBool();
|
||||
StolenTreasure = reader.ReadBool();
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
{
|
||||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
|
||||
writer.Write( (bool) m_StolenTreasure );
|
||||
writer.Write( (bool) StolenTreasure );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue