
////////////////////////////////////////
//                                     //
//   Generated by CEO's YAAAG - Ver 2  //
// (Yet Another Arya Addon Generator)  //
//    Modified by Hammerhand for       //
//      SA & High Seas content         //
//                                     //
////////////////////////////////////////
using System;
using Server;
using Server.Items;

namespace SSmallWBridge
{
	public class SSmallWBridgeAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {2174, 4, -1, 0}, {2179, -3, -1, 0}, {2178, -3, 1, 1}// 1	2	3	
			, {2177, 3, -1, 5}, {2177, 2, -1, 5}, {2177, 1, -1, 5}// 4	5	6	
			, {2177, 0, -1, 5}, {2177, -1, -1, 5}, {2177, -2, -1, 5}// 7	8	9	
			, {1993, 3, -1, 5}, {1993, 2, -1, 5}, {1993, 1, -1, 5}// 10	11	12	
			, {1993, 0, -1, 5}, {1993, -1, -1, 5}, {1993, -2, -1, 5}// 13	14	15	
			, {2175, 4, 1, 1}, {2176, 3, 1, 6}, {2176, 2, 1, 6}// 16	17	18	
			, {2176, 1, 1, 6}, {2176, 0, 1, 6}, {1852, -3, -1, 0}// 19	20	21	
			, {1850, 4, -1, 0}, {2176, -1, 1, 6}, {2176, -2, 1, 6}// 22	23	24	
			, {1850, 4, 1, 0}, {1993, 3, 1, 5}, {1993, 3, 0, 5}// 25	26	27	
			, {1993, 2, 1, 5}, {1993, 2, 0, 5}, {1993, 1, 1, 5}// 28	29	30	
			, {1993, 1, 0, 5}, {1993, 0, 1, 5}, {1993, 0, 0, 5}// 31	32	33	
			, {1993, -1, 1, 5}, {1993, -1, 0, 5}, {1993, -2, 1, 5}// 34	35	36	
			, {1993, -2, 0, 5}, {1850, 4, 0, 0}, {1852, -3, 1, 0}// 37	38	39	
			, {1852, -3, 0, 0}// 40	
		};

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

		[ Constructable ]
		public SSmallWBridgeAddon()
		{

            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] );


		}

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

	public class SSmallWBridgeAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new SSmallWBridgeAddon();
			}
		}

		[Constructable]
		public SSmallWBridgeAddonDeed()
		{
			Name = "SSmallWBridge";
		}

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