Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
38
Server/HuePicker.cs
Normal file
38
Server/HuePicker.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
#region References
|
||||
using Server.Network;
|
||||
#endregion
|
||||
|
||||
namespace Server.HuePickers
|
||||
{
|
||||
public class HuePicker
|
||||
{
|
||||
private static int m_NextSerial = 1;
|
||||
|
||||
private readonly int m_Serial;
|
||||
private readonly int m_ItemID;
|
||||
|
||||
public int Serial { get { return m_Serial; } }
|
||||
|
||||
public int ItemID { get { return m_ItemID; } }
|
||||
|
||||
public HuePicker(int itemID)
|
||||
{
|
||||
do
|
||||
{
|
||||
m_Serial = m_NextSerial++;
|
||||
}
|
||||
while (m_Serial == 0);
|
||||
|
||||
m_ItemID = itemID;
|
||||
}
|
||||
|
||||
public virtual void OnResponse(int hue)
|
||||
{ }
|
||||
|
||||
public void SendTo(NetState state)
|
||||
{
|
||||
state.Send(new DisplayHuePicker(this));
|
||||
state.AddHuePicker(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user