Aura.Channel.World.Inventory.InventoryPocketNormal.HasSpace C# (CSharp) 메소드

HasSpace() 공개 메소드

public HasSpace ( Item item ) : bool
item Item
리턴 bool
		public override bool HasSpace(Item item)
		{
			for (byte y = 0; y <= _height - item.Data.Height; ++y)
			{
				for (byte x = 0; x <= _width - item.Data.Width; ++x)
				{
					if (_map[x, y] != null)
						continue;

					if (!this.HasCollisions(x, y, item))
						return true;
				}
			}

			return false;
		}
	}