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

namespace Server.Items
{
	public class SerenityTableWEAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {3268, 3, -2, 0}, {9035, -1, 0, 14}, {6814, -1, -2, 0}// 1	3	4	
			, {9035, -2, -2, 13}, {3268, -1, -2, 0}, {9037, -2, -2, 20}// 6	9	10	
			, {2886, 0, 0, 7}, {3237, -1, -1, 0}, {9035, -2, -1, 14}// 11	12	13	
			, {9035, 0, 0, 12}, {9037, 0, -2, 0}, {3268, 1, -2, 0}// 17	21	22	
			, {9036, -2, 0, 20}, {9036, 1, -1, 0}, {9035, -2, 0, 14}// 26	27	31	
			, {9037, -2, -1, 20}, {7954, 3, 0, 0}, {7954, 3, -1, 0}// 32	39	40	
			, {3380, 2, 0, 0}, {3237, 3, -1, 0}, {9442, 0, 0, 1}// 41	42	43	
			, {9441, 0, 0, 4}, {6816, -1, 2, 0}, {3268, -1, 2, 0}// 47	48	49	
			, {9036, 1, 1, 0}, {3268, 1, 2, 0}, {3268, 3, 2, 0}// 50	51	53	
			, {3237, 3, 1, 0}, {9035, -2, 1, 14}, {9036, -2, 2, 20}// 57	58	59	
			, {9037, 0, 1, 0}, {9036, -2, 1, 20}, {7950, 3, 1, 0}// 62	65	73	
			, {3237, -1, 1, 0}, {7950, 2, 1, 0}// 74	77	
		};

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

		[ Constructable ]
		public SerenityTableWEAddon()
		{

            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, 4668, -2, -2, 0, 183, -1, "", 1);// 2
			AddComplexComponent( (BaseAddon) this, 10265, 0, 0, 0, 387, -1, "", 1);// 5
			AddComplexComponent( (BaseAddon) this, 3237, -1, 0, 0, 2874, -1, "", 1);// 7
			AddComplexComponent( (BaseAddon) this, 4250, 3, 0, 0, 183, -1, "", 1);// 8
			AddComplexComponent( (BaseAddon) this, 4248, 0, -1, 0, 183, -1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 4248, 0, 0, 0, 183, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 4249, 2, -2, 0, 183, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 4252, -1, 0, 0, 183, -1, "", 1);// 18
			AddComplexComponent( (BaseAddon) this, 4249, 1, -2, 0, 183, -1, "", 1);// 19
			AddComplexComponent( (BaseAddon) this, 4248, 1, -1, 0, 183, -1, "", 1);// 20
			AddComplexComponent( (BaseAddon) this, 3237, 0, -2, 0, 2874, -1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 4667, -2, 0, 0, 183, -1, "", 1);// 24
			AddComplexComponent( (BaseAddon) this, 4254, 3, -2, 0, 183, -1, "", 1);// 25
			AddComplexComponent( (BaseAddon) this, 4248, 2, 0, 0, 183, -1, "", 1);// 28
			AddComplexComponent( (BaseAddon) this, 4253, -1, -2, 0, 183, -1, "", 1);// 29
			AddComplexComponent( (BaseAddon) this, 3237, 2, -2, 0, 2874, -1, "", 1);// 30
			AddComplexComponent( (BaseAddon) this, 4249, 0, -2, 0, 183, -1, "", 1);// 33
			AddComplexComponent( (BaseAddon) this, 4667, -2, -1, 0, 183, -1, "", 1);// 34
			AddComplexComponent( (BaseAddon) this, 4248, 1, 0, 0, 183, -1, "", 1);// 35
			AddComplexComponent( (BaseAddon) this, 4248, 2, -1, 0, 183, -1, "", 1);// 36
			AddComplexComponent( (BaseAddon) this, 4250, 3, -1, 0, 183, -1, "", 1);// 37
			AddComplexComponent( (BaseAddon) this, 4252, -1, -1, 0, 183, -1, "", 1);// 38
			AddComplexComponent( (BaseAddon) this, 4604, 0, -1, 0, 387, -1, "", 1);// 44
			AddComplexComponent( (BaseAddon) this, 3313, -1, 0, 3, 2874, -1, "", 1);// 45
			AddComplexComponent( (BaseAddon) this, 3268, 3, 0, 0, 2874, -1, "", 1);// 46
			AddComplexComponent( (BaseAddon) this, 4248, 2, 1, 0, 183, -1, "", 1);// 52
			AddComplexComponent( (BaseAddon) this, 4248, 1, 1, 0, 183, -1, "", 1);// 54
			AddComplexComponent( (BaseAddon) this, 3237, -1, 2, 0, 2874, -1, "", 1);// 55
			AddComplexComponent( (BaseAddon) this, 3237, 0, 2, 0, 2874, -1, "", 1);// 56
			AddComplexComponent( (BaseAddon) this, 4667, -2, 1, 0, 183, -1, "", 1);// 60
			AddComplexComponent( (BaseAddon) this, 4250, 3, 1, 0, 183, -1, "", 1);// 61
			AddComplexComponent( (BaseAddon) this, 4251, 0, 2, 0, 183, -1, "", 1);// 63
			AddComplexComponent( (BaseAddon) this, 4252, -1, 1, 0, 183, -1, "", 1);// 64
			AddComplexComponent( (BaseAddon) this, 3237, 2, 2, 0, 2874, -1, "", 1);// 66
			AddComplexComponent( (BaseAddon) this, 4248, 0, 1, 0, 183, -1, "", 1);// 67
			AddComplexComponent( (BaseAddon) this, 4255, 3, 2, 0, 183, -1, "", 1);// 68
			AddComplexComponent( (BaseAddon) this, 4256, -1, 2, 0, 183, -1, "", 1);// 69
			AddComplexComponent( (BaseAddon) this, 4251, 2, 2, 0, 183, -1, "", 1);// 70
			AddComplexComponent( (BaseAddon) this, 4666, -2, 2, 0, 183, -1, "", 1);// 71
			AddComplexComponent( (BaseAddon) this, 4251, 1, 2, 0, 183, -1, "", 1);// 72
			AddComplexComponent( (BaseAddon) this, 4604, 0, 1, 0, 387, -1, "", 1);// 75
			AddComplexComponent( (BaseAddon) this, 3313, -1, 1, 3, 2874, -1, "", 1);// 76

		}

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

		[Constructable]
		public SerenityTableWEAddonDeed()
		{
			Name = "SerenityTableWE";
		}

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