ModernUO/Projects/Server/HuePicker.cs
Kamron Batman 0dc4acc164
fix(core): Removes implicit cast between Serial and uint (#728)
* Fixes spellbooks using serial ctor
* Fixes misc items where someone thought they had an amount and it didn't
* Fixes all `Food` types.
2021-08-25 00:27:19 -07:00

33 lines
643 B
C#

using Server.Network;
namespace Server.HuePickers
{
public class HuePicker
{
private static Serial _nextSerial = (Serial)1;
public HuePicker(int itemID)
{
do
{
Serial = _nextSerial++;
} while (Serial == 0);
ItemID = itemID;
}
public Serial Serial { get; }
public int ItemID { get; }
public virtual void OnResponse(int hue)
{
}
public void SendTo(NetState state)
{
state.SendDisplayHuePicker(Serial, ItemID);
state.AddHuePicker(this);
}
}
}