mirror of
https://github.com/runuo/runuo
synced 2026-08-11 22:26:04 -04:00
Convert movement, actions (lift/use), combat, and spells to use Core.TickCount and avoid DateTime caveats (performance, system time dependency, etc) Refactor DateTime.Now to DateTime.UtcNow Add LOS check for Iron Maiden addon
23 lines
No EOL
559 B
C#
23 lines
No EOL
559 B
C#
using System;
|
|
|
|
namespace Server.Factions
|
|
{
|
|
public class SilverGivenEntry
|
|
{
|
|
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours( 3.0 );
|
|
|
|
private Mobile m_GivenTo;
|
|
private DateTime m_TimeOfGift;
|
|
|
|
public Mobile GivenTo{ get{ return m_GivenTo; } }
|
|
public DateTime TimeOfGift{ get{ return m_TimeOfGift; } }
|
|
|
|
public bool IsExpired{ get{ return ( m_TimeOfGift + ExpirePeriod ) < DateTime.UtcNow; } }
|
|
|
|
public SilverGivenEntry( Mobile givenTo )
|
|
{
|
|
m_GivenTo = givenTo;
|
|
m_TimeOfGift = DateTime.UtcNow;
|
|
}
|
|
}
|
|
} |