31 lines
975 B
C#
31 lines
975 B
C#
using GameServer;
|
|
using ServerCommon;
|
|
using ServerCommon.Cache;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameServer
|
|
{
|
|
public class QuestMyHome : QuestBase
|
|
{
|
|
public QuestMyHome(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, string type) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
|
{
|
|
m_condition_1 = type;
|
|
}
|
|
|
|
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
|
{
|
|
if (events.EventCondition1.Equals(m_condition_1)) return true;
|
|
return false;
|
|
}
|
|
|
|
public override async Task<Result> postProcess(Player player, QuestTaskUpdateHandler questTaskUpdateHandler)
|
|
{
|
|
return await QuestNotifyHelper.sendRedisQuestNotifyRequest(player, questTaskUpdateHandler);
|
|
}
|
|
}
|
|
}
|