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

namespace Server.Items
{
	public class MahoganyKitchenAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {7979, -1, -2, 6}, {7979, 0, -2, 6}, {2431, 0, -2, 7}// 25	26	27	
			, {2528, -1, -2, 7}, {5623, 2, -1, 2}, {5622, -3, 1, 2}// 28	36	37	
			, {2450, 0, 2, 5}, {7711, 0, 1, 5}, {2430, 0, 2, 6}// 46	47	48	
			, {2519, -1, 2, 5}, {2519, -1, 2, 6}, {2519, -1, 2, 7}// 49	50	51	
			, {5924, -1, 2, 10}, {2520, -1, 1, 5}, {5634, -4, 2, 4}// 52	53	54	
			, {5375, -4, -1, 4}, {4161, -2, -2, 4}, {2444, -3, -2, 4}// 55	56	57	
			, {4159, 1, -2, 4}, {5644, 2, -2, 4}, {2540, -4, 0, 4}// 58	59	60	
			, {3704, -4, 1, 6}, {4100, -4, 1, 11}, {3130, 4, -2, 0}// 61	62	68	
			, {2520, 3, 2, 6}, {2520, 3, 1, 6}, {2520, 3, 0, 6}// 77	78	79	
			, {2520, 3, -1, 6}, {2517, 3, 2, 7}, {2517, 3, 1, 7}// 80	81	82	
			, {2517, 3, 0, 7}, {2517, 3, -1, 7}, {6274, 3, -2, 15}// 83	84	85	
			, {11599, 3, 3, 10}, {3135, 4, -2, 0}, {3133, 4, -2, 0}// 86	87	88	
					};

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

		[ Constructable ]
		public MahoganyKitchenAddon()
		{

            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, 272, -4, -1, 0, 1736, -1, "", 1);// 1
			AddComplexComponent( (BaseAddon) this, 272, -4, 0, 0, 1736, -1, "", 1);// 2
			AddComplexComponent( (BaseAddon) this, 272, -4, 1, 0, 1736, -1, "", 1);// 3
			AddComplexComponent( (BaseAddon) this, 272, -4, 2, 0, 1736, -1, "", 1);// 4
			AddComplexComponent( (BaseAddon) this, 271, -3, -2, 0, 1736, -1, "", 1);// 5
			AddComplexComponent( (BaseAddon) this, 271, -2, -2, 0, 1736, -1, "", 1);// 6
			AddComplexComponent( (BaseAddon) this, 271, 1, -2, 0, 1736, -1, "", 1);// 7
			AddComplexComponent( (BaseAddon) this, 271, 2, -2, 0, 1736, -1, "", 1);// 8
			AddComplexComponent( (BaseAddon) this, 1297, -4, 2, 4, 2455, -1, "", 1);// 9
			AddComplexComponent( (BaseAddon) this, 1297, -4, 1, 4, 2455, -1, "", 1);// 10
			AddComplexComponent( (BaseAddon) this, 1297, -4, 0, 4, 2455, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 1297, -4, -1, 4, 2455, -1, "", 1);// 12
			AddComplexComponent( (BaseAddon) this, 1297, -3, -2, 4, 2455, -1, "", 1);// 13
			AddComplexComponent( (BaseAddon) this, 1297, -2, -2, 4, 2455, -1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 1297, 2, -2, 4, 2455, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 1297, 1, -2, 4, 2455, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 11526, -4, 3, 0, 1736, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 1801, -4, -2, 0, 1736, -1, "", 1);// 18
			AddComplexComponent( (BaseAddon) this, 1801, -4, -2, 5, 1736, -1, "", 1);// 19
			AddComplexComponent( (BaseAddon) this, 1801, -4, -2, 10, 1736, -1, "", 1);// 20
			AddComplexComponent( (BaseAddon) this, 1801, -1, -2, 0, 2361, -1, "", 1);// 21
			AddComplexComponent( (BaseAddon) this, 1801, 0, -2, 0, 2361, -1, "", 1);// 22
			AddComplexComponent( (BaseAddon) this, 1173, -1, -2, 5, 2333, -1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 1173, 0, -2, 5, 2333, -1, "", 1);// 24
			AddComplexComponent( (BaseAddon) this, 10332, -4, 2, 8, 1736, -1, "", 1);// 29
			AddComplexComponent( (BaseAddon) this, 10332, -4, -1, 8, 1736, -1, "", 1);// 30
			AddComplexComponent( (BaseAddon) this, 10332, -4, 0, 8, 1736, -1, "", 1);// 31
			AddComplexComponent( (BaseAddon) this, 10331, -3, -2, 8, 1736, -1, "", 1);// 32
			AddComplexComponent( (BaseAddon) this, 10331, -2, -2, 8, 1736, -1, "", 1);// 33
			AddComplexComponent( (BaseAddon) this, 10331, 1, -2, 8, 1736, -1, "", 1);// 34
			AddComplexComponent( (BaseAddon) this, 10331, 2, -2, 8, 1736, -1, "", 1);// 35
			AddComplexComponent( (BaseAddon) this, 1801, -1, 1, 0, 1736, -1, "", 1);// 38
			AddComplexComponent( (BaseAddon) this, 1801, -1, 2, 0, 1736, -1, "", 1);// 39
			AddComplexComponent( (BaseAddon) this, 1801, 0, 1, 0, 1736, -1, "", 1);// 40
			AddComplexComponent( (BaseAddon) this, 1801, 0, 2, 0, 1736, -1, "", 1);// 41
			AddComplexComponent( (BaseAddon) this, 1297, -1, 1, 5, 2455, -1, "", 1);// 42
			AddComplexComponent( (BaseAddon) this, 1297, -1, 2, 5, 2455, -1, "", 1);// 43
			AddComplexComponent( (BaseAddon) this, 1297, 0, 1, 5, 2455, -1, "", 1);// 44
			AddComplexComponent( (BaseAddon) this, 1297, 0, 2, 5, 2455, -1, "", 1);// 45
			AddComplexComponent( (BaseAddon) this, 1801, 3, -2, 0, 1736, -1, "", 1);// 63
			AddComplexComponent( (BaseAddon) this, 1801, 3, -2, 5, 1736, -1, "", 1);// 64
			AddComplexComponent( (BaseAddon) this, 1801, 3, -2, 10, 1736, -1, "", 1);// 65
			AddComplexComponent( (BaseAddon) this, 1801, 3, 3, 0, 1736, -1, "", 1);// 66
			AddComplexComponent( (BaseAddon) this, 1801, 3, 3, 5, 1736, -1, "", 1);// 67
			AddComplexComponent( (BaseAddon) this, 4497, 3, -1, 0, 1736, -1, "", 1);// 69
			AddComplexComponent( (BaseAddon) this, 4497, 3, 0, 0, 1736, -1, "", 1);// 70
			AddComplexComponent( (BaseAddon) this, 4497, 3, 1, 0, 1736, -1, "", 1);// 71
			AddComplexComponent( (BaseAddon) this, 4497, 3, 2, 0, 1736, -1, "", 1);// 72
			AddComplexComponent( (BaseAddon) this, 2602, 4, -1, 0, 2455, -1, "", 1);// 73
			AddComplexComponent( (BaseAddon) this, 2602, 4, 0, 0, 2455, -1, "", 1);// 74
			AddComplexComponent( (BaseAddon) this, 2602, 4, 1, 0, 2455, -1, "", 1);// 75
			AddComplexComponent( (BaseAddon) this, 2602, 4, 2, 0, 2455, -1, "", 1);// 76

		}

		public MahoganyKitchenAddon( 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 MahoganyKitchenAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new MahoganyKitchenAddon();
			}
		}

		[Constructable]
		public MahoganyKitchenAddonDeed()
		{
			Name = "MahoganyKitchen";
		}

		public MahoganyKitchenAddonDeed( 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();
		}
	}
}