
////////////////////////////////////////
//                                    //
//   Generated by CEO's YAAAG - V1.2  //
// (Yet Another Arya Addon Generator) //
//                                    //
////////////////////////////////////////
using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class TailorShopAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {7617, -3, 3, 0}, {7619, -3, 2, 0}, {7618, -3, 0, 0}// 1	2	3	
			, {7619, -3, 1, 0}, {2860, -3, -3, 0}, {2860, -3, -3, 3}// 5	10	11	
			, {2860, -3, -3, 6}, {2860, -3, -3, 9}, {3999, -3, 3, 7}// 12	13	20	
			, {4219, -3, -2, 0}, {3577, -3, 2, 9}, {5990, -2, 1, 0}// 21	25	26	
			, {5992, 0, -2, 0}, {4596, 3, 3, 0}, {4599, 3, 3, 2}// 27	28	29	
			, {4597, 3, 3, 4}, {4009, 2, -2, 0}// 30	33	
		};

 
            
		public override BaseAddonDeed Deed
		{
			get
			{
				return new TailorShopAddonDeed();
			}
		}

		[ Constructable ]
		public TailorShopAddon()
		{

            for (int i = 0; i < m_AddOnSimpleComponents.Length / 4; i++)
                AddComponent( new AddonComponent( m_AddOnSimpleComponents[i,0] ), m_AddOnSimpleComponents[i,1], m_AddOnSimpleComponents[i,2], m_AddOnSimpleComponents[i,3] );


			AddComplexComponent( (BaseAddon) this, 3613, -3, 0, 6, 2888, -1, "", 2);// 4
			AddComplexComponent( (BaseAddon) this, 4225, -3, -1, 0, 2129, -1, "", 2);// 6
			AddComplexComponent( (BaseAddon) this, 4225, -3, -1, 2, 2117, -1, "", 2);// 7
			AddComplexComponent( (BaseAddon) this, 4225, -3, -1, 6, 0, -1, "", 2);// 8
			AddComplexComponent( (BaseAddon) this, 4225, -3, -1, 4, 2220, -1, "", 2);// 9
			AddComplexComponent( (BaseAddon) this, 5989, -3, -3, 12, 2991, -1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 5989, -3, -3, 8, 2888, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 5989, -3, -3, 5, 2885, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 5989, -3, -3, 2, 2974, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 5989, -3, -3, 0, 1153, -1, "", 1);// 18
			AddComplexComponent( (BaseAddon) this, 3575, -3, 2, 5, 2885, -1, "", 1);// 19
			AddComplexComponent( (BaseAddon) this, 3995, -3, 4, 0, 1260, -1, "", 2);// 22
			AddComplexComponent( (BaseAddon) this, 4143, -3, 1, 4, 0, -1, "Needles", 1);// 23
			AddComplexComponent( (BaseAddon) this, 4000, -3, 1, 9, 2991, -1, "", 2);// 24
			AddComplexComponent( (BaseAddon) this, 4011, 2, -3, 0, 2974, -1, "", 1);// 31
			AddComplexComponent( (BaseAddon) this, 4127, 4, -2, 0, 0, -1, "", 2);// 32
			AddComplexComponent( (BaseAddon) this, 3615, 1, -3, 0, 2885, -1, "", 2);// 34

		}

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

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource)
        {
            AddComplexComponent(addon, item, xoffset, yoffset, zoffset, hue, lightsource, null, 1);
        }

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
        {
            AddonComponent ac;
            ac = new AddonComponent(item);
            if (name != null && name.Length > 0)
                ac.Name = name;
            if (hue != 0)
                ac.Hue = hue;
            if (amount > 1)
            {
                ac.Stackable = true;
                ac.Amount = amount;
            }
            if (lightsource != -1)
                ac.Light = (LightType) lightsource;
            addon.AddComponent(ac, xoffset, yoffset, zoffset);
        }

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}

	public class TailorShopAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new TailorShopAddon();
			}
		}

		[Constructable]
		public TailorShopAddonDeed()
		{
			Name = "TailorShop";
		}

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

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}