48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System.Text;
|
|
|
|
|
|
using Microsoft.Extensions.Primitives;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
|
|
|
|
namespace ServerCommon;
|
|
|
|
|
|
/*
|
|
* TASK, ACTIVED 가 있으면
|
|
* TASK, TITLA_UPDATE, (TASKID)
|
|
* TASK, LOCATION
|
|
* 필수
|
|
*
|
|
*/
|
|
public class QuestValidatorForTaskActived : QuestScriptValidatorBase
|
|
{
|
|
private string m_event_cond1 = string.Empty;
|
|
|
|
public QuestValidatorForTaskActived(QuestMetaValidateHandler handler, string eventCond1) : base(handler)
|
|
{
|
|
m_event_cond1 = eventCond1;
|
|
init();
|
|
}
|
|
|
|
|
|
public override void init()
|
|
{
|
|
StringBuilder title_update = new();
|
|
title_update
|
|
.Append(EQuestFunctionTargetType.TASK.ToString())
|
|
.Append(EQuestFunctionNameType.TITLE_UPDATE.ToString())
|
|
.Append(m_event_cond1);
|
|
m_handler.addFunctionChecker(title_update.ToString());
|
|
|
|
// StringBuilder location = new();
|
|
// location
|
|
// .Append(EQuestFunctionTargetType.TASK.ToString())
|
|
// .Append(EQuestFunctionNameType.LOCATION.ToString());
|
|
// m_handler.addFunctionChecker(location.ToString());
|
|
|
|
}
|
|
} |