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

namespace Server.Items
{
	public class walkwayAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {52, -9, -1, 0}, {52, -8, -1, 0}, {52, -7, -1, 0}// 1	2	3	
			, {52, -6, -1, 0}, {52, -5, -1, 0}, {52, -9, 2, 0}// 4	5	6	
			, {52, -8, 2, 0}, {52, -7, 2, 0}, {52, -6, 2, 0}// 7	8	9	
			, {52, -5, 2, 0}, {52, -4, -1, 0}, {52, -3, -1, 0}// 10	41	42	
			, {52, -2, -1, 0}, {52, -1, -1, 0}, {52, 0, -1, 0}// 43	44	45	
			, {52, 1, -1, 0}, {52, 2, -1, 0}, {52, 3, -1, 0}// 46	47	48	
			, {52, 4, -1, 0}, {52, 5, -1, 0}, {52, 6, -1, 0}// 49	50	51	
			, {52, 7, -1, 0}, {52, 8, -1, 0}, {52, 9, -1, 0}// 52	53	54	
			, {52, -4, 2, 0}, {52, -3, 2, 0}, {52, -2, 2, 0}// 55	56	57	
			, {52, -1, 2, 0}, {52, 0, 2, 0}, {52, 1, 2, 0}// 58	59	60	
			, {52, 2, 2, 0}, {52, 3, 2, 0}, {52, 4, 2, 0}// 61	62	63	
			, {52, 5, 2, 0}, {52, 6, 2, 0}, {52, 7, 2, 0}// 64	65	66	
			, {52, 8, 2, 0}, {52, 9, 2, 0}// 67	68	
		};

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

		[ Constructable ]
		public walkwayAddon()
		{

            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, 1250, -6, 0, 0, 2405, -1, "", 1);// 11
			AddComplexComponent( (BaseAddon) this, 1250, -6, 1, 0, 2405, -1, "", 1);// 12
			AddComplexComponent( (BaseAddon) this, 1250, -6, 2, 0, 2405, -1, "", 1);// 13
			AddComplexComponent( (BaseAddon) this, 1250, -5, 0, 0, 2405, -1, "", 1);// 14
			AddComplexComponent( (BaseAddon) this, 1250, -5, 1, 0, 2405, -1, "", 1);// 15
			AddComplexComponent( (BaseAddon) this, 1250, -5, 2, 0, 2405, -1, "", 1);// 16
			AddComplexComponent( (BaseAddon) this, 1250, -9, 0, 0, 2405, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 1250, -9, 1, 0, 2405, -1, "", 1);// 18
			AddComplexComponent( (BaseAddon) this, 1250, -9, 2, 0, 2405, -1, "", 1);// 19
			AddComplexComponent( (BaseAddon) this, 1250, -8, 0, 0, 2405, -1, "", 1);// 20
			AddComplexComponent( (BaseAddon) this, 1250, -8, 1, 0, 2405, -1, "", 1);// 21
			AddComplexComponent( (BaseAddon) this, 1250, -8, 2, 0, 2405, -1, "", 1);// 22
			AddComplexComponent( (BaseAddon) this, 1250, -7, 0, 0, 2405, -1, "", 1);// 23
			AddComplexComponent( (BaseAddon) this, 1250, -7, 1, 0, 2405, -1, "", 1);// 24
			AddComplexComponent( (BaseAddon) this, 1250, -7, 2, 0, 2405, -1, "", 1);// 25
			AddComplexComponent( (BaseAddon) this, 1256, -9, 1, 22, 2405, -1, "", 1);// 26
			AddComplexComponent( (BaseAddon) this, 1256, -9, 2, 22, 2405, -1, "", 1);// 27
			AddComplexComponent( (BaseAddon) this, 1256, -8, 1, 22, 2405, -1, "", 1);// 28
			AddComplexComponent( (BaseAddon) this, 1256, -8, 2, 22, 2405, -1, "", 1);// 29
			AddComplexComponent( (BaseAddon) this, 1250, -9, 0, 22, 2405, -1, "", 1);// 30
			AddComplexComponent( (BaseAddon) this, 1250, -8, 0, 22, 2405, -1, "", 1);// 31
			AddComplexComponent( (BaseAddon) this, 1250, -7, 0, 22, 2405, -1, "", 1);// 32
			AddComplexComponent( (BaseAddon) this, 1250, -7, 1, 22, 2405, -1, "", 1);// 33
			AddComplexComponent( (BaseAddon) this, 1250, -7, 2, 22, 2405, -1, "", 1);// 34
			AddComplexComponent( (BaseAddon) this, 1256, -6, 1, 22, 2405, -1, "", 1);// 35
			AddComplexComponent( (BaseAddon) this, 1256, -6, 2, 22, 2405, -1, "", 1);// 36
			AddComplexComponent( (BaseAddon) this, 1250, -6, 0, 22, 2405, -1, "", 1);// 37
			AddComplexComponent( (BaseAddon) this, 1256, -5, 2, 22, 2405, -1, "", 1);// 38
			AddComplexComponent( (BaseAddon) this, 1256, -5, 1, 22, 2405, -1, "", 1);// 39
			AddComplexComponent( (BaseAddon) this, 1250, -5, 0, 22, 2405, -1, "", 1);// 40
			AddComplexComponent( (BaseAddon) this, 1250, 3, 0, 0, 2405, -1, "", 1);// 69
			AddComplexComponent( (BaseAddon) this, 1250, 3, 1, 0, 2405, -1, "", 1);// 70
			AddComplexComponent( (BaseAddon) this, 1250, 3, 2, 0, 2405, -1, "", 1);// 71
			AddComplexComponent( (BaseAddon) this, 1250, 4, 0, 0, 2405, -1, "", 1);// 72
			AddComplexComponent( (BaseAddon) this, 1250, 4, 1, 0, 2405, -1, "", 1);// 73
			AddComplexComponent( (BaseAddon) this, 1250, 4, 2, 0, 2405, -1, "", 1);// 74
			AddComplexComponent( (BaseAddon) this, 1250, 5, 0, 0, 2405, -1, "", 1);// 75
			AddComplexComponent( (BaseAddon) this, 1250, 5, 1, 0, 2405, -1, "", 1);// 76
			AddComplexComponent( (BaseAddon) this, 1250, 5, 2, 0, 2405, -1, "", 1);// 77
			AddComplexComponent( (BaseAddon) this, 1250, 0, 0, 0, 2405, -1, "", 1);// 78
			AddComplexComponent( (BaseAddon) this, 1250, 0, 1, 0, 2405, -1, "", 1);// 79
			AddComplexComponent( (BaseAddon) this, 1250, 0, 2, 0, 2405, -1, "", 1);// 80
			AddComplexComponent( (BaseAddon) this, 1250, 1, 0, 0, 2405, -1, "", 1);// 81
			AddComplexComponent( (BaseAddon) this, 1250, 1, 1, 0, 2405, -1, "", 1);// 82
			AddComplexComponent( (BaseAddon) this, 1250, 1, 2, 0, 2405, -1, "", 1);// 83
			AddComplexComponent( (BaseAddon) this, 1250, 2, 0, 0, 2405, -1, "", 1);// 84
			AddComplexComponent( (BaseAddon) this, 1250, 2, 1, 0, 2405, -1, "", 1);// 85
			AddComplexComponent( (BaseAddon) this, 1250, 2, 2, 0, 2405, -1, "", 1);// 86
			AddComplexComponent( (BaseAddon) this, 1250, -3, 0, 0, 2405, -1, "", 1);// 87
			AddComplexComponent( (BaseAddon) this, 1250, -3, 1, 0, 2405, -1, "", 1);// 88
			AddComplexComponent( (BaseAddon) this, 1250, -3, 2, 0, 2405, -1, "", 1);// 89
			AddComplexComponent( (BaseAddon) this, 1250, -2, 0, 0, 2405, -1, "", 1);// 90
			AddComplexComponent( (BaseAddon) this, 1250, -2, 1, 0, 2405, -1, "", 1);// 91
			AddComplexComponent( (BaseAddon) this, 1250, -2, 2, 0, 2405, -1, "", 1);// 92
			AddComplexComponent( (BaseAddon) this, 1250, -1, 0, 0, 2405, -1, "", 1);// 93
			AddComplexComponent( (BaseAddon) this, 1250, -1, 1, 0, 2405, -1, "", 1);// 94
			AddComplexComponent( (BaseAddon) this, 1250, -1, 2, 0, 2405, -1, "", 1);// 95
			AddComplexComponent( (BaseAddon) this, 1250, -4, 0, 0, 2405, -1, "", 1);// 96
			AddComplexComponent( (BaseAddon) this, 1250, -4, 1, 0, 2405, -1, "", 1);// 97
			AddComplexComponent( (BaseAddon) this, 1250, -4, 2, 0, 2405, -1, "", 1);// 98
			AddComplexComponent( (BaseAddon) this, 1250, 6, 0, 0, 2405, -1, "", 1);// 99
			AddComplexComponent( (BaseAddon) this, 1250, 6, 1, 0, 2405, -1, "", 1);// 100
			AddComplexComponent( (BaseAddon) this, 1250, 6, 2, 0, 2405, -1, "", 1);// 101
			AddComplexComponent( (BaseAddon) this, 1250, 7, 0, 0, 2405, -1, "", 1);// 102
			AddComplexComponent( (BaseAddon) this, 1250, 7, 1, 0, 2405, -1, "", 1);// 103
			AddComplexComponent( (BaseAddon) this, 1250, 7, 2, 0, 2405, -1, "", 1);// 104
			AddComplexComponent( (BaseAddon) this, 1250, 8, 0, 0, 2405, -1, "", 1);// 105
			AddComplexComponent( (BaseAddon) this, 1250, 8, 1, 0, 2405, -1, "", 1);// 106
			AddComplexComponent( (BaseAddon) this, 1250, 8, 2, 0, 2405, -1, "", 1);// 107
			AddComplexComponent( (BaseAddon) this, 1257, 9, 0, 0, 2405, -1, "", 1);// 108
			AddComplexComponent( (BaseAddon) this, 1257, 9, 1, 0, 2405, -1, "", 1);// 109
			AddComplexComponent( (BaseAddon) this, 1257, 9, 2, 0, 2405, -1, "", 1);// 110
			AddComplexComponent( (BaseAddon) this, 1250, -4, 0, 22, 2405, -1, "", 1);// 111
			AddComplexComponent( (BaseAddon) this, 1250, -4, 1, 22, 2405, -1, "", 1);// 112
			AddComplexComponent( (BaseAddon) this, 1250, -4, 2, 22, 2405, -1, "", 1);// 113
			AddComplexComponent( (BaseAddon) this, 1256, -3, 1, 22, 2405, -1, "", 1);// 114
			AddComplexComponent( (BaseAddon) this, 1256, -3, 2, 22, 2405, -1, "", 1);// 115
			AddComplexComponent( (BaseAddon) this, 1256, -2, 1, 22, 2405, -1, "", 1);// 116
			AddComplexComponent( (BaseAddon) this, 1256, -2, 2, 22, 2405, -1, "", 1);// 117
			AddComplexComponent( (BaseAddon) this, 1250, -3, 0, 22, 2405, -1, "", 1);// 118
			AddComplexComponent( (BaseAddon) this, 1250, -2, 0, 22, 2405, -1, "", 1);// 119
			AddComplexComponent( (BaseAddon) this, 1250, -1, 0, 22, 2405, -1, "", 1);// 120
			AddComplexComponent( (BaseAddon) this, 1250, -1, 1, 22, 2405, -1, "", 1);// 121
			AddComplexComponent( (BaseAddon) this, 1250, -1, 2, 22, 2405, -1, "", 1);// 122
			AddComplexComponent( (BaseAddon) this, 1256, 0, 1, 22, 2405, -1, "", 1);// 123
			AddComplexComponent( (BaseAddon) this, 1256, 0, 2, 22, 2405, -1, "", 1);// 124
			AddComplexComponent( (BaseAddon) this, 1256, 1, 1, 22, 2405, -1, "", 1);// 125
			AddComplexComponent( (BaseAddon) this, 1256, 1, 2, 22, 2405, -1, "", 1);// 126
			AddComplexComponent( (BaseAddon) this, 1250, 0, 0, 22, 2405, -1, "", 1);// 127
			AddComplexComponent( (BaseAddon) this, 1250, 1, 0, 22, 2405, -1, "", 1);// 128
			AddComplexComponent( (BaseAddon) this, 1250, 2, 0, 22, 2405, -1, "", 1);// 129
			AddComplexComponent( (BaseAddon) this, 1250, 2, 1, 22, 2405, -1, "", 1);// 130
			AddComplexComponent( (BaseAddon) this, 1250, 2, 2, 22, 2405, -1, "", 1);// 131
			AddComplexComponent( (BaseAddon) this, 1256, 3, 1, 22, 2405, -1, "", 1);// 132
			AddComplexComponent( (BaseAddon) this, 1256, 3, 2, 22, 2405, -1, "", 1);// 133
			AddComplexComponent( (BaseAddon) this, 1256, 4, 1, 22, 2405, -1, "", 1);// 134
			AddComplexComponent( (BaseAddon) this, 1256, 4, 2, 22, 2405, -1, "", 1);// 135
			AddComplexComponent( (BaseAddon) this, 1250, 3, 0, 22, 2405, -1, "", 1);// 136
			AddComplexComponent( (BaseAddon) this, 1250, 4, 0, 22, 2405, -1, "", 1);// 137
			AddComplexComponent( (BaseAddon) this, 1250, 5, 0, 22, 2405, -1, "", 1);// 138
			AddComplexComponent( (BaseAddon) this, 1250, 5, 1, 22, 2405, -1, "", 1);// 139
			AddComplexComponent( (BaseAddon) this, 1250, 5, 2, 22, 2405, -1, "", 1);// 140
			AddComplexComponent( (BaseAddon) this, 1256, 6, 1, 22, 2405, -1, "", 1);// 141
			AddComplexComponent( (BaseAddon) this, 1256, 6, 2, 22, 2405, -1, "", 1);// 142
			AddComplexComponent( (BaseAddon) this, 1256, 7, 1, 22, 2405, -1, "", 1);// 143
			AddComplexComponent( (BaseAddon) this, 1256, 7, 2, 22, 2405, -1, "", 1);// 144
			AddComplexComponent( (BaseAddon) this, 1250, 6, 0, 22, 2405, -1, "", 1);// 145
			AddComplexComponent( (BaseAddon) this, 1250, 7, 0, 22, 2405, -1, "", 1);// 146
			AddComplexComponent( (BaseAddon) this, 1250, 8, 0, 22, 2405, -1, "", 1);// 147
			AddComplexComponent( (BaseAddon) this, 1250, 8, 1, 22, 2405, -1, "", 1);// 148
			AddComplexComponent( (BaseAddon) this, 1250, 8, 2, 22, 2405, -1, "", 1);// 149
			AddComplexComponent( (BaseAddon) this, 1257, 9, 0, 22, 2405, -1, "", 1);// 150
			AddComplexComponent( (BaseAddon) this, 1257, 9, 1, 22, 2405, -1, "", 1);// 151
			AddComplexComponent( (BaseAddon) this, 1257, 9, 2, 22, 2405, -1, "", 1);// 152

		}

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

		[Constructable]
		public walkwayAddonDeed()
		{
			Name = "walkway";
		}

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