Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -4,39 +4,28 @@ namespace Server.Engines.Quests
|
|||
{
|
||||
public class QuestRestartInfo
|
||||
{
|
||||
private Type m_QuestType;
|
||||
private DateTime m_RestartTime;
|
||||
public Type QuestType { get; set; }
|
||||
|
||||
public Type QuestType
|
||||
{
|
||||
get => m_QuestType;
|
||||
set => m_QuestType = value;
|
||||
}
|
||||
|
||||
public DateTime RestartTime
|
||||
{
|
||||
get => m_RestartTime;
|
||||
set => m_RestartTime = value;
|
||||
}
|
||||
public DateTime RestartTime { get; set; }
|
||||
|
||||
public void Reset( TimeSpan restartDelay )
|
||||
{
|
||||
if ( restartDelay < TimeSpan.MaxValue )
|
||||
m_RestartTime = DateTime.UtcNow + restartDelay;
|
||||
RestartTime = DateTime.UtcNow + restartDelay;
|
||||
else
|
||||
m_RestartTime = DateTime.MaxValue;
|
||||
RestartTime = DateTime.MaxValue;
|
||||
}
|
||||
|
||||
public QuestRestartInfo( Type questType, TimeSpan restartDelay )
|
||||
{
|
||||
m_QuestType = questType;
|
||||
QuestType = questType;
|
||||
Reset( restartDelay );
|
||||
}
|
||||
|
||||
public QuestRestartInfo( Type questType, DateTime restartTime )
|
||||
{
|
||||
m_QuestType = questType;
|
||||
m_RestartTime = restartTime;
|
||||
QuestType = questType;
|
||||
RestartTime = restartTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue