modernuo/Projects/Server/Prompt.cs

25 lines
381 B
C#
Raw Permalink Normal View History

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