Aura.Channel.World.Inventory.InventoryPocketNormal.GetCollidingItems C# (CSharp) Method

GetCollidingItems() protected method

protected GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
targetX uint
targetY uint
item Item
return List
		protected List<Item> GetCollidingItems(uint targetX, uint targetY, Item item)
		{
			var result = new List<Item>();

			for (var x = targetX; x < targetX + item.Data.Width; ++x)
			{
				for (var y = targetY; y < targetY + item.Data.Height; ++y)
				{
					if (x > _width - 1 || y > _height - 1)
						continue;

					if (_map[x, y] != null && !result.Contains(_map[x, y]))
						result.Add(_map[x, y]);
				}
			}

			return result;
		}