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

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

		[ Constructable ]
		public WalnuttreeAddon()
		{
			AddComponent( new AddonComponent( 3296 ), -1, 1, 0 );
			AddComponent( new AddonComponent( 3297 ), -1, 1, 0 );
			AddComponent( new AddonComponent( 3353 ), 1, 0, 0 );
			AddonComponent ac = null;

		}

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

		[Constructable]
		public WalnuttreeAddonDeed()
		{
			Name = "Walnuttree";
		}

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