namespace Server.Items
{
    public class GoldenDecorativeRugAddon : BaseAddon
    {
        [Constructible]
        public GoldenDecorativeRugAddon()
        {
            AddComponent(new LocalizedAddonComponent(0xADB, 1076586), 1, 1, 0);
            AddComponent(new LocalizedAddonComponent(0xADC, 1076586), -1, -1, 0);
            AddComponent(new LocalizedAddonComponent(0xADD, 1076586), -1, 1, 0);
            AddComponent(new LocalizedAddonComponent(0xADE, 1076586), 1, -1, 0);
            AddComponent(new LocalizedAddonComponent(0xADF, 1076586), -1, 0, 0);
            AddComponent(new LocalizedAddonComponent(0xAE0, 1076586), 0, -1, 0);
            AddComponent(new LocalizedAddonComponent(0xAE1, 1076586), 1, 0, 0);
            AddComponent(new LocalizedAddonComponent(0xAE2, 1076586), 0, 1, 0);
            AddComponent(new LocalizedAddonComponent(0xADA, 1076586), 0, 0, 0);
        }

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

        public override BaseAddonDeed Deed => new GoldenDecorativeRugDeed();

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

            writer.WriteEncodedInt(0); // version
        }

        public override void Deserialize(IGenericReader reader)
        {
            base.Deserialize(reader);

            var version = reader.ReadEncodedInt();
        }
    }

    public class GoldenDecorativeRugDeed : BaseAddonDeed
    {
        [Constructible]
        public GoldenDecorativeRugDeed() => LootType = LootType.Blessed;

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

        public override BaseAddon Addon => new GoldenDecorativeRugAddon();
        public override int LabelNumber => 1076586; // Golden decorative rug

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

            writer.WriteEncodedInt(0); // version
        }

        public override void Deserialize(IGenericReader reader)
        {
            base.Deserialize(reader);

            var version = reader.ReadEncodedInt();
        }
    }
}
