mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
42 lines
No EOL
766 B
C#
42 lines
No EOL
766 B
C#
namespace Server.Prompts
|
|
{
|
|
public abstract class Prompt
|
|
{
|
|
private readonly IEntity m_Sender;
|
|
private readonly string m_MessageArgs;
|
|
|
|
public IEntity Sender => m_Sender;
|
|
|
|
public string MessageArgs => m_MessageArgs;
|
|
|
|
public virtual int MessageCliloc => 1042971;
|
|
|
|
public virtual int MessageHue => 0;
|
|
|
|
public virtual int TypeId => GetType().FullName.GetHashCode();
|
|
|
|
public Prompt()
|
|
: this(null)
|
|
{
|
|
}
|
|
|
|
public Prompt(IEntity sender)
|
|
: this(sender, System.String.Empty)
|
|
{
|
|
}
|
|
|
|
public Prompt(IEntity sender, string args)
|
|
{
|
|
m_Sender = sender;
|
|
m_MessageArgs = args;
|
|
}
|
|
|
|
public virtual void OnCancel(Mobile from)
|
|
{
|
|
}
|
|
|
|
public virtual void OnResponse(Mobile from, string text)
|
|
{
|
|
}
|
|
}
|
|
} |