Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -22,17 +22,16 @@ namespace Server.Prompts
|
|||
{
|
||||
public abstract class Prompt
|
||||
{
|
||||
private int m_Serial;
|
||||
private static int m_Serials;
|
||||
|
||||
public int Serial => m_Serial;
|
||||
public int Serial { get; }
|
||||
|
||||
protected Prompt()
|
||||
{
|
||||
do
|
||||
{
|
||||
m_Serial = ++m_Serials;
|
||||
} while ( m_Serial == 0 );
|
||||
Serial = ++m_Serials;
|
||||
} while ( Serial == 0 );
|
||||
}
|
||||
|
||||
public virtual void OnCancel( Mobile from )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue