Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InventoryHelper.prototype.canPlaceItemInContainer
Re-export
import { InventoryHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Does an item fit into a container grid

Parameters

containerFS2D: number[][]

Container grid

itemWithChildren: Item[]

item to check fits

Returns

boolean

True it fits