Members and overloads
34 results
public bool Inventory.CanFitItem(Vector2i itemSize)
Checks whether it can fit item using the supplied arguments.
itemSizeVector2i- Specifies item size.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Inventory.CanFitItem(Vector2i itemSize, out int col, out int row)
Checks whether it can fit item using the supplied arguments.
itemSizeVector2i- Specifies item size.
colint- The target column in the inventory grid.
rowint- The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Inventory.CanFitItem(Item item)
Checks whether it can fit item using the supplied arguments.
itemItem- Specifies item.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Inventory.CanFitItem(Item item, out int col, out int row)
Checks whether it can fit item using the supplied arguments.
itemItem- Specifies item.
colint- The target column in the inventory grid.
rowint- The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Inventory.CanFitItem(int itemWidth, int itemHeight, out int fcol, out int frow)
Checks whether it can fit item using the supplied arguments.
itemWidthint- Specifies item width.
itemHeightint- Specifies item height.
fcolint- Receives fcol.
frowint- Receives frow.
Returns: A Boolean result. The member description explains the condition being checked.
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.
colint- The target column in the inventory grid.
rowint- The target row in the inventory grid.
widthint- Specifies width.
heightint- Specifies height.
allowOverlapbool- Specifies allow overlap.
overlappedbool- Receives overlapped.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Inventory.CanFitItemSizeAt(int itemWidth, int itemHeight, int col, int row)
Checks whether it can fit item size at using the supplied arguments.
itemWidthint- Specifies item width.
itemHeightint- Specifies item height.
colint- The target column in the inventory grid.
rowint- The target row in the inventory grid.
Returns: A Boolean result. The member description explains the condition being checked.
CanSlideItemUpOrLeft
MethodLink ↗
public bool Inventory.CanSlideItemUpOrLeft(Item item)
Checks whether it can slide item up or left using the supplied arguments.
itemItem- Specifies item.
Returns: A Boolean result. The member description explains the condition being checked.
FindItemByFullName
MethodLink ↗
public Item Inventory.FindItemByFullName(string fullName)
Finds item by full name using the supplied arguments.
fullNamestring- Specifies full name.
Returns: The Item result.
public Item Inventory.FindItemByName(string name)
Finds item by name using the supplied arguments.
namestring- Specifies name.
Returns: The Item result.
public Item Inventory.FindItemByPos(Vector2i pos)
Finds item by pos using the supplied arguments.
posVector2i- Specifies pos.
Returns: The Item result.
public Item Inventory.GetItemAtLocation(Vector2i pos)
Returns item at location using the supplied arguments.
posVector2i- Specifies pos.
Returns: The Item result.
public Item Inventory.GetItemAtLocation(int col, int row)
Returns item at location using the supplied arguments.
colint- The target column in the inventory grid.
rowint- The target row in the inventory grid.
Returns: The Item result.
public Item Inventory.GetItemById(int id)
Returns item by id using the supplied arguments.
idint- Specifies id.
Returns: The Item result.
GetItemPlacementGraph
MethodLink ↗
public bool[,] Inventory.GetItemPlacementGraph()
Returns item placement graph.
Returns: The bool[,] result.
GetTotalItemQuantityByFullName
MethodLink ↗
public int Inventory.GetTotalItemQuantityByFullName(string fullName)
Returns total item quantity by full name using the supplied arguments.
fullNamestring- Specifies full name.
Returns: The int result.
GetTotalItemQuantityByMetadata
MethodLink ↗
public int Inventory.GetTotalItemQuantityByMetadata(string metadata)
Returns total item quantity by metadata using the supplied arguments.
metadatastring- Specifies metadata.
Returns: The int result.
GetTotalItemQuantityByMetadataFlags
MethodLink ↗
public int Inventory.GetTotalItemQuantityByMetadataFlags(MetadataFlags flag)
Returns total item quantity by metadata flags using the supplied arguments.
flagMetadataFlags- Specifies flag.
Returns: The int result.
GetTotalItemQuantityByName
MethodLink ↗
public int Inventory.GetTotalItemQuantityByName(string name)
Returns total item quantity by name using the supplied arguments.
namestring- Specifies name.
Returns: The int result.
GetTotalItemStacksByFullName
MethodLink ↗
public int Inventory.GetTotalItemStacksByFullName(string fullName)
Returns total item stacks by full name using the supplied arguments.
fullNamestring- Specifies full name.
Returns: The int result.
public bool Inventory.NeedsToMerge()
Executes the needs to merge operation.
Returns: A Boolean result. The member description explains the condition being checked.
NextAvailableInventoryPosition
MethodLink ↗
public bool Inventory.NextAvailableInventoryPosition(int w, int h, out Vector2i pos)
Executes the next available inventory position operation with the supplied arguments.
wint- Specifies w.
hint- Specifies h.
posVector2i- Receives pos.
Returns: A Boolean result. The member description explains the condition being checked.
public override string Inventory.ToString()
Returns a text representation of this value.
Returns: The string result.
AvailableInventorySquares
PropertyLink ↗
public int Inventory.AvailableInventorySquares { get; }
Gets available inventory squares for Inventory.
public int Inventory.Cols { get; }
Gets cols for Inventory.
public int Inventory.Columns { get; }
Gets columns for Inventory.
public int Inventory.Id { get; internal set; }
Gets id for Inventory.
InventorySpacePercent
PropertyLink ↗
public int Inventory.InventorySpacePercent { get; }
Gets inventory space percent for Inventory.
public bool Inventory.IsRequested { get; }
Whether this inventory is requested.
public Dictionary<int, Item> Inventory.ItemMap { get; }
Gets the item map collection. Its element types are linked below.
DPB1 0.3.29.47 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.