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
|
|
@ -26,21 +26,18 @@ namespace Server.HuePickers
|
|||
{
|
||||
private static int m_NextSerial = 1;
|
||||
|
||||
private int m_Serial;
|
||||
private int m_ItemID;
|
||||
public int Serial { get; }
|
||||
|
||||
public int Serial => m_Serial;
|
||||
|
||||
public int ItemID => m_ItemID;
|
||||
public int ItemID { get; }
|
||||
|
||||
public HuePicker( int itemID )
|
||||
{
|
||||
do
|
||||
{
|
||||
m_Serial = m_NextSerial++;
|
||||
} while ( m_Serial == 0 );
|
||||
Serial = m_NextSerial++;
|
||||
} while ( Serial == 0 );
|
||||
|
||||
m_ItemID = itemID;
|
||||
ItemID = itemID;
|
||||
}
|
||||
|
||||
public virtual void OnResponse( int hue )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue