Members and overloads 34 declared here On this results page CanFitItem(Vector2i) CanFitItem(Vector2i, int, int) CanFitItem(Item) CanFitItem(Item, int, int) CanFitItem(int, int, int, int) CanFitItemAt(int, int, int, int, bool, bool) CanFitItemSizeAt(int, int, int, int) CanSlideItemUpOrLeft(Item) FindItemByFullName(string) FindItemByName(string) FindItemByPos(Vector2i) GetItemAtLocation(Vector2i) GetItemAtLocation(int, int) GetItemById(int) GetItemPlacementGraph() GetTotalItemQuantityByFullName(string) GetTotalItemQuantityByMetadata(string) GetTotalItemQuantityByMetadataFlags(MetadataFlags) GetTotalItemQuantityByName(string) GetTotalItemStacksByFullName(string) NeedsToMerge() NextAvailableInventoryPosition(int, int, Vector2i) ToString() AvailableInventorySquares Cols Columns Id InventorySpacePercent IsRequested ItemMap
Copy
public bool Inventory.CanFitItem(Vector2i itemSize)
Checks whether it can fit item using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemSizeSpecifies item size.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItem(Vector2i itemSize, out int col, out int row)
Checks whether it can fit item using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemSizeSpecifies item size.
colParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target column in the inventory grid.
rowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItem(Item item)
Checks whether it can fit item using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemSpecifies item.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItem(Item item, out int col, out int row)
Checks whether it can fit item using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemSpecifies item.
colParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target column in the inventory grid.
rowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItem(int itemWidth, int itemHeight, out int fcol, out int frow)
Checks whether it can fit item using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemWidthParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies item width.
itemHeightParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies item height.
fcolParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Receives fcol.
frowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Receives frow.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItemAt(int col, int row, int width, int height, bool allowOverlap, out bool overlapped)
Checks whether it can fit item at using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
colParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target column in the inventory grid.
rowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target row in the inventory grid.
widthParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies width.
heightParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies height.
allowOverlapParameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies allow overlap.
overlappedParameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Receives overlapped.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public bool Inventory.CanFitItemSizeAt(int itemWidth, int itemHeight, int col, int row)
Checks whether it can fit item size at using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemWidthParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies item width.
itemHeightParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies item height.
colParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target column in the inventory grid.
rowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
CanSlideItemUpOrLeft Method Link ↗
Copy
public bool Inventory.CanSlideItemUpOrLeft(Item item)
Checks whether it can slide item up or left using the supplied arguments.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
itemSpecifies item.
Returns: A Boolean result. The member description explains the condition being checked.
FindItemByFullName Method Link ↗
Copy
public Item Inventory.FindItemByFullName(string fullName)
Calls FindItemByFullName on Inventory with fullName and returns Item. Open the return contract below before using the result.
Parameters
fullNameParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies full name.
Returns: The Item result.
Copy
public Item Inventory.FindItemByName(string name)
Calls FindItemByName on Inventory with name and returns Item. Open the return contract below before using the result.
Parameters
nameParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies name.
Returns: The Item result.
Copy
public Item Inventory.FindItemByPos(Vector2i pos)
Calls FindItemByPos on Inventory with pos and returns Item. Open the return contract below before using the result.
Parameters
posSpecifies pos.
Returns: The Item result.
Copy
public Item Inventory.GetItemAtLocation(Vector2i pos)
Calls GetItemAtLocation on Inventory with pos and returns Item. Open the return contract below before using the result.
Parameters
posSpecifies pos.
Returns: The Item result.
Copy
public Item Inventory.GetItemAtLocation(int col, int row)
Calls GetItemAtLocation on Inventory with col, row and returns Item. Open the return contract below before using the result.
Parameters
colParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target column in the inventory grid.
rowParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The target row in the inventory grid.
Returns: The Item result.
Copy
public Item Inventory.GetItemById(int id)
Calls GetItemById on Inventory with id and returns Item. Open the return contract below before using the result.
Parameters
idParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies id.
Returns: The Item result.
GetItemPlacementGraph Method Link ↗
Copy
public bool[,] Inventory.GetItemPlacementGraph()
Returns item placement graph.
Return type: bool[,]No current DPB page is linked for this built-in, external, generic or compatibility-only type.
Returns: The bool[,] result.
GetTotalItemQuantityByFullName Method Link ↗
Copy
public int Inventory.GetTotalItemQuantityByFullName(string fullName)
Calls GetTotalItemQuantityByFullName on Inventory with fullName and returns int. Open the return contract below before using the result.
Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
fullNameParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies full name.
Returns: The int result.
GetTotalItemQuantityByMetadata Method Link ↗
Copy
public int Inventory.GetTotalItemQuantityByMetadata(string metadata)
Calls GetTotalItemQuantityByMetadata on Inventory with metadata and returns int. Open the return contract below before using the result.
Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
metadataParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies metadata.
Returns: The int result.
GetTotalItemQuantityByMetadataFlags Method Link ↗
Copy
public int Inventory.GetTotalItemQuantityByMetadataFlags(MetadataFlags flag)
Calls GetTotalItemQuantityByMetadataFlags on Inventory with flag and returns int. Open the return contract below before using the result.
Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
flagParameter type: MetadataFlagsSpecifies flag.
Returns: The int result.
GetTotalItemQuantityByName Method Link ↗
Copy
public int Inventory.GetTotalItemQuantityByName(string name)
Calls GetTotalItemQuantityByName on Inventory with name and returns int. Open the return contract below before using the result.
Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
nameParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies name.
Returns: The int result.
GetTotalItemStacksByFullName Method Link ↗
Copy
public int Inventory.GetTotalItemStacksByFullName(string fullName)
Calls GetTotalItemStacksByFullName on Inventory with fullName and returns int. Open the return contract below before using the result.
Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
fullNameParameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies full name.
Returns: The int result.
Copy
public bool Inventory.NeedsToMerge()
Calls NeedsToMerge on Inventory without arguments and returns bool. Open the return contract below before using the result.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Returns: A Boolean result. The member description explains the condition being checked.
NextAvailableInventoryPosition Method Link ↗
Copy
public bool Inventory.NextAvailableInventoryPosition(int w, int h, out Vector2i pos)
Calls NextAvailableInventoryPosition on Inventory with w, h, pos and returns bool. Open the return contract below before using the result.
Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
wParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies w.
hParameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies h.
posReceives pos.
Returns: A Boolean result. The member description explains the condition being checked.
Copy
public override string Inventory.ToString()
Returns a text representation of this value.
Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Returns: The string result.
AvailableInventorySquares Property Link ↗
Copy
public int Inventory.AvailableInventorySquares { get; }
Reads available inventory squares on Inventory as int. The exact type and accessors are shown below.
Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Copy
public int Inventory.Cols { get; }
Reads cols on Inventory as int. The exact type and accessors are shown below.
Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Copy
public int Inventory.Columns { get; }
Reads columns on Inventory as int. The exact type and accessors are shown below.
Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Copy
public int Inventory.Id { get; internal set; }
Reads or assigns id on Inventory as int. The exact type and accessors are shown below.
Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
InventorySpacePercent Property Link ↗
Copy
public int Inventory.InventorySpacePercent { get; }
Reads inventory space percent on Inventory as int. The exact type and accessors are shown below.
Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Copy
public bool Inventory.IsRequested { get; }
Whether this inventory is requested.
Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Copy
public Dictionary<int, Item> Inventory.ItemMap { get; }
Gets the item map collection. Its element types are linked below.
Value type: Dictionary<int, Item> DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.