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

namespace Server.Items
{
	public class GrillinTimeAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {38, -3, 0, 0}, {38, -3, 1, 0}, {38, -3, 2, 0}// 1	2	3	
			, {39, -3, -1, 0}, {37, -2, 2, 0}, {37, -2, -1, 0}// 4	5	6	
			, {2327, -2, 0, 0}, {2327, -2, 1, 0}, {2327, -2, 2, 0}// 7	8	9	
			, {7067, -2, 1, 0}, {7067, -2, 0, 0}, {2877, -2, -1, 3}// 15	16	17	
			, {2541, -2, -2, 0}, {5931, -2, -1, 9}, {2956, 2, 1, 0}// 18	22	24	
			, {2955, 4, 1, 0}, {2954, 4, 0, 0}, {2957, 3, 1, 0}// 25	26	27	
			, {2957, 2, 0, 0}, {2957, 3, 0, 0}, {2918, 2, 2, 0}// 28	29	30	
			, {2918, 2, -1, 0}, {2917, 4, 2, 0}, {2917, 4, -1, 0}// 31	32	33	
			, {2919, 3, 2, 0}, {2919, 3, -1, 0}, {2519, 3, 1, 6}// 34	35	36	
			, {2519, 4, 1, 6}, {2519, 4, 0, 5}, {2519, 3, 0, 5}// 37	38	39	
			, {2516, 3, 1, 6}, {2516, 4, 1, 6}, {2494, 4, 0, 5}// 40	41	42	
			, {2494, 3, 0, 5}, {2463, 2, 1, 6}, {8063, 4, 1, 7}// 43	44	45	
			, {8063, 3, 1, 7}, {7832, -2, 1, 8}, {2877, -2, 3, 3}// 46	48	49	
			, {6274, -2, 3, 0}, {2449, -2, 3, 9}, {3181, -2, 3, 10}// 50	51	53	
					};

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

		[ Constructable ]
		public GrillinTimeAddon()
		{

            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, 3530, -2, 0, 8, 1908, -1, "", 1);// 10
			AddComplexComponent( (BaseAddon) this, 3530, -2, 1, 8, 1908, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 3530, -2, 2, 8, 1908, -1, "", 1);// 12
			AddComplexComponent( (BaseAddon) this, 3555, -2, 1, 3, 0, 1, "", 1);// 13
			AddComplexComponent( (BaseAddon) this, 3555, -2, 0, 3, 0, 1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 2546, -2, 0, 8, 0, -1, "Fajitas", 1);// 19
			AddComplexComponent( (BaseAddon) this, 5642, -2, 2, 8, 0, -1, "Smoked Turkey Leg", 1);// 20
			AddComplexComponent( (BaseAddon) this, 2512, -2, -1, 12, 0, -1, "Red Bell Pepper", 1);// 21
			AddComplexComponent( (BaseAddon) this, 2512, -2, -1, 14, 2006, -1, "Green Bell Pepper", 1);// 23
			AddComplexComponent( (BaseAddon) this, 2444, 2, 0, 6, 0, -1, "", 2);// 47
			AddComplexComponent( (BaseAddon) this, 7711, -2, 3, 11, 0, -1, "Steak", 1);// 52

		}

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

		[Constructable]
		public GrillinTimeAddonDeed()
		{
			Name = "GrillinTime";
		}

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