// Created by Cutter894
using Server;
using System;
using Server.Misc;
using Server.Items;
using Server.Multis;
using Server.Network;
using Server.Targeting;
using System.Collections;

namespace Server.Mobiles
{

	        public class Mimic : BaseTreasureChest
	        {
		     public override int DefaultGumpID{ get{ return 0x42; } }
		     public override int DefaultDropSound{ get{ return 0x42; } }

		     public override Rectangle2D Bounds
		     {
			     get{ return new Rectangle2D( 20, 105, 150, 180 ); }
		     }

		     [Constructable]
		     public Mimic() : base( 0xE41 )
		     {
		       Name = "metal chest";
		     }

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

                     public override void OnDoubleClick( Mobile from )
                             {
                                  MimicMelee rm = new MimicMelee();
                                  rm.Map = this.Map;
			          rm.Location = this.Location;
			          Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 );

			          this.Delete();

			     }


		     public override void Serialize( GenericWriter writer )
		     {
			     base.Serialize( writer );

			     writer.Write( (int) 0 ); // version
		     }

		     public override void Deserialize( GenericReader reader )
		     {
			     base.Deserialize( reader );

			     int version = reader.ReadInt();
		     }



	}
}

