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

namespace Server.Items
{
	public class CozyFireplaceSouthAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {1312, -2, -1, 0}, {1312, -2, 0, 0}, {1312, -1, -1, 0}// 1	2	3	
			, {1312, -1, 0, 0}, {464, -1, -2, 0}, {465, -2, -1, 0}// 4	5	6	
			, {466, -2, -2, 0}, {486, -2, 0, 0}, {489, -1, -1, 16}// 7	8	9	
			, {489, -1, -1, 13}, {7750, -1, 2, 0}, {7751, -1, 1, 0}// 10	11	12	
			, {7752, -1, 0, 0}, {2867, -1, 1, 0}, {1312, 0, -1, 0}// 13	14	15	
			, {1312, 0, 0, 0}, {1312, 1, -1, 0}, {1312, 1, 0, 0}// 16	17	18	
			, {1312, 2, -1, 0}, {1312, 2, 0, 0}, {464, 0, -2, 0}// 19	20	21	
			, {464, 1, -2, 0}, {465, 1, -1, 0}, {486, 1, 0, 0}// 22	23	24	
			, {487, 2, -1, 0}, {489, 1, -1, 16}, {489, 1, -1, 13}// 25	26	27	
			, {489, 0, -1, 16}, {489, 0, -1, 13}, {7138, 0, -1, 0}// 28	29	30	
			, {7744, 1, 2, 0}, {7745, 1, 1, 0}, {7746, 1, 0, 0}// 33	34	35	
			, {7747, 0, 0, 0}, {7748, 0, 1, 0}, {7749, 0, 2, 0}// 36	37	38	
			, {7777, 0, 0, 4}, {4604, 0, 1, 0}, {7712, 0, 2, 1}// 39	40	41	
					};

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

		[ Constructable ]
		public CozyFireplaceSouthAddon()
		{

            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, 14732, 0, -1, 2, 0, 1, "", 1);// 31
			AddComplexComponent( (BaseAddon) this, 14742, 0, -1, 2, 0, 1, "", 1);// 32

		}

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

		[Constructable]
		public CozyFireplaceSouthAddonDeed()
		{
			Name = "CozyFireplaceSouth";
		}

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