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

namespace Server.Items
{
	public class ZooCageAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {2083, -3, -4, 0}, {2083, -2, -4, 0}, {2083, -1, -4, 0}// 1	2	3	
			, {2083, 0, -4, 0}, {2083, 1, -4, 0}, {2083, 2, -4, 0}// 4	5	6	
			, {2083, 3, -4, 0}, {2083, 4, -4, 0}, {2083, 5, -4, 0}// 7	8	9	
			, {2081, -4, -3, 0}, {2081, -4, -2, 0}, {2081, -4, -1, 0}// 10	11	12	
			, {2081, -4, 0, 0}, {2081, 5, -3, 0}, {2081, 5, -2, 0}// 13	14	15	
			, {2081, 5, -1, 0}, {2081, 5, 0, 0}, {128, 5, -3, 0}// 16	17	18	
			, {128, -3, -3, 0}, {2081, -4, 1, 0}, {2081, -4, 2, 0}// 19	20	21	
			, {2081, -4, 3, 0}, {2081, -4, 4, 0}, {2081, -4, 5, 0}// 22	23	24	
			, {2083, -3, 5, 0}, {2083, -2, 5, 0}, {2083, -1, 5, 0}// 25	26	27	
			, {2083, 0, 5, 0}, {2083, 1, 5, 0}, {2083, 2, 5, 0}// 28	29	30	
			, {2083, 3, 5, 0}, {2083, 4, 5, 0}, {2083, 5, 5, 0}// 31	32	33	
			, {2081, 5, 1, 0}, {2081, 5, 2, 0}, {2081, 5, 3, 0}// 34	35	36	
			, {2081, 5, 4, 0}, {2081, 5, 5, 0}, {128, 5, 5, 0}// 37	38	39	
			, {128, -3, 5, 0}// 40	
		};

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

		[ Constructable ]
		public ZooCageAddon()
		{

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

		[Constructable]
		public ZooCageAddonDeed()
		{
			Name = "ZooCage";
		}

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