using System;
using System.Xml;
using freetrain.world;

namespace freetrain.contributions.fence
{
	[Serializable]
	public class FenceRemover : FenceBuilder 
	{

		public FenceRemover( XmlElement e ) : base(e) 
		{
		}

		protected override void setFence(Location loc, Direction d )
		{
			if( World.world[loc] != null ) {
				World.world[loc].setFence(d,null);
				World.world.onVoxelUpdated(loc);
			}
		}
	}
}
