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
|
|
@ -80,18 +80,18 @@ namespace Server.Factions
|
|||
Movable = false;
|
||||
Town = town;
|
||||
Faction = faction;
|
||||
m_Monoliths.Add( this );
|
||||
Monoliths.Add( this );
|
||||
}
|
||||
|
||||
public BaseMonolith( Serial serial ) : base( serial )
|
||||
{
|
||||
m_Monoliths.Add( this );
|
||||
Monoliths.Add( this );
|
||||
}
|
||||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
base.OnAfterDelete();
|
||||
m_Monoliths.Remove( this );
|
||||
Monoliths.Remove( this );
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
|
|
@ -124,12 +124,6 @@ namespace Server.Factions
|
|||
}
|
||||
}
|
||||
|
||||
private static List<BaseMonolith> m_Monoliths = new List<BaseMonolith>();
|
||||
|
||||
public static List<BaseMonolith> Monoliths
|
||||
{
|
||||
get => m_Monoliths;
|
||||
set => m_Monoliths = value;
|
||||
}
|
||||
public static List<BaseMonolith> Monoliths { get; set; } = new List<BaseMonolith>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue