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

namespace Server.Items
{
	public class hex_StoveSouthAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {2416, 0, 0, 18}, {2541, 0, 0, 12}, {7137, 0, 0, 5}// 1	2	3	
			, {7827, 2, 0, 13}, {2880, 1, 0, 1}, {2495, 1, 0, 8}// 14	15	16	
			, {2522, 1, 0, 8}, {2516, 1, 0, 8}, {7134, 1, 0, 0}// 17	18	19	
			, {2908, 1, 1, 1}, {3134, 1, 0, 12}// 20	21	
		};

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

		[ Constructable ]
		public hex_StoveSouthAddon()
		{

            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, 63, -1, 0, 1, 1899, -1, "", 1);// 4
			AddComplexComponent( (BaseAddon) this, 82, 0, 0, 3, 1899, -1, "", 1);// 5
			AddComplexComponent( (BaseAddon) this, 82, 0, 0, 1, 1899, -1, "", 1);// 6
			AddComplexComponent( (BaseAddon) this, 86, 0, 0, 5, 1899, -1, "", 1);// 7
			AddComplexComponent( (BaseAddon) this, 6571, 0, 0, 8, 0, 0, "", 1);// 8
			AddComplexComponent( (BaseAddon) this, 441, -1, -1, 2, 1899, -1, "", 1);// 9
			AddComplexComponent( (BaseAddon) this, 1180, 0, 0, 5, 1891, -1, "", 1);// 10
			AddComplexComponent( (BaseAddon) this, 1180, 0, 0, 12, 1891, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 82, 0, 0, 10, 1899, -1, "", 1);// 12
			AddComplexComponent( (BaseAddon) this, 86, 0, 0, 8, 1899, -1, "", 1);// 13

		}

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

		[Constructable]
		public hex_StoveSouthAddonDeed()
		{
			Name = "Stove South";
		}

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