// Scripted by Ice
using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class treeAddon : BaseAddon
	{
		public override BaseAddonDeed Deed
		{
			get
			{
				return new treeAddonDeed();
			}
		}

		[ Constructable ]
		public treeAddon()
		{
			AddComponent( new AddonComponent( 3286 ), -2, 3, 2 );
			AddComponent( new AddonComponent( 3287 ), -2, 3, 2 );
			AddComponent( new AddonComponent( 3288 ), 0, -2, 0 );
			AddComponent( new AddonComponent( 3289 ), 0, -2, 0 );
			AddComponent( new AddonComponent( 3280 ), 2, -1, 0 );
			AddComponent( new AddonComponent( 3281 ), 2, -1, 0 );
			AddComponent( new AddonComponent( 3280 ), 1, 3, 1 );
			AddComponent( new AddonComponent( 3281 ), 1, 3, 2 );
			AddonComponent ac = null;

		}

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

		[Constructable]
		public treeAddonDeed()
		{
			Name = "tree";
		}

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