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

namespace Server.Items
{
	public class AsianDrawbridge1Addon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {9255, -2, -4, 5}, {9270, -2, 2, 5}, {9271, 0, -4, 5}// 1	2	3	
			, {9270, -2, 3, 5}, {9270, 3, -3, 5}, {9270, -2, -3, 5}// 4	5	6	
			, {9270, 3, 1, 5}, {9270, 3, 0, 5}, {9270, 3, -1, 5}// 7	8	9	
			, {9270, 3, -2, 5}, {9271, 0, 4, 5}, {9270, 3, 3, 5}// 10	11	12	
			, {9270, 3, 2, 5}, {9271, 1, -4, 5}, {933, 3, 0, 0}// 13	14	15	
			, {9271, 2, 4, 5}, {9271, 1, 4, 5}, {9269, 2, 3, 5}// 16	17	18	
			, {9269, 2, 2, 5}, {9269, 2, 1, 5}, {9269, 2, 0, 5}// 19	20	21	
			, {9269, 2, -1, 5}, {933, 3, 4, 0}, {9256, 3, 4, 5}// 22	23	24	
			, {9269, 2, -2, 5}, {9269, 2, -3, 5}, {9269, 1, 3, 5}// 25	26	27	
			, {9269, 1, 2, 5}, {9269, 1, 1, 5}, {9269, 1, 0, 5}// 28	29	30	
			, {9269, 1, -1, 5}, {9269, 1, -2, 5}, {9269, 1, -3, 5}// 31	32	33	
			, {9269, 0, 3, 5}, {9269, 0, 2, 5}, {9269, 0, 0, 5}// 34	35	36	
			, {9269, 0, 1, 5}, {9269, 0, -2, 5}, {9269, 0, -3, 5}// 37	38	39	
			, {9269, -1, -1, 5}, {9269, 0, -1, 5}, {9269, -1, 3, 5}// 40	41	42	
			, {9269, -1, 1, 5}, {9269, -1, 2, 5}, {9271, -1, 4, 5}// 43	44	45	
			, {933, -2, -4, 0}, {9271, -1, -4, 5}, {933, 3, -4, 0}// 46	47	48	
			, {933, -2, 0, 0}, {9271, 2, -4, 5}, {9254, -2, 4, 5}// 49	50	51	
			, {9270, -2, -1, 5}, {9270, -2, 1, 5}, {9270, -2, -2, 5}// 52	53	54	
			, {9270, -2, 0, 5}, {933, -2, 4, 0}, {9253, 3, -4, 5}// 55	56	57	
			, {9269, -1, -3, 5}, {9269, -1, -2, 5}, {9269, -1, 0, 5}// 58	59	60	
			, {8760, -2, -2, 5}, {8760, 3, -2, 5}, {8760, 3, -3, 16}// 69	70	71	
			, {8760, -2, -3, 16}// 72	
		};

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

		[ Constructable ]
		public AsianDrawbridge1Addon()
		{

            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, 2171, -1, 5, 0, 2414, -1, "", 1);// 61
			AddComplexComponent( (BaseAddon) this, 2171, 0, 5, 0, 2414, -1, "", 1);// 62
			AddComplexComponent( (BaseAddon) this, 2171, 1, 5, 0, 2414, -1, "", 1);// 63
			AddComplexComponent( (BaseAddon) this, 2171, 2, 5, 0, 2414, -1, "", 1);// 64
			AddComplexComponent( (BaseAddon) this, 9407, -2, 4, 5, 0, 10, "", 1);// 65
			AddComplexComponent( (BaseAddon) this, 9407, 3, 4, 5, 0, 10, "", 1);// 66
			AddComplexComponent( (BaseAddon) this, 9407, -2, 0, 5, 0, 10, "", 1);// 67
			AddComplexComponent( (BaseAddon) this, 9407, 3, 0, 5, 0, 10, "", 1);// 68
			AddComplexComponent( (BaseAddon) this, 9407, -2, -4, 5, 0, 10, "", 1);// 73
			AddComplexComponent( (BaseAddon) this, 9407, 3, -4, 5, 0, 10, "", 1);// 74

		}

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

		[Constructable]
		public AsianDrawbridge1AddonDeed()
		{
			Name = "AsianDrawbridge1";
		}

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