CheckItemSwitchable

CheckItemSwitchable
Index2D CheckItemSwitchable ( int x, int y, int SizeX, int SizeY, int Window )

code contained in Inventory/script/INV_Funcs.dh

Properties:

 * x/y - Integer coordinates on array
 * SizeX/Y - Integer size to check
 * Window - Index pointer to Window Pointer Array

Description:
Checks the space of an item on the grid to see if it can be switched out for any items in the way. If it finds only one item index inside the coordinate range, it returns that items origin X/Y as an Index2D.