using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class MyTentEastAddon : BaseAddon
	{
		public int TentColor;
		public int TentFound;

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Color { get { return TentColor; } set { TentColor = value; InvalidateProperties(); } }

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Found { get { return TentFound; } set { TentFound = value; InvalidateProperties(); } }

		public override BaseAddonDeed Deed
		{
			get
			{
				return new MyTentEastAddonDeed( Tent_Color, 1 );
			}
		}

		[Constructable]
		public MyTentEastAddon() : this( 0 )
		{
		}

		[ Constructable ]
		public MyTentEastAddon( int RelHue )
		{
			AddComplexComponent( (BaseAddon) this, 1630, 0, 1, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 0, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 2, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 0, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, -1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 3, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 0, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 0, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, -1, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 2, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 2, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 3, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 0, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 0, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, -1, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 2, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 2, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 3, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 2, 1, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 0, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 2, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 0, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, -1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 3, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 2, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 3, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 4, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 2, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 3, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 4, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, 0, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, -1, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, -2, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, 0, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, -1, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, -2, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1639, 1, 1, 34, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 872, 4, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 0, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 1, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, -1, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 2, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, -2, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 3, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, -2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, -1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 875, -3, -3, 0, 0, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 876, -3, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 877, 4, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 0, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, -1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, -2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 0, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 1, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, -1, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 2, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, -2, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 3, -3, 0, RelHue, -1, "tent", 1);

			TentColor = RelHue;
		}

		public MyTentEastAddon( 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
            writer.Write( TentColor );
            writer.Write( TentFound );
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            TentColor = reader.ReadInt();
            TentFound = reader.ReadInt();
		}
	}

	public class MyTentEastAddonDeed : BaseAddonDeed
	{
		public int TentColor;
		public int TentFound;
		
		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Color { get { return TentColor; } set { TentColor = value; InvalidateProperties(); } }

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Found { get { return TentFound; } set { TentFound = value; InvalidateProperties(); } }

		public override BaseAddon Addon
		{
			get
			{
				return new MyTentEastAddon( Tent_Color );
			}
		}

		[Constructable]
		public MyTentEastAddonDeed() : this( 0, 0 )
		{
		}

		[Constructable]
		public MyTentEastAddonDeed( int RelHue, int RelRolled )
		{
			Weight = 50;
			ItemID = 0xA58;

			/// COLOR ////////////////
			if ( TentFound > 0 ){ TentColor = Tent_Color; Hue  = Tent_Color; }
			else if ( RelRolled > 0 ){ TentColor = RelHue; Hue = RelHue; }
			else
			{
				Hue = Utility.RandomHue();
				TentColor = Hue;
			}

			Name = "Tent (East Door)";
			TentFound = 1;
		}

		public MyTentEastAddonDeed( Serial serial ) : base( serial )
		{
		}

        public override void AddNameProperties(ObjectPropertyList list)
		{
            base.AddNameProperties(list);

			list.Add( 1070722, "Can Be Dyed Different Colors");
			list.Add( 1049644, "To Be Placed In Your Home");
        } 

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
            writer.Write( TentColor );
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            TentColor = reader.ReadInt();
		}
	}
	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	public class MyTentSouthAddon : BaseAddon
	{
		public int TentColor;
		public int TentFound;

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Color { get { return TentColor; } set { TentColor = value; InvalidateProperties(); } }

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Found { get { return TentFound; } set { TentFound = value; InvalidateProperties(); } }

		public override BaseAddonDeed Deed
		{
			get
			{
				return new MyTentSouthAddonDeed( Tent_Color, 1 );
			}
		}

		[Constructable]
		public MyTentSouthAddon() : this( 0 )
		{
		}

		[ Constructable ]
		public MyTentSouthAddon( int RelHue )
		{
			AddComplexComponent( (BaseAddon) this, 1630, 0, 1, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 0, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -1, 2, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 0, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, -1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1630, -2, 3, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 0, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 0, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 1, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, -1, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 2, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 2, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1631, 3, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 0, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 0, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 1, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, -1, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 2, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 2, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1632, 3, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 2, 1, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 0, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 3, 2, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 0, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, -1, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1633, 4, 3, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 2, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 3, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1635, 4, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 2, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 3, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1636, 4, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, 0, 0, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, -1, -1, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1637, -2, -2, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, 0, 2, 26, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, -1, 3, 23, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1638, -2, 4, 20, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 1639, 1, 1, 34, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 872, 4, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, -2, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, -1, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 2, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 873, 3, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 0, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, -1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, -2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 874, 4, 3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 875, -3, -3, 0, 0, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 876, -3, 4, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 877, 4, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 0, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, -1, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, -2, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 880, -3, 3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 0, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 1, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, -1, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 2, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, -2, -3, 0, RelHue, -1, "tent", 1);
			AddComplexComponent( (BaseAddon) this, 881, 3, -3, 0, RelHue, -1, "tent", 1);

			TentColor = RelHue;
		}

		public MyTentSouthAddon( 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
            writer.Write( TentColor );
            writer.Write( TentFound );
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            TentColor = reader.ReadInt();
            TentFound = reader.ReadInt();
		}
	}

	public class MyTentSouthAddonDeed : BaseAddonDeed
	{
		public int TentColor;
		public int TentFound;
		
		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Color { get { return TentColor; } set { TentColor = value; InvalidateProperties(); } }

		[CommandProperty(AccessLevel.Owner)]
		public int Tent_Found { get { return TentFound; } set { TentFound = value; InvalidateProperties(); } }

		public override BaseAddon Addon
		{
			get
			{
				return new MyTentSouthAddon( Tent_Color );
			}
		}

		[Constructable]
		public MyTentSouthAddonDeed() : this( 0, 0 )
		{
		}

		[Constructable]
		public MyTentSouthAddonDeed( int RelHue, int RelRolled )
		{
			Weight = 50;
			ItemID = 0xA59;

			/// COLOR ////////////////
			if ( TentFound > 0 ){ TentColor = Tent_Color; Hue  = Tent_Color; }
			else if ( RelRolled > 0 ){ TentColor = RelHue; Hue = RelHue; }
			else
			{
				Hue = Utility.RandomHue();
				TentColor = Hue;
			}

			Name = "Tent (South Door)";
			TentFound = 1;
		}

		public MyTentSouthAddonDeed( Serial serial ) : base( serial )
		{
		}

        public override void AddNameProperties(ObjectPropertyList list)
		{
            base.AddNameProperties(list);

			list.Add( 1070722, "Can Be Dyed Different Colors");
			list.Add( 1049644, "To Be Placed In Your Home");
        } 

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 0 ); // Version
            writer.Write( TentColor );
		}

		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            TentColor = reader.ReadInt();
		}
	}
}