Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
38
Scripts/Services/Factions/Core/SilverGivenEntry.cs
Normal file
38
Scripts/Services/Factions/Core/SilverGivenEntry.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user