Files
abysmal-isle/Scripts/Services/Factions/Core/SilverGivenEntry.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

38 lines
862 B
C#

using System;
namespace Server.Factions
{
public class SilverGivenEntry
{
public static readonly TimeSpan ExpirePeriod = TimeSpan.FromHours(3.0);
private readonly Mobile m_GivenTo;
private readonly DateTime m_TimeOfGift;
public SilverGivenEntry(Mobile givenTo)
{
this.m_GivenTo = givenTo;
this.m_TimeOfGift = DateTime.UtcNow;
}
public Mobile GivenTo
{
get
{
return this.m_GivenTo;
}
}
public DateTime TimeOfGift
{
get
{
return this.m_TimeOfGift;
}
}
public bool IsExpired
{
get
{
return (this.m_TimeOfGift + ExpirePeriod) < DateTime.UtcNow;
}
}
}
}