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
|
|
@ -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) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue