2022-10-10 21:47:08 -07:00
|
|
|
namespace Server.Prompts;
|
|
|
|
|
|
|
|
|
|
public abstract class Prompt
|
2020-08-25 18:53:35 -07:00
|
|
|
{
|
2022-10-10 21:47:08 -07:00
|
|
|
private static int m_Serials;
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
protected Prompt()
|
|
|
|
|
{
|
|
|
|
|
do
|
2020-08-25 18:53:35 -07:00
|
|
|
{
|
2022-10-10 21:47:08 -07:00
|
|
|
Serial = ++m_Serials;
|
|
|
|
|
} while (Serial == 0);
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public int Serial { get; }
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public virtual void OnCancel(Mobile from)
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public virtual void OnResponse(Mobile from, string text)
|
|
|
|
|
{
|
2020-08-25 18:53:35 -07:00
|
|
|
}
|
|
|
|
|
}
|