This commit is contained in:
mark 2006-06-15 04:14:30 +00:00
commit 47711d616e
2644 changed files with 479454 additions and 0 deletions

View file

@ -0,0 +1,42 @@
using System;
namespace Server.Engines.Quests
{
public class QuestRestartInfo
{
private Type m_QuestType;
private DateTime m_RestartTime;
public Type QuestType
{
get{ return m_QuestType; }
set{ m_QuestType = value; }
}
public DateTime RestartTime
{
get{ return m_RestartTime; }
set{ m_RestartTime = value; }
}
public void Reset( TimeSpan restartDelay )
{
if ( restartDelay < TimeSpan.MaxValue )
m_RestartTime = DateTime.Now + restartDelay;
else
m_RestartTime = DateTime.MaxValue;
}
public QuestRestartInfo( Type questType, TimeSpan restartDelay )
{
m_QuestType = questType;
Reset( restartDelay );
}
public QuestRestartInfo( Type questType, DateTime restartTime )
{
m_QuestType = questType;
m_RestartTime = restartTime;
}
}
}