초기커밋
This commit is contained in:
26
GameServer/Contents/Quest/QuestChecker/QuestMail.cs
Normal file
26
GameServer/Contents/Quest/QuestChecker/QuestMail.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using ServerCommon;
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
public class QuestMail : QuestBase
|
||||
{
|
||||
public QuestMail(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, string msg) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
||||
{
|
||||
m_condition_1 = msg;
|
||||
}
|
||||
|
||||
|
||||
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
||||
{
|
||||
switch (m_name_type)
|
||||
{
|
||||
case EQuestEventNameType.RECEIVED:
|
||||
return true;
|
||||
case EQuestEventNameType.SENDED:
|
||||
if (m_condition_1.Contains(events.EventCondition1)) return true;
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user