Files
abysmal-isle/Scripts/Services/Quests/QuestCallbackEntry.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

26 lines
638 B
C#

using System;
using Server.ContextMenus;
namespace Server.Engines.Quests
{
public class QuestCallbackEntry : ContextMenuEntry
{
private readonly QuestCallback m_Callback;
public QuestCallbackEntry(int number, QuestCallback callback)
: this(number, -1, callback)
{
}
public QuestCallbackEntry(int number, int range, QuestCallback callback)
: base(number, range)
{
this.m_Callback = callback;
}
public override void OnClick()
{
if (this.m_Callback != null)
this.m_Callback();
}
}
}