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

@ -82,13 +82,7 @@ namespace Server
Refresh();
}
private static TimeSpan m_ExpireDelay = TimeSpan.FromMinutes( 2.0 );
public static TimeSpan ExpireDelay
{
get => m_ExpireDelay;
set => m_ExpireDelay = value;
}
public static TimeSpan ExpireDelay { get; set; } = TimeSpan.FromMinutes( 2.0 );
public static void DumpAccess()
{
@ -108,7 +102,7 @@ namespace Server
if ( m_Queued )
DumpAccess();
return ( m_Attacker.Deleted || m_Defender.Deleted || DateTime.UtcNow >= (m_LastCombatTime + m_ExpireDelay) );
return ( m_Attacker.Deleted || m_Defender.Deleted || DateTime.UtcNow >= (m_LastCombatTime + ExpireDelay) );
}
}