Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -22,32 +22,32 @@ using Server.Network;
|
|||
|
||||
namespace Server.HuePickers
|
||||
{
|
||||
public class HuePicker
|
||||
{
|
||||
private static int m_NextSerial = 1;
|
||||
public class HuePicker
|
||||
{
|
||||
private static int m_NextSerial = 1;
|
||||
|
||||
public int Serial { get; }
|
||||
public HuePicker(int itemID)
|
||||
{
|
||||
do
|
||||
{
|
||||
Serial = m_NextSerial++;
|
||||
} while (Serial == 0);
|
||||
|
||||
public int ItemID { get; }
|
||||
ItemID = itemID;
|
||||
}
|
||||
|
||||
public HuePicker( int itemID )
|
||||
{
|
||||
do
|
||||
{
|
||||
Serial = m_NextSerial++;
|
||||
} while ( Serial == 0 );
|
||||
public int Serial{ get; }
|
||||
|
||||
ItemID = itemID;
|
||||
}
|
||||
public int ItemID{ get; }
|
||||
|
||||
public virtual void OnResponse( int hue )
|
||||
{
|
||||
}
|
||||
public virtual void OnResponse(int hue)
|
||||
{
|
||||
}
|
||||
|
||||
public void SendTo( NetState state )
|
||||
{
|
||||
state.Send( new DisplayHuePicker( this ) );
|
||||
state.AddHuePicker( this );
|
||||
}
|
||||
}
|
||||
public void SendTo(NetState state)
|
||||
{
|
||||
state.Send(new DisplayHuePicker(this));
|
||||
state.AddHuePicker(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue