using Server.Engines.Craft;

namespace Server.Items
{
    [Anvil, Flippable(0xFAF, 0xFB0)]
    public class ColoredAnvil : Item
    {
        [Constructible]
        public ColoredAnvil() : this(
            CraftResources.GetHue(
                (CraftResource)Utility.RandomMinMax((int)CraftResource.DullCopper, (int)CraftResource.Valorite)
            )
        )
        {
        }

        [Constructible]
        public ColoredAnvil(int hue) : base(0xFAF)
        {
            Hue = hue;
            Weight = 20;
        }

        public ColoredAnvil(Serial serial) : base(serial)
        {
        }

        public override void Serialize(IGenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write(0);
        }

        public override void Deserialize(IGenericReader reader)
        {
            base.Deserialize(reader);
            var version = reader.ReadInt();
        }
    }
}
