Adds assemblies config, fixes crash bugs. (#134)
This commit is contained in:
parent
0140eb73b4
commit
8ec166bcd0
3223 changed files with 191 additions and 191 deletions
|
|
@ -1,31 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class QuestRestartInfo
|
||||
{
|
||||
public QuestRestartInfo(Type questType, TimeSpan restartDelay)
|
||||
{
|
||||
QuestType = questType;
|
||||
Reset(restartDelay);
|
||||
}
|
||||
|
||||
public QuestRestartInfo(Type questType, DateTime restartTime)
|
||||
{
|
||||
QuestType = questType;
|
||||
RestartTime = restartTime;
|
||||
}
|
||||
|
||||
public Type QuestType { get; set; }
|
||||
|
||||
public DateTime RestartTime { get; set; }
|
||||
|
||||
public void Reset(TimeSpan restartDelay)
|
||||
{
|
||||
if (restartDelay < TimeSpan.MaxValue)
|
||||
RestartTime = DateTime.UtcNow + restartDelay;
|
||||
else
|
||||
RestartTime = DateTime.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue