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
|
|
@ -29,19 +29,15 @@ namespace Server.Regions
|
|||
}
|
||||
|
||||
private string m_RuneName;
|
||||
private bool m_NoLogoutDelay;
|
||||
|
||||
private SpawnEntry[] m_Spawns;
|
||||
private SpawnZLevel m_SpawnZLevel;
|
||||
private bool m_ExcludeFromParentSpawns;
|
||||
|
||||
public string RuneName{ get => m_RuneName;
|
||||
set => m_RuneName = value;
|
||||
}
|
||||
|
||||
public bool NoLogoutDelay{ get => m_NoLogoutDelay;
|
||||
set => m_NoLogoutDelay = value;
|
||||
}
|
||||
public bool NoLogoutDelay { get; set; }
|
||||
|
||||
public SpawnEntry[] Spawns
|
||||
{
|
||||
|
|
@ -58,9 +54,7 @@ namespace Server.Regions
|
|||
}
|
||||
}
|
||||
|
||||
public SpawnZLevel SpawnZLevel{ get => m_SpawnZLevel;
|
||||
set => m_SpawnZLevel = value;
|
||||
}
|
||||
public SpawnZLevel SpawnZLevel { get; set; }
|
||||
|
||||
public bool ExcludeFromParentSpawns{ get => m_ExcludeFromParentSpawns;
|
||||
set => m_ExcludeFromParentSpawns = value;
|
||||
|
|
@ -90,7 +84,7 @@ namespace Server.Regions
|
|||
|
||||
public override TimeSpan GetLogoutDelay( Mobile m )
|
||||
{
|
||||
if ( m_NoLogoutDelay )
|
||||
if ( NoLogoutDelay )
|
||||
{
|
||||
if ( m.Aggressors.Count == 0 && m.Aggressed.Count == 0 && !m.Criminal )
|
||||
return TimeSpan.Zero;
|
||||
|
|
@ -363,7 +357,7 @@ namespace Server.Regions
|
|||
}
|
||||
|
||||
int z;
|
||||
switch ( m_SpawnZLevel )
|
||||
switch ( SpawnZLevel )
|
||||
{
|
||||
case SpawnZLevel.Lowest:
|
||||
{
|
||||
|
|
@ -499,7 +493,7 @@ namespace Server.Regions
|
|||
|
||||
bool logoutDelayActive = true;
|
||||
ReadBoolean( xml["logoutDelay"], "active", ref logoutDelayActive, false );
|
||||
m_NoLogoutDelay = !logoutDelayActive;
|
||||
NoLogoutDelay = !logoutDelayActive;
|
||||
|
||||
|
||||
XmlElement spawning = xml["spawning"];
|
||||
|
|
@ -509,7 +503,7 @@ namespace Server.Regions
|
|||
|
||||
SpawnZLevel zLevel = SpawnZLevel.Lowest;
|
||||
ReadEnum( spawning, "zLevel", ref zLevel, false );
|
||||
m_SpawnZLevel = zLevel;
|
||||
SpawnZLevel = zLevel;
|
||||
|
||||
|
||||
List<SpawnEntry> list = new List<SpawnEntry>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue