초기커밋
This commit is contained in:
30
GameServer/Contents/Quest/QuestChecker/QuestMannequin.cs
Normal file
30
GameServer/Contents/Quest/QuestChecker/QuestMannequin.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using ServerCommon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
public class QuestMannequin : QuestBase
|
||||
{
|
||||
List<int> m_items = new List<int>();
|
||||
public QuestMannequin(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, List<int> items) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
||||
{
|
||||
m_items = items;
|
||||
}
|
||||
|
||||
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
||||
{
|
||||
if (!int.TryParse(events.EventCondition2, out var itemId))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_items.Contains(itemId)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user